[rrd-users] Re: RRDZoom - Customizable Time Frame Graphing

DANIEL MAGNUSZEWSKI dmagnuszewski at mandtbank.com
Tue Mar 16 19:09:08 MET 2004


Tanveer,

Along with having trouble with your Extended.pm module (make sure its installed correctly and in a proper location), it seems to be having trouble with the "our" declaration. Try changing it to "my". I'm not in the office today, so I don't have access to run the script - but I will be in tomorrow. Try it out and let me know what happens.

Daniel Magnuszewski
CCNA
M & T Bank
dmagnuszewski at mandtbank.com
>>> "Tanveer Ahmad Dar" <tanveer at emix.net.ae> 03/16/04 00:33 AM >>>
Hi,
     i was trying to use your Script for my RRDs i have defined as per your
instructions but i get the following errors when i try to run it.i see these
errors from my apache error log file.can you kindly give me a clue as to
what might be the issue here.following are the errors encountered :

Subroutine timelocal redefined at
/usr/perl5/site_perl/5.005/Time/Local/Extended.pm line 35.
Subroutine timegm redefined at
/usr/perl5/site_perl/5.005/Time/Local/Extended.pm line 152.
Use of reserved word "our" is deprecated at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$rrdName" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$pngName" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$verticalLabel" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$endTime" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$tpName" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$startTime" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$width" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$height" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Variable "$title" is not imported at /export/spare/cgi-bin/RRDZoom.cgi line
18.
(Did you mean &title instead?)
Global symbol "$title" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Variable "$base" is not imported at /export/spare/cgi-bin/RRDZoom.cgi line
18.
(Did you mean &base instead?)
Global symbol "$base" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$rrd" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$monitoredService" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Global symbol "$monitoredServiceLabel" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 18.
Use of reserved word "our" is deprecated at
/export/spare/cgi-bin/RRDZoom.cgi line 24.
Global symbol "$rrdPath" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 24.
Variable "$title" is not imported at /export/spare/cgi-bin/RRDZoom.cgi line
135.
(Did you mean &title instead?)
Global symbol "$title" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 135.
Variable "$base" is not imported at /export/spare/cgi-bin/RRDZoom.cgi line
142.
(Did you mean &base instead?)
Global symbol "$base" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 142.
Variable "$title" is not imported at /export/spare/cgi-bin/RRDZoom.cgi line
150.
(Did you mean &title instead?)
Global symbol "$title" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 150.
Variable "$base" is not imported at /export/spare/cgi-bin/RRDZoom.cgi line
152.
(Did you mean &base instead?)
Global symbol "$base" requires explicit package name at
/export/spare/cgi-bin/RRDZoom.cgi line 152.
Execution of /export/spare/cgi-bin/RRDZoom.cgi aborted due to compilation
errors.


Thanx

Regards
Tanveer


----- Original Message ----- 
From: "DANIEL MAGNUSZEWSKI" <dmagnuszewski at mandtbank.com>
To: <rrd-users at list.ee.ethz.ch>
Sent: Tuesday, March 16, 2004 2:06 AM
Subject: [rrd-users] RRDZoom - Customizable Time Frame Graphing


> All,
> I posted this in the MRTG list as well, but I figured that it could be of
use to those in this list (who are not in the MRTG list) as well.
>
> 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. 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.
>
> I Hope this is of some use!
>
>
> Daniel Magnuszewski
> CCNA
> M & T Bank
> dmagnuszewski at mandtbank.com
>
>
> -- 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/02-RRDZoom.cgi
>
>
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://www.ee.ethz.ch/~slist/rrd-users
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>
>

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi




--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list