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