<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 23 Sep 2005, at 17:32, Hans Engelen wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>Hi all,</DIV> <DIV> </DIV> <DIV>I have some problems with the check_dig plugin.</DIV> <DIV> </DIV> <DIV>See here :</DIV> <DIV> </DIV> <DIV>[root@nagios plugins]# ./check_dig -H <A href="http://10.10.10.1">10.10.10.1</A> -l <A href="http://host.domain.name">host.domain.name</A> -w 0.100 -c 0.250 -a <A href="http://10.10.10.10">10.10.10.10</A><BR>DNS OK - 0.020 seconds response time (<A href="http://host.domain.name">host.domain.name</A>. 1200 IN A <A href="http://10.10.10.10">10.10.10.10</A>)|time=0.020128s;0.100000;0.250000;0.000000</DIV> <DIV><BR>[root@nagios plugins]# ./check_dig -H <A href="http://10.10.10.1">10.10.10.1</A> -l <A href="http://host.domain.name">host.domain.name</A> -w 0.100 -c 0.250 -a <A href="http://10.10.10.10">10.10.10.10</A><BR>DNS WARNING - 0.024 seconds response time (<A href="http://host.domain.name">host.domain.name</A>. 1200 IN A <A href="http://10.10.10.10">10.10.10.10</A>)|time=0.023646s;0.100000;0.250000;0.000000<BR> </DIV> <DIV>[root@nagios plugins]# ./check_dig -H <A href="http://10.10.10.1">10.10.10.1</A> -l <A href="http://host.domain.name">host.domain.name</A> -w 0.100 -c 0.250 -a <A href="http://10.10.10.10">10.10.10.10</A><BR>DNS OK - 0.020 seconds response time (<A href="http://host.domain.name">host.domain.name</A>. 1200 IN A <A href="http://10.10.10.10">10.10.10.10</A>)|time=0.020145s;0.100000;0.250000;0.000000</DIV> <DIV> </DIV> <DIV>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.</DIV> <DIV>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.</DIV></BLOCKQUOTE><BR><BLOCKQUOTE type="cite"><DIV><SPAN class="Apple-style-span"><FONT class="Apple-style-span" color="#000000">I</FONT>ncidentally 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.</SPAN></DIV></BLOCKQUOTE><BLOCKQUOTE type="cite"><DIV></DIV></BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ton</DIV><FONT class="Apple-style-span" color="#0000DD"></FONT><BR><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="http://www.altinity.com">http://www.altinity.com</A></DIV><DIV>T: +44 (0)870 787 9243</DIV><DIV>F: +44 (0)845 280 1725</DIV><DIV>Skype: tonvoon</DIV></SPAN></SPAN></SPAN></SPAN></SPAN><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>