[mrtg] MRTG and RRD tool - matching the look and feel.

Alex van den Bogaerdt alex at vandenbogaerdt.nl
Fri Mar 5 16:15:40 CET 2010


----- Original Message ----- 
From: "John Cushnie" <john at dallambarn.freeserve.co.uk>
To: <mrtg at lists.oetiker.ch>
Sent: Friday, March 05, 2010 3:15 PM
Subject: [mrtg] MRTG and RRD tool - matching the look and feel.


>Hi,
>
>I am using MRTG to monitor some network adapters as follows:
><snip>
>I am also using RRDTool to monitor the performance of a storage disk array:
><snip>
>The stats come in a csv file which is then translated and loaded in to an
>rrd database and then graphed, all using Perl.
>
>I would really like to get the rrdtool graphs looking like the MRTG 
>graphs..
>
>The Perl I am using to create the rrdtool graphs is as follows:
>   $sys_command = "rrdtool.exe graph " . "../wwwroot/" . $stats_type .
>"_fms2_day.png " .
>               "--start -1d " .
>               "--end n " .
>               "--vertical-label $y_legend " .
>               "DEF:r_buf=eva_as_fms2.rrd:eva_as_fms2_req:AVERAGE " .
>               "DEF:m_buf=eva_as_fms2.rrd:eva_as_fms2_mbs:AVERAGE " .
>               ##"COMMENT:\"\t\t\t\t\tTime of day\" " .
>               "LINE1:r_buf#FF0000:\"Req\""  . " " .
>               "LINE1:m_buf#FF00FF:\"MBs\"";
>   printf("$sys_command\n");
>
>Any pointer/suggestions on how I get the look and feel of the MRTG graphs
>please?

MRTG uses an AREA and a LINE. It should already be a big improvement if you 
do that as well in your RRDtool script.  And MRTG uses green and blue, you 
don't.

> Also can I get the Max:  Average:  Current: values out of rrdtool?

Sure. PRINT them. See the tutorial. Do this as well for GPRINTing them in 
the graph. 



More information about the mrtg mailing list