Created
December 19, 2017 03:25
-
-
Save rubenbruno89/9cac96955ca3ce6b3fc48e56553591a9 to your computer and use it in GitHub Desktop.
Monitorar servidor usado twitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Autor: Ruben Bruno Cavalcante de Menezes | |
#Em caso de bugs enviar um email para | |
#email: rubenbruno@outlook.com | |
#Script de Monitoramneto de host ou site | |
clear | |
echo | |
if ping -c 4 ucv.edu.br ; then | |
echo | |
echo Teste de BEM-SUCEDIDO! | |
else | |
twidge update "O SITE DA UCV ESTÁ FORA DO AR!" | |
fi | |
echo | |
if ping -c 4 moodlep.ucv.edu.br ; then | |
echo | |
echo Teste de PING BEM-SUCEDIDO! | |
else | |
twidge update "O AVA PRESENCIAL ESTA FORA DO AR!" | |
fi | |
echo | |
if ping -c 4 moodle2.catolicavirtual.br ; then | |
echo | |
echo Teste de PING BEM-SUCEDIDO! | |
else | |
twidge update "O AVA SEMIPRESENCIAL DA UCB ESTA FORA DO AR!" | |
fi | |
echo | |
if ping -c 4 portal.ucv.edu.br ; then | |
echo | |
echo Teste de PING BEM-SUCEDIDO! | |
else | |
twidge update "O PORTAL ACADEMICO ESTA FORA DO AR!" | |
fi | |
echo | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment