check_dns and MX
Posted: Fri May 22, 2015 6:18 am
I was trying to setup a check to test an MX for change... essentially was waiting for a change to take place, and thought I would put in XI so that I was alerted.
check on my NXI server I did this:
check_dns -H <domain> -q MX and a valid record name is returned.
Now, if I wanted to expect a result that help says "-a" and a HOST would end with (.)
check_dns -H <domain> -q MX -a <hostname>.
I get "CRITICAL - Plugin timed out while executing system call" after about 15 seconds.
So then I place in a bogus hostname after the "-a"
check_dns -H <domain> -q MX -a goob.blahblah.com.
I get "check_dns: Invalid hostname/address - GOob.blahblah.com." , and also notice the first two characters get capitalized in the result.
check on my NXI server I did this:
check_dns -H <domain> -q MX and a valid record name is returned.
Now, if I wanted to expect a result that help says "-a" and a HOST would end with (.)
check_dns -H <domain> -q MX -a <hostname>.
I get "CRITICAL - Plugin timed out while executing system call" after about 15 seconds.
So then I place in a bogus hostname after the "-a"
check_dns -H <domain> -q MX -a goob.blahblah.com.
I get "check_dns: Invalid hostname/address - GOob.blahblah.com." , and also notice the first two characters get capitalized in the result.