Checks the health state of the system and various subsystems.
This plugin monitors the:
A typical output would look like:
./check_netapp_health --host=filer01
NETAPP HEALTH OK - 7 (sub)systems checked
system.health: ok
subsystem.switch_health: ok
subsystem.cifs_ndo: ok
subsystem.metrocluster: ok
subsystem.metrocluster_node: ok
subsystem.fhm_switch: ok
subsystem.fhm_bridge: ok
The patterns given to the --exclude|-X and --include|-I parameters allow to check specific (sub-)systems only.
With --ok-status=<string or regex> the status can be defined which should be considered ok (e.g. confirmed errors). See also the section Examples and Regular Expressions.
$ ./check_netapp_health --host=filer01
NETAPP HEALTH OK - 7 (sub)systems checked
system.health: ok
subsystem.switch_health: ok
subsystem.cifs_ndo: ok
subsystem.metrocluster: ok
subsystem.metrocluster_node: ok
subsystem.fhm_switch: ok
subsystem.fhm_bridge: ok
Checks all subsystems and the overall system-health status on filer01. Will return CRITICAL if at least one of the sub-systems or the system have a state other than ok.
$ ./check_netapp_health --host=filer01
NETAPP HEALTH CRITICAL - 7 (sub)systems checked, 1 CRITICAL
system.health: ok_with_suppressed (CRITICAL)
subsystem.switch_health: ok
subsystem.cifs_ndo: ok
subsystem.metrocluster: ok
subsystem.metrocluster_node: ok
subsystem.fhm_switch: ok
subsystem.fhm_bridge: ok
A system with a confirmed (suppressed) error returns CRITICAL by default.
$ ./check_netapp_health --host=filer01 '--ok-status=~^(ok|ok_with_suppressed)$'
NETAPP HEALTH OK - 7 (sub)systems checked
subsystem.switch_health: ok
subsystem.cifs_ndo: ok
subsystem.metrocluster: ok
subsystem.metrocluster_node: ok
subsystem.fhm_switch: ok
subsystem.fhm_bridge: ok
system.health: ok_with_suppressed
Same as above but returns OK even with confirmed errors.
$ ./check_netapp_health -H filer01 -I ~^subsystem --alarm-limit=WARNING
NETAPP HEALTH WARNING - 6 (sub)systems checked, 1 WARNING
1 instances skipped because of --include/--exclude settings
subsystem.metrocluster: degraded (WARNING)
subsystem.switch_health: ok
subsystem.cifs_ndo: ok
subsystem.metrocluster_node: ok
subsystem.fhm_switch: ok
subsystem.fhm_bridge: ok
Check only the subsystems and do not send a CRITICAL but a WARNING only if at least one of them is not ok.