mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fix Riverbed temperature discovery (#4832)
This commit is contained in:
committed by
Neil Lathwood
parent
931779b917
commit
090c46699f
@@ -12,13 +12,11 @@
|
||||
|
||||
if ($device['os'] == 'riverbed') {
|
||||
d_echo('Riverbed');
|
||||
|
||||
$oid = '.1.3.6.1.4.1.17163.1.1.2.9.0';
|
||||
$index = 0;
|
||||
$descr = 'System Temperature';
|
||||
$index = $oid;
|
||||
$temp = snmp_get($device, $oid, 'Oqv');
|
||||
|
||||
if (is_numeric($temp)) {
|
||||
discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, 'riverbed', $descr, '1', '1', 0, null, null, 65, $current);
|
||||
$temperature = snmp_get($device, $oid, '-Oqv');
|
||||
if (is_numeric($temperature)) {
|
||||
discover_sensor($valid['sensor'], 'temperature', $device, $oid, $index, 'riverbed', $descr, '1', '1', 0, null, null, 65, $temperature);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user