check_dns plugin only works with timeperiods
Posted: Mon Jun 16, 2014 11:52 am
Hiya,
I have a very strange issue on one of our dns servers.
Nagios Server is running on centOS 6.5 64 bit and running nagios 3.5.1 (epel version 6)
I would like to check_dns from our nagios server (to our dns server for google.com):-
As you will see, it only works with timeout value > 31. Hence I increased the time out accordingly under (on nagios server):
And on dns server too:
But still it does not work.
On the nagios core gui it says "Connection to DNS <IP> was refused".
On the nagios core server command line, check-dns only works if you pass -t 40 argument.
If I do not use -t option it says "CRITICAL - Plugin timed out while executing system call".
On our dns server logs it says:
I have tried to provide as much info as I could but if you would like any more pls ask.
many thanks,
M.
I have a very strange issue on one of our dns servers.
Nagios Server is running on centOS 6.5 64 bit and running nagios 3.5.1 (epel version 6)
I would like to check_dns from our nagios server (to our dns server for google.com):-
Code: Select all
[root@nagios plugins]# ./check_dns -H <dns server> -s www.google.com
CRITICAL - Plugin timed out while executing system call
[root@nagios plugins]# ./check_dns -H <dns server> -s www.google.com -t 40
DNS OK: 30.017 seconds response time. <remote server> returns |time=30.016893s;;;0.000000
[root@nagios plugins]# uname -a
Linux nagios.xx.xx. 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
/etc/nagios/objects/commands.cfg
# 'check_dns' command definition
define command
{
command_name check_dns
command_line $USER1$/check_dns -H $ARG1$ -s $HOSTADDRESS$ -t 70
}
Code: Select all
/etc/nagios/nrpe.cfg
command_timeout=60
On the nagios core gui it says "Connection to DNS <IP> was refused".
On the nagios core server command line, check-dns only works if you pass -t 40 argument.
If I do not use -t option it says "CRITICAL - Plugin timed out while executing system call".
On our dns server logs it says:
Code: Select all
[root@dns server ~]# tail -f /var/log/messages
Jun 16 17:48:39 dns server named[2041]: client <nagios server IP>#60447: query (cache) 'www.google.com/A/IN' denied
many thanks,
M.