david
c19aa59021
> ‘monitoring/check_for_ubuntu_release.sh’ < ‘diskmon.lst.sample’ > ‘monitoring/diskmon.lst.sample’ < ‘diskmon.sh’ > ‘monitoring/diskmon.sh’ < ‘free.sh’ > ‘monitoring/free.sh’ < ‘get_uptime.sh’ > ‘monitoring/get_uptime.sh’ < ‘heartbeat.sh’ > ‘monitoring/heartbeat.sh’
14 lines
288 B
Bash
14 lines
288 B
Bash
#!/bin/bash
|
|
|
|
curl --silent http://torrent.ubuntu.com/simple/precise/server/ | grep beta2 >> /dev/null
|
|
|
|
if [ $? -eq 1 ]; then
|
|
#send mail
|
|
/home/david/SparkleShare/docs/scripts/telnet_mail.sh "Ubuntu 12.04 Precise Pangolin LTS is out."
|
|
else
|
|
echo "still beta2 online"
|
|
fi
|
|
|
|
|
|
exit 0
|