check_netapp_node

Checks the uptime (time since last reboot) and the NetApp-filers Ontap version.

Description

This plugin has subcommands. Depending on the subcommand an other aspect of the nodes are checked.

  • uptime: Checks the time since the last nodes restart.

  • version: Checks the Ontap version running on each node.

Thresholds

For both subcommands thresholds can be set.

The uptime subcommand understands the --comparison option. This allows to check for either overly-long or overly-short uptimes.

In case of the version subcommand, the thresholds must be given in a semver-compatible format. See https://github.com/Masterminds/semver#basic-comparisons for details.

Including and excluding

The pattern given to the --exclude|-X and --include|-I parameters is matched against the instances full-name which includes the node name. This allows to check specific nodes only (or to exclude some of them).

Examples

Simple Examples

$ check_netapp_node uptime -H filer

Checks the uptime of all nodes.


./check_netapp_node version -H sim96           
NETAPP_PRO VERSION OK - 1 node checked
sim96cluster-01.SIMBOX (ver: 9.6.0, model: SIMBOX)

Displays the Ontap version of all nodes.


./check_netapp_node version -H sim96 -c "< 9.6"
NETAPP_PRO VERSION OK - 1 node checked
sim96cluster-01.SIMBOX (ver: 9.6.0, model: SIMBOX)

Checks for Ontap versions below 9.6 on all nodes - 9.6.0 ist ok


./check_netapp_node version -H sim96 -c "< 9.7"
NETAPP_PRO VERSION CRITICAL - 1 node checked, 1 CRITICAL
sim96cluster-01.SIMBOX (CRITICAL) (ver: 9.6.0, model: SIMBOX)

Checks for Ontap versions below 9.7 on all nodes - 9.6.0 is not ok