Index: includes/definitions/sensors.inc.php =================================================================== --- includes/definitions/sensors.inc.php (revision 5946) +++ includes/definitions/sensors.inc.php (working copy) @@ -249,6 +249,10 @@ // NS-ROOT-MIB $config['sensor_states']['netscaler-state'][0] = array('name' => 'normal', 'event' => 'up'); $config['sensor_states']['netscaler-state'][1] = array('name' => 'failed', 'event' => 'alert'); +$config['sensor_states']['netscaler-ha-state'][0] = array('name' => 'standalone', 'event' => 'up'); +$config['sensor_states']['netscaler-ha-state'][1] = array('name' => 'primary', 'event' => 'up'); +$config['sensor_states']['netscaler-ha-state'][2] = array('name' => 'secondary', 'event' => 'up'); +$config['sensor_states']['netscaler-ha-state'][3] = array('name' => 'unknown', 'event' => 'warning'); // SW-MIB $config['sensor_states']['sw-mib'][1] = array('name' => 'normal', 'event' => 'up'); Index: includes/discovery/sensors/ns-root-mib.inc.php =================================================================== --- includes/discovery/sensors/ns-root-mib.inc.php (revision 5946) +++ includes/discovery/sensors/ns-root-mib.inc.php (working copy) @@ -45,4 +45,16 @@ unset($ns_sensor_array); +$sysHighAvailabilityMode = snmp_get($device, 'sysHighAvailabilityMode.0', '-Ovq', 'NS-ROOT-MIB', mib_dirs('citrix')); + +if ($sysHighAvailabilityMode) +{ + $descr = 'HA Mode'; + $oid = '.1.3.6.1.4.1.5951.4.1.1.6.0'; + $value = state_string_to_numeric('netscaler-ha-state', $sysHighAvailabilityMode); + discover_sensor($valid['sensor'], 'state', $device, $oid, 'sysHighAvailabilityMode.0', 'netscaler-ha-state', $descr, NULL, $value, array('entPhysicalClass' => 'other')); +} + +unset($sysHighAvailabilityMode); + // EOF