Monitoring

Check via crontab if a certain webserver is responding:

wget -o output.txt --no-check-certificate https://urlofwebserver/test
if grep -q "404\|503" "output.txt" ; then
  echo `date` "M-System not avaiable" >> status.log
else
  echo `date` "M-System ok" >> status.log
fi
 
wettstein/linuxscripts.txt · Last modified: 2009-03-24 10:06 by frank.wettstein
 
Recent changes RSS feed Creative Commons License Powered by GNU/Linux Powered by Gentoo Powered by Apache Powered by XCache Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki