Add Speedtest
This commit is contained in:
parent
aec8be77bd
commit
8b649300d4
@ -2,16 +2,16 @@
|
|||||||
|
|
||||||
if ping -c 1 o2.de &> /dev/null
|
if ping -c 1 o2.de &> /dev/null
|
||||||
then
|
then
|
||||||
#echo "Sende E-Mail"
|
echo "Sende E-Mail"
|
||||||
#mail -s "Pingtest" system@hephaistos.schwalbert.net < ./ping.log
|
#mail -s "Pingtest" system@hephaistos.schwalbert.net < ./ping.log
|
||||||
#rm ./ping.log
|
#rm ./ping.log
|
||||||
else
|
else
|
||||||
date +"%D %T" >> ping.log
|
date +"%D %T" >> ./ping.log
|
||||||
if ping -c 1 192.168.1.1 &> /dev/null
|
if ping -c 1 192.168.1.1 &> /dev/null
|
||||||
then
|
then
|
||||||
echo "Internet nicht erreichbar: (Ping o2.de fehlgeschlagen, Ping Internetgateway erfolgreich)" >> ping.log
|
echo "Internet nicht erreichbar: (Ping o2.de fehlgeschlagen, Ping Internetgateway erfolgreich)" >> ./ping.log
|
||||||
else
|
else
|
||||||
echo "Netzwerk nicht erreichbar: (Ping o2.de fehlgeschlagen, Ping Internetgateway fehlgeschlagen)" >> ping.log
|
echo "Netzwerk nicht erreichbar: (Ping o2.de fehlgeschlagen, Ping Internetgateway fehlgeschlagen)" >> ./ping.log
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
10
speedtest.sh
Executable file
10
speedtest.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ping -c 1 o2.de &> /dev/null
|
||||||
|
then
|
||||||
|
date +"%D %T" >> ./speed.log
|
||||||
|
speedtest-cli --simple >> ./speed.log
|
||||||
|
echo "" >> ./speed.log
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user