nagios/check_tomcat_cluster
Moritz Rudert (helios) 68840f51ec initial commit
2012-02-12 10:23:57 +01:00

14 lines
227 B
Bash
Executable File

#!/bin/bash
port=31182
. /usr/lib/nagios/plugins/utils.sh
if lsof -i -n -P | grep jsvc | grep $port | grep -q ESTABLISHED; then
echo "[OK]"
exit $STATE_OK
else
echo "[CRITICAL] not connected"
exit $STATE_CRITICAL
fi