[mrtg] Re: graph last value with current?

John strgout at unixjunkie.com
Tue Sep 23 00:45:16 MEST 2003

>On Mon, Sep 22, 2003 at 10:41:53PM +0200, Alex van den Bogaerdt wrote:
> You mean you need the opposite of what a normal counter accomplishes?
> You get some kind of value starting at zero each time you poll (just
> like ABSOLUTE) and need to graph the total (as with GAUGE) ?
> It is probably best to gather the numbers using a separate script,
> add them to the grand total and feed this grand total to MRTG
> (using the external program interface).
> This being said, I think you really should use another program, such
> as excel, in stead of creating a workaround using MRTG.
> Alex
I'm not down with the excel ;).

Could i just strip the numbers from the log file?
awk '{(if $2 ~ [0-9]+) {COUNTER+= $2} END { print bla COUNTER bla}' > total.mrtg?

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