Re: check_tcp question
Jam Mulch <[email protected]> Wed, 01 Jul 2015 16:44:49 -0400
| Newsgroups | gmane.network.nagios.plugins |
|---|---|
| Message-ID | <[email protected]> |
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