refactor: Updated a lot of references to LibreNMS - copyright still left intact (#4339)

This commit is contained in:
Neil Lathwood
2016-09-08 14:12:23 +01:00
committed by Tony Murray
parent 1ffebeac69
commit 7dec670494
39 changed files with 86 additions and 117 deletions

View File

@@ -1,13 +1,12 @@
<?php
/*
* Observium
* LibreNMS
*
* This file is part of Observium.
* This file is part of LibreNMS.
*
* @package observium
* @package LibreNMS
* @subpackage discovery
* @author Adam Armstrong <adama@memetic.org>
* @copyright (C) 2006 - 2012 Adam Armstrong
*/

View File

@@ -1,13 +1,12 @@
<?php
/**
* Observium
* LibreNMS
*
* This file is part of Observium.
* This file is part of LibreNMS.
*
* @package observium
* @package LibreNMS
* @subpackage discovery
* @author Adam Armstrong <adama@memetic.org>
* @copyright (C) 2006 - 2012 Adam Armstrong
*/

View File

@@ -19,7 +19,7 @@ if ($device['os_group'] == 'unix') {
$descr_query = $config['snmpget'].' -M '.$config['mibdir'].' -m SNMPv2-SMI -Osqn '.snmp_gen_auth($device).' '.$device['transport'].':'.$device['hostname'].':'.$device['port']." .1.3.6.1.4.1.2021.7891.$oid.2.1 | sed s/.1.3.6.1.4.1.2021.7891.$oid.2.1\ //";
$descr = trim(str_replace('"', '', shell_exec($descr_query)));
$fulloid = ".1.3.6.1.4.1.2021.7891.$oid.101.1";
discover_sensor($valid['sensor'], 'temperature', $device, $fulloid, $oid, 'observium', $descr, '1', '1', null, null, null, null, $current);
discover_sensor($valid['sensor'], 'temperature', $device, $fulloid, $oid, 'librenms', $descr, '1', '1', null, null, null, null, $current);
}
}
}//end if