Check redfish-sel

Overview

Checks the System Event Log (SEL) of the Redfish Manager collection. Returns an alert based on the severity of the messages.

Tested on:

  • DELL iDRAC

  • DMTF Simulator

Hints:

  • This check runs with both http and https. It just uses GET requests.

  • No additional Python Redfish modules need to be installed.

Fact Sheet

Check Plugin Download

https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/redfish-sel

Check Interval Recommendation

Every 15 minutes

Can be called without parameters

Yes

Compiled for

Linux, Windows

Help

usage: redfish-sel [-h] [-V] [--always-ok] [--insecure] [--no-proxy]
                   [--password PASSWORD] [--test TEST] [--timeout TIMEOUT]
                   [--url URL] [--username USERNAME]

Checks the System Event Log (SEL) of the Redfish Manager collection. Returns
an alert based on the severity of the messages.

options:
  -h, --help           show this help message and exit
  -V, --version        show program's version number and exit
  --always-ok          Always returns OK.
  --insecure           This option explicitly allows to perform "insecure" SSL
                       connections. Default: True
  --no-proxy           Do not use a proxy. Default: False
  --password PASSWORD  Redfish API password.
  --test TEST          For unit tests. Needs "path-to-stdout-file,path-to-
                       stderr-file,expected-retc".
  --timeout TIMEOUT    Network timeout in seconds. Default: 8 (seconds)
  --url URL            Redfish API URL. Default: https://localhost:5000
  --username USERNAME  Redfish API username.

Usage Examples

./redfish-sel --url https://bmc --username redfish-monitoring --password 'mypassword'

Output:

Checked SEL on 1 member. There are critical errors.

Member: /redfish/v1/Managers/iDRAC.Embedded.1
* 2021-10-14T10:32:20+02:00: The system inlet temperature is greater than the upper warning threshold. [WARNING]
* 2021-10-14T09:52:27+02:00: The system inlet temperature is greater than the upper warning threshold. [WARNING]
* 2021-10-14T02:02:47+02:00: The system inlet temperature is greater than the upper critical threshold. [CRITICAL]
* 2021-10-14T00:10:12+02:00: The system inlet temperature is greater than the upper warning threshold. [WARNING]

States

  • CRIT if severity of the message is equal to „Critical“.

  • WARN if severity of the message is equal to „Warning“.

  • Otherwise returns OK.

Perfdata / Metrics

There is no perfdata.

Credits, License