check_tcp question

Brandon Nistor brandon.nistor at gmail.com
Wed Jul 1 21:01:17 CEST 2015


Hello,

I am trying to implement the check_tcp command to monitor if a specific
port is closed on a host, and not open. This page
https://www.monitoring-plugins.org/doc/man/check_tcp.html has a few options
which I've tried, with zero success, including:

-r and -M and -e

Basically, if the check can not connect to the port, that is the intended
result. I am getting socket timeouts when I try the following from the
nagios box itself to the host:

./check_tcp -H $HOST -p 8079 -r crit
CRITICAL - Socket timeout after 10 seconds
./check_tcp -H $HOST -p 8079 -e "CRITICAL - Socket timeout after 10 seconds"
CRITICAL - Socket timeout after 10 seconds
./check_tcp -H $HOST -p 8079 -M crit

Can you put me in the right direction for getting this to work?

Thank you,

Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20150701/aa0131ea/attachment.html>


More information about the Help mailing list