From: root [root@ahk] Sent: Wednesday, November 13, 2002 7:09 AM To: Kaplan, Andrew H. #!/bin/bash NAGIOSDIR=/usr/local/nagios CFGFILE=apan/apan.cfg RRDTOOL=/usr/local/rrdtool/bin/rrdtool HOST=`echo $QUERY_STRING|cut -d "&" -f 1|cut -d "=" -f 2` CHECK=`echo $QUERY_STRING|cut -d "&" -f 2|cut -d "=" -f 2` CONF=`egrep "^$HOST;$CHECK" $NAGIOSDIR/$CFGFILE` COMM=`echo $CONF|cut -d ";" -f 6` MDATE=`date +"%a, %d %b %Y %H:%M:%S %Z"` echo "Cache-Control: no-store" echo "Pragma: no-cache" echo "Refresh: 90" echo "Last-Modified: $MDATE" echo "Expires: Thu, 01 Jan 1970 00:00:00 GMT" echo "Content-type: text/html" echo "" echo "
"
echo " Current Network Status "
echo "Last Updated: $MDATE" echo "Updated every 90 seconds " echo "Nagios® - www.nagios.org " echo "Logged in as nagios " echo " |
Statistics for the last 10 minutes: | |
Statistics for the last hour: | |
Statistics for the last 24 hours: | |
Statistics for the last week: | |
Statistics for the last month: | |
Statistics for the last year: | |