Index: includes/definitions/mibs.inc.php =================================================================== --- includes/definitions/mibs.inc.php (revision 8838) +++ includes/definitions/mibs.inc.php (working copy) @@ -2490,6 +2490,9 @@ $config['mibs'][$mib]['states']['checkpoint-ha-state'][2] = array('name' => 'CRITICAL', 'event' => 'alert'); $config['mibs'][$mib]['states']['checkpoint-ha-state'][3] = array('name' => 'UNKNOWN', 'event' => 'warning'); +$config['mibs'][$mib]['states']['checkpoint-psu'][0] = array('name' => 'Up', 'event' => 'ok'); +$config['mibs'][$mib]['states']['checkpoint-psu'][1] = array('name' => 'Down', 'event' => 'alert'); + // CISCO-CONTENT-ENGINE-MIB $mib = 'CISCO-CONTENT-ENGINE-MIB'; Index: includes/discovery/sensors/checkpoint-mib.inc.php =================================================================== --- includes/discovery/sensors/checkpoint-mib.inc.php (revision 8838) +++ includes/discovery/sensors/checkpoint-mib.inc.php (working copy) @@ -63,4 +63,15 @@ discover_sensor($valid['sensor'], 'state', $device, $oid, 'haStatCode.0', 'checkpoint-ha-state', $descr, NULL, $value, array('entPhysicalClass' => 'other')); } +// PSU state +$chkpnt['psu'] = snmp_get_multi($device, 'powerSupplyStatus.1.0 powerSupplyStatus.2.0', '-OQUs', 'CHECKPOINT-MIB'); + +foreach ($chkpnt['psu'] as $index => $entry) +{ + $oid = '.1.3.6.1.4.1.2620.1.6.7.9.1.1.2.'.$index; + $descr = "powerSupplyStatus.".$index; + $value = $entry["powerSupplyStatus"]; + discover_status($device, $oid, $index, 'checkpoint-psu', $descr, $value, array('entPhysicalClass' => 'powersupply')); +} + // EOF