mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
warning fixes + bug fix resulting from these stricter checks in juniper v6 discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@704 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,7 +6,7 @@ $hrDevice_oids = array('hrDeviceIndex','hrDeviceType','hrDeviceDescr','hrDeviceS
|
||||
|
||||
foreach ($hrDevice_oids as $oid) { $hrDevice_array = snmp_cache_oid($oid, $device, $hrDevice_array, "HOST-RESOURCES-MIB:HOST-RESOURCES-TYPES"); }
|
||||
|
||||
foreach($hrDevice_array[$device[device_id]] as $hrDevice) {
|
||||
foreach($hrDevice_array[$device['device_id']] as $hrDevice) {
|
||||
if(is_array($hrDevice)) {
|
||||
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `hrDevice` WHERE device_id = '".$device['device_id']."' AND hrDeviceIndex = '".$hrDevice['hrDeviceIndex']."'"),0)) {
|
||||
$update_query = "UPDATE `hrDevice` SET";
|
||||
|
||||
Reference in New Issue
Block a user