[mrtg] script w/ values always reads zero on graph
Jim W. Weller
jim.weller at uaa.alaska.edu
Tue Sep 20 00:55:40 MEST 2005
mrtg-2.9.17
I have a mail log that I parse with an external script to do counts of
sent and recipients (which are bcc's). This tiny configuration is part
of a much larger one. I've broken it into its own config file because
I'm boggled by the results.
I think I'm clear on the difference between "normal", gauge, and
absolute. This one is normal because the counter continues to grow and I
want mrtg to calc the diff between this and last.
Why are my graphs for this (http://bb.uaa.alaska.edu/mrtg2/emails.html)
always zero? Even when I send a bunch of mails to make sure the values
for last and this are different and verify the numeric difference.
Thoughts?
mrtg.conf
--------------------------------------------
WorkDir: /usr/local/blackboard/docs/mrtg2
WriteExpires: Yes
XSize[_]: 260
YSize[_]: 80
# bb6 emails sent/recieved
Target[emails]: `/root/uaa_scripts/mrtg_email_counter.sh`
MaxBytes[emails]: 1000000
Title[emails]: Email statistics
PageTop[emails]: <H1>Emails sent</h1> This shows total emails sent and
total recipients of those mails.
ShortLegend[emails]:
YLegend[emails]: emails
Legend1[emails]:
Legend2[emails]:
Legend3[emails]:
Legend4[emails]:
LegendO[emails]: Sent emails
LegendI[emails]: Email recipients
Options[emails]: integer,growright, nopercent, noinfo
--------------------------------------------
and output from /root/uaa_scripts/mrtg_email_counter.sh looking like
this
--------------------------------------------
981
209
0
0
--------------------------------------------
Jim Weller
Software Engineer
Information Technology Services
University of Alaska Anchorage
3211 Providence Dr., Anchorage, AK 99508
o: (907) 786-4656
e: jim.weller at alaska.edu
w: http://technology.uaa.alaska.edu
The most important thing is not so
much where you are, but in what
direction you are going.
- Oliver Wendell Holmes -
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list