[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - Undefined subroutine &RRDs::fetch called at routers2.cgi

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 2:41 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Jun 26, 2007 9:51 am 
Offline
User

Joined: Tue Jun 26, 2007 9:40 am
Posts: 5
Hi Steve,

I am running through all of the fourm posts trying to get routers2.cgi running. I have made significant progress but now i am stuck. I am able to see my two devices and their interfaces yet I produce no graphs. I checked my /var/www/graphs and it is empty. I also checked the graphurl and the graphpath and they are pointed to the correct location. I also recall you stating to check if the httpd has access to the graphs directory but I am not sure what you meant or what cli is required to find out. I search more and i followed the step found in a post and this is my result. I executed "perl routers2.cgi -C" and below is my result. I would appreciate your help when you have the chance or if you could point me to an existing post, should there be one I would be grateful.

Thx!!
Roberto

Server:/var/www/cgi-bin# perl routers2.cgi -C
Content-disposition: filename="export.csv"
Content-Type: text/comma-separated; filename="export.csv"; charset=ISO-8859-1

"Hostname","Target","Sample Date YMD","Sample Time HHMM","Count in seconds","Incoming traffic in bps","Outgoing traffic in bps","Peak inbound traffic in bps","Peak outbound traffic in bps"
:arrow: Undefined subroutine &RRDs::fetch called at routers2.cgi line 7171.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Tue Jun 26, 2007 10:01 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Have you read the full INSTALL instructions?

Usually, you can install routers2 by running the install.pl script. This will detect your web server and install appropriately.

You are getting this error becaue routers2 is not supposed to be run from the command line like this - it is a CGI application designed to be called from your web server. Although it can take some command line parameters for automated tasks, these are limited - and you should specify the target with -T and device with -D in addition to the other options.

Make sure you have installed routers2 into your web server's cgi-bin directory and then call it using the test URL - something like http://yourservername/cgi-bin/routers2.cgi?page=verify

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Tue Jun 26, 2007 10:13 am 
Offline
User

Joined: Tue Jun 26, 2007 9:40 am
Posts: 5
Steve,

I ran the install.pl several times. I am not trying to run routers2 from the cli. Just trying to troubleshoot why I am not generating graphs. I was following some suggestions from previous posts. When I browse to my routers2.cgi I can see my devices but when i select an interface there are no graphs, just white space. I check the /var/www/graphs dir and it is empty. I was merely trying some previous suggestions that were posted on the fourms.

Roberto


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Tue Jun 26, 2007 10:15 am 
Offline
User

Joined: Tue Jun 26, 2007 9:40 am
Posts: 5
Sorry.. I am able to see the routers2.cgi?page=verify and the .conf is good but i am getting this for my mrtg files check.

MRTG file name Description Visible Valid Notes
webmin.cfg
No .ok file found
Have you successfully run MRTG on this file yet? webmin No No
Group: /etc
mrtg.cfg
No .ok file found
Have you successfully run MRTG on this file yet? mrtg Yes Yes
Group: /etc
Hostname: 192.168.1.150
err.cfg
No .ok file found
Have you successfully run MRTG on this file yet? err No No
Group: /etc
lynx.cfg
No .ok file found
Have you successfully run MRTG on this file yet? lynx No No
Group: /etc


plus the MRTG targets check table has the headers but no data.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Jun 27, 2007 12:03 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 3:31 am 
Offline
User

Joined: Tue Jun 26, 2007 9:40 am
Posts: 5
Steve,

I deleted my .rrd's that were created to test if they are being created when i run mrtg. So far they were recreated when I ran mrtg. I checked the log file, for Apache, and this is what I found.
:?:
[Wed Jun 27 10:18:19 2007] [error] [client 192.168.1.152] File does not exist: /var/www/mrtg/192.168.1.150_1-day.png, referer: http://192.168.1.236/mrtg/
[Wed Jun 27 10:18:19 2007] [error] [client 192.168.1.152] File does not exist: /var/www/mrtg/192.168.1.150_2-day.png, referer: http://192.168.1.236/mrtg/
[Wed Jun 27 10:18:19 2007] [error] [client 192.168.1.152] File does not exist: /var/www/mrtg/192.168.1.150_3-day.png, referer: http://192.168.1.236/mrtg/
[Wed Jun 27 10:18:19 2007] [error] [client 192.168.1.152] File does not exist: /var/www/mrtg/favicon.ico
[Wed Jun 27 10:18:19 2007] [error] [client 192.168.1.152] File does not exist: /var/www/mrtg/favicon.ico
[Wed Jun 27 10:18:49 2007] [error] [client 192.168.1.152] Undefined subroutine &RRDs::last called at /usr/lib/cgi-bin/routers2.cgi line 6660., referer: http://192.168.1.236/cgi-bin/routers2.cgi
:?:

Line 6660 is :arrow: " $lastupdate = RRDs::last($rrd);" which is part of # Last Update Stuff

I know it is weak of me to ask, but I am not sure how to run that script nor to find multiple instances of the RRD libraries. I ran a find but I am not sure of the file name for the RRD Libraries.

Also, when i ran the intall.pl I noticed this:
Checking Perl libraries...
RRDs library found correctly.
However, it is too old a version. You must upgrade to at least version 1.0.29
in order to avoid a known bug.

however I installed rrdtool-1.2.20. I did a find / -name "rrd*" and found no other instances of rrdtool anywhere. Though I did find multiple instances of RRDs.pm in various locations and I am not sure if the above message refers to the .pm file or libraries.. Thanks for you help by the way I do appreciate it


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 10:39 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Aha, this explains the problem.

You have multiple RRDs libraries installed, one very old one (which does not support all the functions, hence the errors) and one newer 1.2 one (which is installed outside of the site_perl and so is not normally picked up). MRTG is probably picking up the v1.2 because it adds extra libraries and picks up the correct one. routers2 also searches additional paths, but seems to be getting the wrong one.

The best solution is to
* remove the old RRDs, and remove ALL RRDs if you arent sure.
* Reinstall the RRD perl libraries
* Add a 'libadd=' directive to the routers2.conf to specify exactly where you have installed the RRDs modules to, if you dont install to the site_perl path.

To find all the RRDs modules (UNIX):

find /usr/lib/perl* -name 'RRD*' -print

this might list several files and directories. Remove them all.

When you install RRDTool, you should have a 'make site-perl' option to install the modules under the site-perl path. This is the recommended way to do things. If you cannot do this, then add a line to the routers2.conf like this:

libadd = /usr/local/rrdtool-1.2.12/lib/perl/5.8.5/i386-linux-thread-multi

obviously, use whatever the appropriate path is for your RRDTool installation.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject: Sweet!!!
PostPosted: Tue Jul 03, 2007 4:03 am 
Offline
User

Joined: Tue Jun 26, 2007 9:40 am
Posts: 5


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group