[mrtg] Re: Why does it work as a gauge but not a rate?
Stieers, Ken
KStieers at DainRauscher.com
Thu Jul 27 14:50:27 MEST 2000
By default MRTG does the following calculation and graphs it:
(new reading - old reading)/time elapsed
Options: absolute does the following:
New reading/time elapsed
Options: gauge does no calculations
Your results tell me that the difference between the old reading and the new
reading are very small, so the division by 300 (seconds in 5 min) comes out
less than 1. Since MRTG only does integers, you get 0. You might want to
look at the Perminute or Perhour options.
HTH,
Ken
> -----Original Message-----
> From: Joel Rising [mailto:rising at disappearing.com]
> Sent: Wednesday, July 26, 2000 6:32 PM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Why does it work as a gauge but not a rate?
>
>
> Folks,
>
> I am using MRTG to analyze some data from an application.
> My target in MRTG is a shell script which returns output
> like the following:
>
> 460
> 0
> 0:17:11:40.00
> keys003
>
> The first number is monotonically increasing, and the second
> is always zero.
>
> When I use the "gauge" option, I get results in the log file,
> and a graph that shows the total. If I do not use the "gauge"
> option, the graph always shows zero, and the log file shows
> all its entries as zero, except for the top-most, which shows
> whatever the current value is.
>
> Any idea how to start debugging this problem?
>
> Thanks!
>
> Joel
>
>
> -- Attached file removed by Listar and put at URL below --
> -- Type: application/ms-tnef
> -- Size: 1k (1536 bytes)
> -- URL : http://www.ee.ethz.ch/~slist/pantomime/25-winmail.dat
>
>
> --
> 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
>
--
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