<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>
<div> </div>
<div>Dig output (no options)</div>
<div>
<p>; <<>> DiG 9.2.4 <<>><br>;; global options: printcmd<br>;; Got answer:<br>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1645<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 12
</p>
<p>;; QUESTION SECTION:<br>;. IN NS</p>
<p>;; ANSWER SECTION:<br>. 18332 IN NS <a href="http://k.root-servers.net">k.root-servers.net</a>.<br>. 18332 IN NS <a href="http://l.root-servers.net">
l.root-servers.net</a>.<br>. 18332 IN NS <a href="http://m.root-servers.net">m.root-servers.net</a>.<br>. 18332 IN NS <a href="http://a.root-servers.net">
a.root-servers.net</a>.<br>. 18332 IN NS <a href="http://b.root-servers.net">b.root-servers.net</a>.<br>. 18332 IN NS <a href="http://c.root-servers.net">
c.root-servers.net</a>.<br>. 18332 IN NS <a href="http://d.root-servers.net">d.root-servers.net</a>.<br>. 18332 IN NS <a href="http://e.root-servers.net">
e.root-servers.net</a>.<br>. 18332 IN NS <a href="http://f.root-servers.net">f.root-servers.net</a>.<br>. 18332 IN NS <a href="http://g.root-servers.net">
g.root-servers.net</a>.<br>. 18332 IN NS <a href="http://h.root-servers.net">h.root-servers.net</a>.<br>. 18332 IN NS <a href="http://i.root-servers.net">
i.root-servers.net</a>.<br>. 18332 IN NS <a href="http://j.root-servers.net">j.root-servers.net</a>.</p>
<p>;; ADDITIONAL SECTION:<br><a href="http://k.root-servers.net">k.root-servers.net</a>. 70733 IN A <a href="http://193.0.14.129">193.0.14.129</a><br><a href="http://l.root-servers.net">l.root-servers.net
</a>. 46102 IN A <a href="http://198.32.64.12">198.32.64.12</a><br><a href="http://m.root-servers.net">m.root-servers.net</a>. 46102 IN A <a href="http://202.12.27.33">202.12.27.33</a><br>
<a href="http://b.root-servers.net">b.root-servers.net</a>. 18332 IN A <a href="http://192.228.79.201">192.228.79.201</a><br><a href="http://c.root-servers.net">c.root-servers.net</a>. 46102 IN A
<a href="http://192.33.4.12">192.33.4.12</a><br><a href="http://d.root-servers.net">d.root-servers.net</a>. 46102 IN A <a href="http://128.8.10.90">128.8.10.90</a><br><a href="http://e.root-servers.net">e.root-servers.net
</a>. 58134 IN A <a href="http://192.203.230.10">192.203.230.10</a><br><a href="http://f.root-servers.net">f.root-servers.net</a>. 70733 IN A <a href="http://192.5.5.241">192.5.5.241</a><br>
<a href="http://g.root-servers.net">g.root-servers.net</a>. 59934 IN A <a href="http://192.112.36.4">192.112.36.4</a><br><a href="http://h.root-servers.net">h.root-servers.net</a>. 60834 IN A
<a href="http://128.63.2.53">128.63.2.53</a><br><a href="http://i.root-servers.net">i.root-servers.net</a>. 46102 IN A <a href="http://192.36.148.17">192.36.148.17</a><br><a href="http://j.root-servers.net">
j.root-servers.net</a>. 70733 IN A <a href="http://192.58.128.30">192.58.128.30</a></p>
<p>;; Query time: 2 msec<br>;; SERVER: 10.10.10.1#53(<a href="http://10.10.10.1">10.10.10.1</a>)<br>;; WHEN: Fri Sep 23 18:21:09 2005<br>;; MSG SIZE rcvd: 433</p>
<p>I tried going back to the version in plugins 1.3.1 but unless I am mistaken that version does not allow you to set warning and critical values for how long the dns takes to respond. This is something I need though since on rare occasions (cough) one of the Windows boxes running DNS gets a little ... ehm ... sluggish. A situation which impacts performance all around for scores of applications.
</p>
<p>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.</p>
<p>Any suggestions are welcome.</p>
<p> </p>
<p>Cheers,</p>
<p>Hans Engelen</p></div>