[mrtg] Rateup Args/Docs?

William Owen William.Owen at profilesmail.com
Wed Nov 14 15:30:55 CET 2007

I had a similar requirement to store long term data for an application
yet still produce MRTG like graphs in my Routers2 front-end for
consistency.  To solve this, (mind you I'm using RRDTool as a back-end),
I update to SQL and then to a batch update of the last X (I do it
hourly) directly to RRDTool to sync the two and for graphing purposes.
This means that the data in RRDTool is a little behind real-time, but
for my purposes, this is acceptable.  You then create phantom MRTG
configuration files (they are valid except that the target line contents
are irrelevant and you never actually call it with MRTG) that your
front-end uses to graph the data.

-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch
[mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Dan Mahoney, System
Sent: Tuesday, November 13, 2007 5:45 PM
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Rateup Args/Docs?

Hello all,

Are the arguments for rateup documented anywhere besides in the script 
(some internal devel doc, of some sort, maybe?).

I'm in the process of switching over to rtg for a few things, but would 
like to have my graphs look the same -- even if it means I have to
mrtg by copying the data out of SQL to a mrtg pseudo-logfile, and then 
having rateup run over it manually (i.e. when the customer goes to view 
their graphs).

However, rtgplot doesn't run on windows (for reasons I cannot fathom). 
MRTG and rateup, however, do: so I'm looking to hybridize, for one 
important reason:

It seems that during the development of all these utils (rrdtool, mrtg, 
rtgplot, cricket, cacti, etbwmgr, others), nobody cared about consistent

graph appearance, and the reality is: if users see the graph style
they will often question any change in traffic patterns on the (obvious)

change in graphing software.

That said, is there a devel doc that tells me which options are required

(and which not) and in what order, or do I have to try to figure out 
rateup by reading stuff like this?


@exec = ("${FindBin::Bin}${MRTG_lib::SL}rateup",
                  $time, $$rcfg{'options'}{'unknaszero'}{$router} ? 
                  "$up_abs"."p", $inlast, $outlast, $absmax,
                  "C", $$rcfg{'rgb1'}{$router},$$rcfg{'rgb2'}{$router},
     } else {

         @exec = ("${FindBin::Bin}${MRTG_lib::SL}rateup",
                  $time, $$rcfg{'options'}{'unknaszero'}{$router} ? 
                  "$up_abs", $inlast, $outlast, $absmax,
                  "c", $$rcfg{'rgb1'}{$router},$$rcfg{'rgb2'}{$router},


"Blargy Frap!"

-mtreal, efnet #macintosh channel, 8.10.98, Approx 3AM

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org

mrtg mailing list
mrtg at lists.oetiker.ch

More information about the mrtg mailing list