Skip to content

Commit

Permalink
fix: Fixed state sensor values for fabos (#6947)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
TomEvin authored and laf committed Jul 4, 2017
1 parent 13d047c commit a1fffa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/discovery/sensors/state/fabos.inc.php
Expand Up @@ -51,7 +51,7 @@
$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);
}
}

0 comments on commit a1fffa4

Please sign in to comment.