[mrtg] Try to graph concurrent users on website
Bram Heerink
bram at guts.nl
Tue Jan 21 14:19:57 MET 2003
Dear all,
First message on this list so I hope my questions are not to stupid. We have
a complicated website and I want to graph the concurrent loged in users each
5 minutes. There is a mysql table online that keeps the users records. So I
wrote a small php script to output the numbers of records in the table.
Script output of php script:
gay-www# ./online.php
112
gay-www#
But how do i graph this via mrtg?
I tried this but all what I get is zero graphs in my html.
Target[chatboy]: `/var/www/www.gay.nl/bin/online.php | /usr/bin/awk '{ print
$1; print $1; print "a high load" ; print "scriptname";}'`
MaxBytes[chatboy]: 1000
Options[chatboy]: gauge, noinfo, nopercent
Title[chatboy]: load chatboy server: users
YLegend[chatboy]: Users
LegendI[chatboy]:
LegendO[chatboy]: Users
ShortLegend[chatboy]: Users
PageTop[chatboy]: <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>
Why does this not work?
Please help!
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