mirror of
https://github.com/ThunixdotNet/monurbox.git
synced 2026-01-24 20:10:17 +00:00
Re-doing the work from earlier
This commit is contained in:
12
checks/BZFlag_Server
Executable file
12
checks/BZFlag_Server
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
ssh $SITE "bash -s" < ./plugins/check_proc bzfs > /dev/null
|
||||
if [ $? -ne "0" ]
|
||||
then
|
||||
echo -e $SITE"\tDOWN"
|
||||
exit 1
|
||||
else
|
||||
echo -e $SITE"\tGOOD"
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user