<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><P>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.</P>
<P> </P>
<P>define command{</P>
<P>            command_name        check_tcp</P>
<P>            command_line            $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARGS1$ $ARGS2$</P>
<P>            }</P>
<P> </P>
<P>Is that what you mean?</P>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Aaron M. Segura <aaron.segura@cabelas.com><BR>To: Jim Miller <jim.miller74@yahoo.com><BR>Cc: nagios-users@lists.sourceforge.net<BR>Sent: Wednesday, June 18, 2008 1:29:38 PM<BR>Subject: Re: [Nagios-users] Service monitoring question<BR><BR>Your check command is incorrect.  We'll need to see your command<BR>definition for 'check_tcp' to tell you for sure what's wrong, though.<BR><BR><A href="http://nagios.sourceforge.net/docs/2_0/xodtemplate.html" target=_blank>http://nagios.sourceforge.net/docs/2_0/xodtemplate.html</A><BR><BR>On Wed, 2008-06-18 at 10:20 -0700, Jim Miller wrote:<BR>> I have the following in my windows.cfg file<BR>> define service{<BR>
 >     use                  generic-service        <BR>>
     host_name            my host name<BR>>     service_description        DICOM<BR>>     check_command        check_tcp! -H my ip -p 104<BR>>     }<BR>> but it returns a status of unknown in the Nagios dashboard. I get the following message.<BR>> check_tcp: Port must be a positive integer <BR>> I have run the check_tcp command from the command line (minus the !) successfully with that same syntax. Any ideas?<BR>> -------------------------------------------------------------------------<BR>> Check out the new SourceForge.net Marketplace.<BR>> It's the best place to buy or sell services for<BR>> just about anythin
 g Open Source.<BR>> <A href="http://sourceforge.net/services/buy/index.php" target=_blank>http://sourceforge.net/services/buy/index.php</A><BR>>
 _______________________________________________ Nagios-users mailing list <A href="mailto:Nagios-users@lists.sourceforge.net" ymailto="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A> <A href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target=_blank>https://lists.sourceforge.net/lists/listinfo/nagios-users</A> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null<BR></DIV></DIV></div></body></html>