mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #3204 from murrant/hpilo
Check the sysObjectID before trying to detect ILO temp sensors.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if (strpos($sysObjectId, '.1.3.6.1.4.1.232.') !== false) {
|
||||||
echo 'HP_ILO ';
|
echo 'HP_ILO ';
|
||||||
$oids = snmp_walk($device, '1.3.6.1.4.1.232.6.2.6.8.1.2.1', '-Osqn', '');
|
$oids = snmp_walk($device, '1.3.6.1.4.1.232.6.2.6.8.1.2.1', '-Osqn', '');
|
||||||
$oids = trim($oids);
|
$oids = trim($oids);
|
||||||
@@ -24,3 +25,4 @@ foreach (explode("\n", $oids) as $data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user