[mrtg] MRTG and RRD tool - matching the look and feel.
Stian Øvrevåge
sovrevage at gmail.com
Fri Mar 5 16:57:42 CET 2010
On Fri, Mar 5, 2010 at 4:15 PM, Alex van den Bogaerdt
<alex at vandenbogaerdt.nl> wrote:
> ----- 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.
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>
Also have a look here: http://oss.oetiker.ch/rrdtool-trac/wiki/OutlinedAreaGraph
As well as the general gallery:
http://oss.oetiker.ch/rrdtool/gallery/index.en.html .
Here are a couple of graphs I've made using the above tips and
inspiration: http://bildr.no/image/601821.jpeg .
Cheers, Stian
More information about the mrtg
mailing list