check_tcp not working?

Yang Xiao yxiao2004 at gmail.com
Thu Aug 19 20:10:06 CEST 2004


Hi,
I have just recently migrated some netsaint commands over to Nagios 1.2
I have a couple of check_tcp related commands that checks for response
strings that doesn't work with the Nagios check_tcp anymore, can
anyone please help?

define command{
        command_name    check_squid_80
        command_line    /usr/local/nagios/libexec/check_tcp
$HOSTADDRESS$ -p 80 -s 'GET http://www.yahoo.com HTTP/1.0\n\n' -e
'HTTP/1.0 200 OK' -t 30
        }

define command{
        command_name    check_vnc
command_line   /usr/local/nagios/libexec/check_tcp -H $HOSTADDRESS$ -p
5900 -e "RFB 003.003"
        }

both commands times out when I ran them from the command line as well.

Thanks,

Yang


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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