[Nagiosplug-help] check_tcp oddness
karl at debisschop.net
Thu Jan 2 04:40:07 CET 2003
On Tue, 2002-12-31 at 13:24, nathan wrote:
> I'm in the process of migrating from check_ssh to check_tcp -p 22 in hopes of
> saving my poor server some cycles (400+ servers).
> Compiled from nagiosplug-1.3-beta1
> Testing from the command line returns some oddness whenever I use the "-e"
> [nagios at serverx:~/libexec] $ ./check_tcp -p 22 -e "SSH" -H localhost
> 0 1
> TCP OK - 0 second response time on port 22 [SSH-1.99-OpenSSH_3.0.2p1]
> [nagios at serverx:~/libexec] $ ./check_tcp -p 22 -e "spam" -H localhost
> 0 1
> 1 1
> Invalid response from host
> [nagios at serverx:~/libexec] $ ./check_tcp -p 22 -H localhost
> TCP OK - 0 second response time on port 22
> [nagios at serverx:~/libexec] $
> What is with the "0 1" line when I use -e? Why doesn't check_tcp return a
> message along the lines of "TCP Crit/Warn invalid response [response here]"?
Looks like it might have been errant debugging code.
Try beta 2.
Karl DeBisschop <karl at debisschop.net>
More information about the Help