I am trying to code a routine in Nagios to check a website dns and if the IP matches does not match IP:xx.xx.xx.xx then generate an alert.
Any suggestions? Thanks
check_dns_pl or check_dns
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: check_dns_pl or check_dns
check_dns comes with the Nagios Plugins package:
Is this what you were after ?
Code: Select all
/usr/local/nagios/libexec/check_dns -H xitest.box293.local. -a 10.25.5.2
DNS OK: 0.328 seconds response time. xitest.box293.local. returns 10.25.5.2|time=0.327597s;;;0.000000
/usr/local/nagios/libexec/check_dns -H xiproduction.box293.local. -a 10.25.5.2
DNS CRITICAL - expected '10.25.5.2' but got '10.25.5.1'As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: check_dns_pl or check_dns
Yes, well done it works perfectly. I knew there was a check_dns but I wasn't aware of the -a option.
thank you
thank you
Re: check_dns_pl or check_dns
Ah! Great to hear you got it working.
Going to close this one out now, but feel free to make a new thread if you require any assistance in the future.
Going to close this one out now, but feel free to make a new thread if you require any assistance in the future.
Former Nagios Employee