probs configuring check_dns

Steve Loughran stevelml1 at scee.sony.co.uk
Sun Oct 13 17:32:14 CEST 2002


check the command that you are actually calling

        check_command  check_tcp!$ARG1$ <<<<<!!!!!

you are calling check_tcp and not check_dns

Steve

----- Original Message -----
From: "Tom Welsh" <twelsh at tcplan.net>
To: <nagios-users at lists.sourceforge.net>
Sent: Sunday, October 13, 2002 3:45 PM
Subject: [Nagios-users] probs configuring check_dns


> Hi all,
>
> im slowly but surely adding checks to my nagios box an ive come over a
> problem i cant seem to get to the bottom of on check_dns. From the shell i
> can do ....
>
> #./check_dns -H www.tcplan.net -v
> DNS ok - 0 seconds response time, Address(es) is/are 80.87.131.163
>
> which works fine. I have specified the following in my checkcommands.cfg
and
> services.cfg respectivly
>
> CHECKCOMMANDS.cfg
> # 'check_dns' command definition
> define command{
>        command_name    check_dns
>        command_line    $USER1$/check_dns -H ns1.clara.net -s $HOSTADDRESS$
>        }
>
> SERVICES.CFG
> # Service definition for check_dns
>
> define service{
>        use                             generic-service         ; Name of
> servic
> e template to use
>        host_name                       web-server
>        service_description             check_dns
>        is_volatile                     0
>        check_period                    24x7
>        max_check_attempts              3
>        normal_check_interval           5
>        retry_check_interval            1
>        contact_groups                  tcplan-support
>        notification_interval           240
>        notification_period             24x7
>        notification_options            c,r
>        check_command                   check_tcp!$ARG1$
>        }
>
> but i get the following unknown problem shown in SERVICE STATUS.....
>
> Server port must be a positive integer.
>
> Can someone point out my obvious mistake coz i cant spot it and i've been
> looking now for over an hour.
>
> Cheers
>
> Tom Welsh
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list