attachment:mmrrdtool.jpg

Overview

This project aims to provide MoinMoin integration with RRDtool to extend the wiki into the network management realm.
A wiki makes a great tool for network administration, now you can extend your documentation and change management to include those pretty RRD graphs every SysAdmin likes to generate.

System Requirements

Installation

Installation is fairly simple, you just need to download the rrdGraph.py macro and copy it into your moinmoin macro directory, if you are unsure of where that is take a look at the MacroMarket page on the MoinMoin website.

Examples

The following graphs were created using the Mailgraph daemon (http://mailgraph.schweikert.ch).

dailymail.png weeklymail.png

rrdGraph macro used to generate graph

It may look complicated but its basically one long function call (equivalent to rrdtool graph) with arguments separated by semicolons and quotes removed.

[[rrdGraph(daily.png;--imgformat=PNG;--title=Daily Traffic;--rigid;--base=1000;--height=120;--width=500;--alt-autoscale-max;--lower-limit=0;--vertical-label="bits per second";--color=SHADEA#173B5B;--color=SHADEB#173B5B;DEF:inoctets=cisco.rrd:input:AVERAGE;DEF:outoctets=cisco.rrd:output:AVERAGE;CDEF:cdefa=inoctets,8,*;CDEF:cdeff=outoctets,8,*;AREA:cdefa#00CF00:Inbound;GPRINT:cdefa:LAST: Current\:%8.2lf%s;GPRINT:cdefa:AVERAGE:Average\:%8.2lf%s;GPRINT:cdefa:MAX:Maximum\:%8.2lf%s\n;LINE1:cdeff#002A97:Outbound;GPRINT:cdeff:LAST:Current\:%8.2lf%s;GPRINT:cdeff:AVERAGE:Average\:%8.2lf%s;GPRINT:cdeff:MAX:Maximum\:%8.2lf%s)]]


Design Requirements

  • Simple insert of RRDtool generated graphs inline with wiki content.

  • Provide an easy to use interface to other RRDtool operations.

  • Restrict access to admin specified rrd databases (may allow rrd attachments in future for snapshot data).

http://oss.oetiker.ch/rrdtool


Other Links of Interest

Switch - Network Monitoring and Analysis


CategoryProject