initial commit

This commit is contained in:
Moritz Rudert (helios)
2012-02-12 10:23:57 +01:00
commit 68840f51ec
13 changed files with 1055 additions and 0 deletions

13
check_tomcat_cluster Executable file
View File

@@ -0,0 +1,13 @@
#!/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