did you modify it? It should be something like: $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
Then, your service 'check_command' definition would look like: check_tcp!104 I'm not sure why $ARG2$ is on the end there... On Wed, 2008-06-18 at 10:39 -0700, Jim Miller wrote: > 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 <[EMAIL PROTECTED]> > To: Jim Miller <[EMAIL PROTECTED]> > Cc: nagios-users@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@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 > ------------------------------------------------------------------------- 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@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