[mrtg] MRTG Add on script
Michael John Hess (Sr. Network Eng)
mrtg at gowebco.com
Thu Nov 1 21:40:51 MET 2001
Hello,
I have a script that is for figuring out month gig usage. Its a cgi script. It is looking for a program called "monthdays" and can't find it. I'm running on FreeBSD 4.4 If any one can give me any help on this it would be great. Its for the prior.sh file. Here is a caption of it.
CURRENT=`date "+%m"`
MONTH=`expr $CURRENT - 1`
if [ `expr $MONTH : '.*'` -eq 1 ]
then CURRENT=0$MONTH ; MONTH=$CURRENT
fi
YEAR=`date "+%Y"`
DAYS=`./monthdays $YEAR $MONTH`
--Michael John Hess
mike at gowebco.com
WEBco Solutions
Sr. Network Eng.
(352) 746-2500
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list