mirror of
https://github.com/ThunixdotNet/monurbox.git
synced 2026-01-24 12:00:19 +00:00
Cleanup dirs
This commit is contained in:
10
checks/disk
Executable file
10
checks/disk
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
ssh $SITE "bash -s" < ./plugins/disk > /dev/null
|
||||
if [ $? -ne "0" ]
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
10
checks/mem
Executable file
10
checks/mem
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
ssh $SITE "bash -s" < ./plugins/mem > /dev/null
|
||||
if [ $? -ne "0" ]
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
12
checks/mis
Executable file
12
checks/mis
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
ssh $SITE "bash -s" < ./plugins/check_proc mis > /dev/null
|
||||
if [ $? -ne "0" ]
|
||||
then
|
||||
echo -e $SITE"\tDOWN"
|
||||
exit 1
|
||||
else
|
||||
echo -e $SITE"\tGOOD"
|
||||
exit 0
|
||||
fi
|
||||
10
checks/sshd
Executable file
10
checks/sshd
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
ssh $SITE "bash -s" < ./plugins/check_proc sshd > /dev/null
|
||||
if [ $? -ne "0" ]
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
10
checks/telnet
Executable file
10
checks/telnet
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
timeout 2 bash -c "</dev/tcp/${SITE}/23" > /dev/null
|
||||
if [ $? -ne "0" ]
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
10
checks/web_site
Executable file
10
checks/web_site
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
export SITE=$1
|
||||
|
||||
wget --quiet -O /dev/null $SITE
|
||||
if [ $? -ne "0" ]
|
||||
then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user