[mrtg] Concurrent users MRTG problem
Bram Heerink
bram at guts.nl
Tue Jan 21 17:18:56 MET 2003
Hey to all,
Meaby my mrtg is broke or something...
/usr/local/etc/mrtg/test.cfg:
gay-www# cat test.cfg
WorkDir: /var/www/admin/mrtg
LegendI[gay]: Users
Target[gay]: `/var/www/www.gay.nl/bin/online.php | cat`
MaxBytes[gay]: 1000
Options[gay]: gauge, noinfo, nopercent
Title[gay]: load chatboy server: users
YLegend[gay]: Users
LegendO[gay]: Users
ShortLegend[gay]: Users
PageTop[gay]: <H1>Concurrent users gay.n</H1>
<TABLE>
<TR><TD>Maintainer:</TD><TD>Bram Heerink bram at guts.nl</TD></TR>
<TR><TD>Interface:</TD><TD>Concurrent users gay.nl</TD></TR>
<TR><TD>Max:</TD><TD>1000</TD></TR>
</TABLE>
/var/www/www.gay.nl/bin/online.php:
ls -la online.php:
gay-www# ls -l online.php
-rwxr-xr-x 1 root wheel 335 Jan 21 17:03 online.php
gay-www# ./online.php
95
95
95
95
gay-www#
Try to make it run; first run:
gay-www# /usr/local/bin/mrtg /usr/local/etc/mrtg/test.cfg
Rateup WARNING: /usr/local/bin/rateup could not read the primary log file
for gay
Rateup WARNING: /usr/local/bin/rateup The backup log file for gay was
invalid as well
Rateup WARNING: /usr/local/bin/rateup Can't remove gay.old updating log file
Rateup WARNING: /usr/local/bin/rateup Can't rename gay.log to gay.old
updating log file
gay-www# head gay.log
1043165774 98 98
1043165774 0 0 0 0
1043165400 0 0 0 0
1043165100 0 0 0 0
1043164800 0 0 0 0
1043164500 0 0 0 0
1043164200 0 0 0 0
1043163900 0 0 0 0
1043163600 0 0 0 0
1043163300 0 0 0 0
Results in HTML: Nothing, still zero files
???????????
Regards,
Bram Heerink
--
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