check_dig display error

rick rick at ttys0.us
Thu Oct 16 18:07:59 CEST 2008


In attempting to set up check_dig I am having a problem with Nagios 2.5
displaying a warning message when there is no valid reason that I can 
tell.

The first section below shows the output of the Nagios display indicating 
that response time is 0.072 seconds but a warning is issued.  If I 
understand the settings for the checkcommands.cfg the warning should not 
be issued for a time interval of at least three seconds and critical 
status should not be indicated for less than a five second response.

Running check_dig from the command line always has shown response times of 
less than one second so I am having trouble understanding the why I keep 
receiving warning messages from Nagios. Can someone to point me in 
the right direction to fix this?

I had googled this problem and found only one possibility for a code 
patch for the configure script but found that it was incorporated.

thanks
rick


Nagios DISPLAY OUTPUT
Host    Service  Status  Last Check            Duration 
xx.tx   DIG      WARNING 10-16-2008 10:25:28   0d 21h 23m 58s
Attempt  Status Information 
3/3 	 DNS WARNING - 0.072 seconds response time (ns.xx.net. 3600 IN A xx.xx.8.2)


Nagios command line output
./check_dig -H ns.xxx.net -l www.xx.net -T A -w 3.0  -c 5.0
DNS OK - 0.039 seconds response time (www.xx.net.  3600 IN A 
xx.xx.179.67)|time=0.038771s;3.000000;5.000000;0.000000

checkcommands.cfg
# 'check_dig' command definition
define command{
         command_name    check_dig
         command_line    $USER1$/check_dig -H $HOSTADDRESS$ -l $ARG1$ -T $ARG2$ -w 3.0 -c 5.0
          }



services.cfg
# Service definition
define service{
         use                             generic-service     ; Name of 
service template to use
         host_name                       ns.xx
         service_description             DIG
         is_volatile                     0
         check_period                    24x7
         max_check_attempts              3
         normal_check_interval           1
         retry_check_interval            1
         contact_groups                  nagios-admins,dig
         notification_interval           120
         notification_period             24x7
         notification_options            c,r
         check_command                   check_dig!ns.xx.net!www.xx.net!A




uname -a
Linux sport 2.6.11.4-21.17-default #1 Fri Apr 6 08:42:34 UTC 2007 i686 
athlon i386 GNU/Linux

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list