[mrtg] Re: MRTG History...or Interactive MRTG revisited

Jason Humes jhumes at acs.on.ca
Wed Mar 17 14:22:17 MET 2004


Cool, now if only this could be applied, or maybe someone could write, to
standard MRTG with no RRD.  Any takers?  :)

-----Original Message-----
From: DANIEL MAGNUSZEWSKI [mailto:dmagnuszewski at mandtbank.com] 
Sent: Monday, March 15, 2004 5:00 PM
To: jhumes at acs.on.ca; mrtg at list.ee.ethz.ch; PAUL WILLIAMSON
Subject: [mrtg] Re: MRTG History...or Interactive MRTG revisited


All,
I have completed a script that will allow for users to "zoom" in and out of
a chosen RRD. Hence it's name "RRDZoom". This cgi script reads a directory
and gives a pop up box of rrds to select. It then takes in Year, Month, Day,
Hour, and Minute (Month, Day, and Hour MUST be two digits. The Year is four
digits) for both the starting time and the ending time, and graphs the data
from the RRD - in the time range you selected. There is also the option of
selecting a "timeframe" in which it will return the data. By default the
time frames are the past 1 hour, 2 hours, and 8 hours. The time frame take
precedence over the inputted data in the "Customizable Time Frame". 

What you need for this to work:

RRDTool and RRDs:
Check line 28 to make sure the address to your RRDTool Perl lib directory is
correct

'Time-Local-Extended-0.41' which can be found at the link below:
http://search.cpan.org/~bobo/Time-Local-Extended-0.41/

You will also need to manually change the $rrdPath variable in line 42 to
the directory of your RRDs. Line 162 needs to be changed to a folder
viewable on your webserver to hold the images. Line 190 needs to be changed
to the address where your images folder will be:

I've attached the script. If anyone would like to see a screen shot, then
send me a message and I'll send one to you if you're curious. Hopefully I'll
get a website up soon. Also, this is a rough draft, and if there's a real
want or need for further modifications/improvements, I'll be happy to hear
what you have to say.

Hope this is of some use!

Daniel Magnuszewski
CCNA
M & T Bank
dmagnuszewski at mandtbank.com

>>> "Jason Humes" <jhumes at acs.on.ca> 03/08/04 08:49AM >>>
You seem to have done what I would like to do...but I'm not familiar with
14all (what is the benefit of this over the standard MRTG and also, what
sort of custom program pulls the data from your flat MRTG logs? Maybe you
could be of help to my project here.  Thanks



-----Original Message-----
From: PAUL WILLIAMSON [mailto:pwilliamson at mandtbank.com] 
Sent: Thursday, March 04, 2004 1:27 PM
To: jhumes at acs.on.ca; mrtg at list.ee.ethz.ch; GWCOOK at mactec.com 
Subject: [mrtg] Re: MRTG History...or Interactive MRTG revisited


>>>> "Cook, Garry" <GWCOOK at mactec.com> 03/04/04 12:59PM >>>
>> Hi
>> I was just going through the history of this list and found a post
>> regarding an "Interactive MRTG"...I'm not sure if this was ever 
>> developed or not...but what it sounds like, and what I'm looking for, 
>> is some way to display all of the older log data in the "Day" view. I 
>> mean...maybe I could type in a date and have MRTG pull the logs for 
>> that date and then display the data in the "Day" graph...instead of 
>> the week, month, year...I guess just for the added detail.  Thanks 
>> for any info on this...
>> 
>> Jason D. Humes
>
>If you are storing your data in .rrd files, this is not possible. This
>is due to the way RRDTool averages the data points over time. The 
>graphs are generated on the fly from the .rrd files, and the data 
>points that make up the graphs that you see today are not going to be 
>around a week from now. However, the routers2.cgi front-end has been 
>developed with some 'graph archiving' code that enables you to archive 
>specific graphs. So, if you look into this further, it may allow you to 
>archive your daily graphs and be able to refer back to them at a future 
>date. While I use routers2.cgi (http://www.steveshipway.org/), I have 
>not tested nor used the archive feature, so I can't offer you much more 
>detail.
>
>HTH
>
>Garry W. Cook, CCNA

Sure, you can certainly do this.  You just need to adjust the 5 minute 
RRA when you create the RRD.  There is a section in cfgmaker that 
defines what RRA's are created within an RRD, and you just need to 
increase this.  We are using regular MRTG to poll the values, 
14all to display, and a custom program to select a specific 24 hour 
period to show 5 minute values for any day since we started the collection 
for up to a year (in some cases up to 4 years) back.

Paul

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe 
Archive     http://www.ee.ethz.ch/~slist/mrtg 
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org 
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 



-- Attached file removed by Ecartis and put at URL below --
-- Type: application/octet-stream
-- Size: 9k (9657 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/RRDZoom.cgi


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list