Service monitoring question

Jim Miller jim.miller74 at yahoo.com
Wed Jun 18 19:39:01 CEST 2008


I'm afraid I don't follow. Are you referring to the way the command is defined in the command.cfg file? If that's the case it looks like this.
define command{
            command_name        check_tcp
            command_line            $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARGS1$ $ARGS2$
            }
Is that what you mean?



----- Original Message ----
From: Aaron M. Segura <aaron.segura at cabelas.com>
To: Jim Miller <jim.miller74 at yahoo.com>
Cc: nagios-users at lists.sourceforge.net
Sent: Wednesday, June 18, 2008 1:29:38 PM
Subject: Re: [Nagios-users] Service monitoring question

Your check command is incorrect.  We'll need to see your command
definition for 'check_tcp' to tell you for sure what's wrong, though.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html

On Wed, 2008-06-18 at 10:20 -0700, Jim Miller wrote:
> I have the following in my windows.cfg file
> define service{
>     use                  generic-service        
>     host_name            my host name
>     service_description        DICOM
>     check_command        check_tcp! -H my ip -p 104
>     }
> but it returns a status of unknown in the Nagios dashboard. I get the following message.
> check_tcp: Port must be a positive integer 
> I have run the check_tcp command from the command line (minus the !) successfully with that same syntax. Any ideas?
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________ 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080618/979c8f93/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-------------- next part --------------
_______________________________________________
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