initial commit

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

No files matched your search

+13
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