check_tcp question
Jam Mulch
spammagnet10 at gmail.com
Wed Jul 1 22:44:49 CEST 2015
Isn't that what the negate check is for?
On 07/01/2015 03:01 PM, Brandon Nistor wrote:
> 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
More information about the Help
mailing list