mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Wrong array value
This commit is contained in:
@@ -15,7 +15,7 @@ if ($device['os_group'] == 'cisco') {
|
|||||||
if (is_array($temp)) {
|
if (is_array($temp)) {
|
||||||
$cur_oid = '.1.3.6.1.4.1.9.9.13.1.3.1.3.';
|
$cur_oid = '.1.3.6.1.4.1.9.9.13.1.3.1.3.';
|
||||||
foreach ($temp as $index => $entry) {
|
foreach ($temp as $index => $entry) {
|
||||||
if ($temp[$index]['ciscoEnvMonTemperatureThreshold'] != 'notPresent') {
|
if ($temp[$index]['ciscoEnvMonTemperatureState'] != 'notPresent') {
|
||||||
$descr = ucwords($temp[$index]['ciscoEnvMonTemperatureStatusDescr']);
|
$descr = ucwords($temp[$index]['ciscoEnvMonTemperatureStatusDescr']);
|
||||||
discover_sensor($valid['sensor'], 'temperature', $device, $cur_oid.$index, $index, 'cisco', $descr, '1', '1', null, null, $temp[$index]['ciscoEnvMonTemperatureThreshold'], null, $temp[$index]['ciscoEnvMonTemperatureStatusValue'], 'snmp', $index);
|
discover_sensor($valid['sensor'], 'temperature', $device, $cur_oid.$index, $index, 'cisco', $descr, '1', '1', null, null, $temp[$index]['ciscoEnvMonTemperatureThreshold'], null, $temp[$index]['ciscoEnvMonTemperatureStatusValue'], 'snmp', $index);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user