[Nagiosplug-help] check_tcp oddness
nathan
nathan at sysadminsith.org
Tue Dec 31 10:26:02 CET 2002
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"
option:
[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]"?
I have not tried calling check_tcp from Nagios directly yet.
Thanks,
--
Nathan the human
More information about the Help
mailing list