icinga2/nagios script for checking the status of a mdadm RAID using /proc/mdstat
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
199 B

apply Service "mdstat-" for (name => opts in host.vars.mdstat) {
import "generic-service"
check_command = "mdstat"
vars.mdstat_name = name
for (k => v in opts) {
vars["mdstat_" + k] = v