Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2531

Checkpoint monitor power supplies

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • None
    • None
    • Discovery

    Description

      The current CHECKPOINT-MIB does provide for powerSupplyStatus checks but these are not implemented in observium.

       

      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)
      +

      Unknown macro: { + $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

      Attachments

        1. svn_patch.txt
          2 kB
          Rene van Alphen

        Activity

          People

            landy Mike Stupalov
            Rene Rene van Alphen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: