mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	refactor: Updated a lot of references to LibreNMS - copyright still left intact (#4339)
This commit is contained in:
		
				
					committed by
					
						
						Tony Murray
					
				
			
			
				
	
			
			
			
						parent
						
							1ffebeac69
						
					
				
				
					commit
					7dec670494
				
			@@ -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
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user