I've got a problem with the
check_tcp plugin from Nagios and could not find any plugin that works like I need.
I'm sending a string to a port via
check_tcp and get a number back, in this case 2580. On this number I need to define warning and crital values.
/usr/lib/nagios/plugins# ./check_tcp -H XXXXXXXXXX -p 51031 -E -s "status\r\n" -d 1 -t 30 -e "SOMEThING" TCP WARNING - Unexpected response from host/socket: 2580|time=0,000358s;;;0,000000;30,000000
I need somthing like:
/usr/lib/nagios/plugins# ./check_tcp -H XXXXXXXXXX -p 51031 -E -s "status\r\n" -d 1 -t 30 -w 2500 -c 3000
Is there anyway to do this or any plugin I've not found yet?