[mrtg] Graphing small values (disappear in the month/year graph)
cdstock at ccis.edu
Wed Jun 2 19:44:19 CEST 2010
When I've used a target like this (active state of a firewall in my case), I took the target * 100, so that in the week, month, and year graphs it is mathematically possible for a device to be active for only part of the poll cycle.
Adding with peaks as others have noted also helps display the behavior of systems when you're running a script that returns 1 or 0 for the value to be graphed.
Hope this helps,
From: mrtg-bounces+cdstock=ccis.edu at lists.oetiker.ch [mailto:mrtg-bounces+cdstock=ccis.edu at lists.oetiker.ch] On Behalf Of Markus
Sent: Wednesday, June 02, 2010 5:18 AM
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Graphing small values (disappear in the month/year graph)
I'm using MRTG to graph a state of "ON" of a certain event, and that event
usually lasts only something like 15 to 60 minutes. Also, it happens not
so frequently, so something like every 2-4 days.
The script that feeds the data into MRTG just sends a "1" when the state
is "ON", so MRTG displays a value of 1 for a period of 15 to 60 mins in
the daily graph. When the event is "OFF", the script feeds a "0" to MRTG.
The problem that I am encountering is that the event "disappears" after a
while from the monthly / yearly graphs. I think this is because MRTG is
building an average of the collected values and this average is becoming
"smaller and smaller" for the monthly and yearly graphs over time (I can
confirm that by looking at the logfile) and because of the small value and
short time span results in the events disappearing completely from the
monthly and yearly graphs.
Does anyone have an idea how to solve that?
Options[something]: integer, gauge, nobanner, growright, noinfo,
nopercent, nolegend, perhour
Thanks a lot!
mrtg mailing list
mrtg at lists.oetiker.ch
More information about the mrtg