Initial clone

This commit is contained in:
Ubergeek
2019-01-31 01:18:23 +00:00
commit 7855af95cc
15 changed files with 894 additions and 0 deletions

10
monurbox-master/checks/disk Executable file
View 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
monurbox-master/checks/mem Executable file
View 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
monurbox-master/checks/mis Executable file
View 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
monurbox-master/checks/sshd Executable file
View 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
monurbox-master/checks/telnet Executable file
View 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
monurbox-master/checks/web_site Executable file
View 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