centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 274 forks source link

checkpoint - hardware - psu -- missing 'OK' state #4057

Closed meni2029 closed 1 year ago

meni2029 commented 1 year ago

Problem description:

Checkpoint hardware psu check returns UNKNOWN: Power supply '1.0' status is 'OK' on some checkpoint hosts, while we would expect OK: All 1 components are ok [1/1 psus].

The oid .1.3.6.1.4.1.2620.1.6.7.9.1.1.2 returns STRING: "OK"

The model of the firewall is unfortunatelly not known.

Relevant file:

network/checkpoint/snmp/mode/hardware.pm

Change suggested:

    psu => [
        ['up', 'OK'],
        ['down', 'CRITICAL'],
        ['dummy', 'OK'],
        ['^present', 'OK'],
        ['OK', 'OK'] <- this line should be added
    ],

Thanks

garnier-quentin commented 1 year ago

https://github.com/centreon/centreon-plugins/pull/4063