mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed state sensor values for fabos (#6947)
The state of the sensors was a value (#1-4) not an actual state (nominal, faulty etc.) on UI. Tested device: Brocade 300 Switch (Brocade FabricOS v6.4.1)
This commit is contained in:
@@ -51,7 +51,7 @@ foreach ($pre_cache['fabos_sensors'] as $data) {
|
||||
$index = $data['swSensorIndex'];
|
||||
$oid = '.1.3.6.1.4.1.1588.2.1.1.1.1.22.1.3.' . $index;
|
||||
$value = $data['swSensorStatus'];
|
||||
discover_sensor($valid['sensor'], 'state', $device, $oid, $index, 'fabos_state', $descr, '1', '1', null, null, null, null, $value);
|
||||
create_sensor_to_state_index($device, 'fabos_state', 1);
|
||||
discover_sensor($valid['sensor'], 'state', $device, $oid, $index, $descr, $descr, '1', '1', null, null, null, null, $value);
|
||||
create_sensor_to_state_index($device, $descr, $index);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user