################################################################################ object Host "mailserver" { import "linux-deb-host" display_name = "mailserver" address = "192.168.1.1" vars.role.linux["mail"] = { postfix = { qwarn = "200"; qcrit = "1500"; } amavisd = true } } apply Service "Postfix Mail Queue" { import "generic-service-perf" check_command = "check_nrpe_check_mailq_postfix" if (host.vars.role.linux.mail.postfix.qwarn) { vars.warn = host.vars.role.linux.mail.postfix.qwarn vars.crit = host.vars.role.linux.mail.postfix.qcrit } else { vars.warn = "200" vars.crit = "1000" } assign where host.vars.role.linux.mail.postfix } ----------- Log log("Host '" + host.name + "' Postfix hat als Wert '" + Json.encode(host.vars.role.linux.mail.postfix) + "'.") log("Host '" + host.name + "' Postfix QWarn hat als Wert '" + Json.encode(host.vars.role.linux.mail.postfix.qwarn) + "'.") log("Host '" + host.name + "' Postfix QCrit hat als Wert '" + Json.encode(host.vars.role.linux.mail.postfix.qcrit) + "'.") information/config: Host 'mx1.swsrz.de-10.200.0.1' Postfix hat als Wert '{"queuecrit":"1500","queuewarn":"200"}'. information/config: Host 'mx1.swsrz.de-10.200.0.1' Postfix QWarn hat als Wert 'null'. information/config: Host 'mx1.swsrz.de-10.200.0.1' Postfix QCrit hat als Wert 'null'.