Re-doing the work from earlier

This commit is contained in:
Ubergeek
2019-02-07 00:32:58 +00:00
parent afe9b34945
commit ddbe0ba4ee
10 changed files with 42 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
export SITE=$1
ssh $SITE "bash -s" < ./plugins/check_proc mis > /dev/null
ssh $SITE "bash -s" < ./plugins/check_proc bzfs > /dev/null
if [ $? -ne "0" ]
then
echo -e $SITE"\tDOWN"

10
checks/sshd_alt Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
export SITE=$1
timeout 2 bash -c "</dev/tcp/${SITE}/2222" > /dev/null
if [ $? -ne "0" ]
then
exit 1
else
exit 0
fi

View File

@@ -1,7 +1,7 @@
#!/bin/bash
export SITE=$1
wget --quiet -O /dev/null $SITE
wget --quiet -O /dev/null http://$SITE
if [ $? -ne "0" ]
then
exit 1

10
checks/web_site_https Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
export SITE=$1
wget --quiet -O /dev/null https://$SITE
if [ $? -ne "0" ]
then
exit 1
else
exit 0
fi

10
checks/znc Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
export SITE=$1
timeout 2 bash -c "</dev/tcp/${SITE}/1356" > /dev/null
if [ $? -ne "0" ]
then
exit 1
else
exit 0
fi