Added service_mdstat.conf

This commit is contained in:
Jonny007-MKD 2020-02-09 21:04:37 +01:00
parent 5562662f13
commit 755c3519df
1 changed files with 10 additions and 0 deletions

10
service_mdstat.conf Normal file
View File

@ -0,0 +1,10 @@
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
}
}