<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.17092" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Okay, now it's starting to make a little sense...</DIV>
<DIV> </DIV>
<DIV>Soooo, let's say that rrdtool and rrdcgi is in /usr/bin/</DIV>
<DIV> </DIV>
<DIV>...and my cgi dir is at /srv/www/cgi-bin</DIV>
<DIV> </DIV>
<DIV>...and I just want to graph traffic. </DIV>
<DIV> </DIV>
<DIV>Guessing here-</DIV>
<DIV> </DIV>
<DIV>Q1: Is this correct: Create a CGI script and put it into the /srv/www/cgi-bin that says something like:</DIV>
<DIV> </DIV>
<DIV>#!/usr/bin/rrdcgi<BR><BR><PRE> <HTML>
<HEAD><TITLE>RRDCGI Demo</TITLE></HEAD>
<BODY>
<H1>RRDCGI test Page</H1>
<RRD::GRAPH
/.../web/gifs/XXXXX.gif
--imginfo '<IMG SRC=/.../gifs/%s WIDTH=%lu HEIGHT=%lu >'
--lazy --start -1d --end now
DEF:http_src=/PATH/TO/RRDS/?????.rrd:http_src:AVERAGE
AREA:http_src#00ff00:http_src
>
</BODY>
</HTML></PRE></DIV>
<DIV>Q2: If I use-</DIV>
<DIV> cfgmaker --global 'Options[_]: unknaszero,bits' --global 'LogFormat: rrdtool' -output ~/router1.cfg <A href="mailto:public@router1">public@router1</A></DIV>
<DIV> ...to create the CFG files, what is corrrect for ?????.rrd?</DIV>
<DIV> </DIV>
<DIV>Q3: /PATH/TO/RRDS is where normally?</DIV>
<DIV> </DIV>
<DIV>Q4: Without having to make a cgi script for every router and time period, how do you use variables with the script (using bash or Perl)?</DIV>
<DIV> </DIV>
<DIV>(e.g. '/.../web/gifs/$image.gif', 'DEF:http_src=/PATH/TO/RRDS/$router.rrd:http_src:AVERAGE', and '--lazy --start -$period --end now' )</DIV>
<DIV> </DIV>
<DIV><BR><BR> </DIV>
<DIV> </DIV>
<DIV><BR><BR>>>> "Kevin P. Foote" <kpfoote@iup.edu> 11/12/2010 1:17 PM >>><BR><BR>those CGIs (14all, rrdcgi, routers2) use 'rrd graph' to create the<BR>images they display .. <BR><BR>so yes 'rrd graph' will do what you want .. the apps mentioned above<BR>deal with how you present the data / graphs generated to the browser.. <BR><BR>if your coming from a stock mrtg install using the traditional log<BR>format then 14all rrdcgi will mimic your mrtg look.<BR><BR>Im not advocating 1 vs the other of the normal 3 that are used.. they<BR>all do pretty much the same .. which is display your data thats stored<BR>in the .rrd file :-) <BR><BR>(im biased to drraw anyway)<BR><BR>------<BR>thanks<BR> kevin.foote<BR><BR>On Fri, 12 Nov 2010, Arvon Griffiths wrote:<BR><BR>-> It LOOKS like rrd graph with do what I want without me having to install 14all, rrdcgi, routers2 or something else onto my machine.<BR>-> <BR>-> Am I confused?<BR>-> <BR>-> <BR>-> <BR>-> <BR>-> > 14all and RRDcgi are meant to look pretty much just like mrtg did/does..<BR>-> <BR>-> <BR>-> <BR>-> -> We are currently using MRTG to monitor cicso router traffic...<BR>-> -> <BR>-> -> 1) I need to generate a list based on highest traffic or errors, can anyone give me an (simple) example script of how to pull data from rrd using Perl or Bash?<BR>-> -> <BR>-> -> 2) I need to generate just the graphs and make them look like the old, native MRTG graphs. It looks like RRD Graph will do the trick can anyone give me an example command to do this? <BR>-> -> I know that using something like routers2 or 14all is probably easier but, I need to keep the same site look and feel so, I just want graphs.<BR>-> <BR>-> ------------------------------------------------------<BR>-> <BR>-> Early Forum Registration Closing Soon!<BR>-> <BR>-> Register now for the 2011 Texas Transportation Forum before the <BR>-> early registration discount expires on Wednesday, November 17th! <BR>-> <BR>-> <A href="http://www.txdot.gov/ttf/default.htm">http://www.txdot.gov/ttf/default.htm</A> <BR>-> <BR>-> ------------------------------------------------------<BR>-> <BR><BR></DIV><PRE>------------------------------------------------------
Early Forum Registration Closing Soon!
Register now for the 2011 Texas Transportation Forum before the
early registration discount expires on Wednesday, November 17th!
http://www.txdot.gov/ttf/default.htm
------------------------------------------------------</PRE></BODY></HTML>