[Nagiosplug-help] Check_dig returning warning state incorrectly

Ton Voon ton.voon at altinity.com
Mon Sep 26 00:54:01 CEST 2005


On 23 Sep 2005, at 17:32, Hans Engelen wrote:

> Hi all,
>
> I have some problems with the check_dig plugin.
>
> See here :
>
> [root at nagios plugins]# ./check_dig -H 10.10.10.1 -l  
> host.domain.name -w 0.100 -c 0.250 -a 10.10.10.10
> DNS OK - 0.020 seconds response time (host.domain.name. 1200 IN A  
> 10.10.10.10)|time=0.020128s;0.100000;0.250000;0.000000
>
> [root at nagios plugins]# ./check_dig -H 10.10.10.1 -l  
> host.domain.name -w 0.100 -c 0.250 -a 10.10.10.10
> DNS WARNING - 0.024 seconds response time (host.domain.name. 1200  
> IN A 10.10.10.10)|time=0.023646s;0.100000;0.250000;0.000000
>
> [root at nagios plugins]# ./check_dig -H 10.10.10.1 -l  
> host.domain.name -w 0.100 -c 0.250 -a 10.10.10.10
> DNS OK - 0.020 seconds response time (host.domain.name. 1200 IN A  
> 10.10.10.10)|time=0.020145s;0.100000;0.250000;0.000000
>
> As you can see the second time the check returned a WARNING state  
> and I can't for the life of me figure out why.
> I am using the plugin from the most recent set (i.e. 1.4.2) now but  
> had the problem with 1.4.1 also.

> Incidentally I am running all this on a Quad-CPU smp kernel 2.6.9  
> Red Hat EL 4 box. Scanning through recent messages that seems to be  
> important too.

Did you compile the entire 1.4.2 release? There has been a fix for  
Redhat since there is a problem in the kernel for the dig and the  
nslookup command when using popen. Our fix in 1.4.2 release also  
changed the configure script to pick up this scenario., but if you  
just took the check_dig.c file and compiled against the 1.4.1  
release, this would not pick up the fix.

Ton




http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20050926/595cc54c/attachment.html>


More information about the Help mailing list