conf/dns.conf
author Eric Renfro <psi-jack@gmail.com>
Fri, 28 Jun 2013 13:27:07 -0400
changeset 23 5d95402f2a3a
parent 9 8c143dccc517
permissions -rw-r--r--
Adjusted zabbix key item to be parameterized instead of the whole key.

# Checks DNS A record $1 on server $2
# Returns exit code of host(1) command: 0 - Ok, 1 - error
# (Hint: define value map for 0, 1)
UserParameter=host[*],host -W 3 $1 $2 > /dev/null; echo $?