I am trying to get the following nagios command to work. I'm running this in the command line for testing purposes before I wrap it into a service check. Note: I took this example out of 'Building a Monitoring Infrastructure with NAGIOS' by David Josephsen
[root@VM-NETTOOLS nagios]# /usr/lib/nagios/plugins/check_tcp -H google.com -p 80
TCP OK - 0.061 second response time on port 80|time=0.060624s;;;0.000000;10.000000
[root@VM-NETTOOLS nagios]# /usr/lib/nagios/plugins/check_tcp -H google.com -p 80 -s 'GET / HTTP/1.0' -e 'HTTP/1.0 200 OK'
CRITICAL - Socket timeout after 10 seconds
[root@VM-NETTOOLS nagios]#
Last edited: