First commit
This commit is contained in:
commit
e305fac92c
12
check_quake
Executable file
12
check_quake
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
HOST=$1
|
||||||
|
PORT=$2
|
||||||
|
STATE=`quakestat -default q2s ${HOST}:${PORT} | grep "q2"`
|
||||||
|
if [[ $? == 0 ]]; then
|
||||||
|
printf "${PORT} - OK\n"
|
||||||
|
exit 0
|
||||||
|
elif [[ $? == 1 ]]; then
|
||||||
|
printf "${PORT} - DOWN\n"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user