[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/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 - Can't locate strict.pm in @INC (@INC contains and $APPMAIL

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 12:21 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sun Jun 22, 2008 1:08 am 
Offline
User

Joined: Tue Jun 17, 2008 11:53 pm
Posts: 4
Hi,

My box run's mrtg-2.16.2, rrdtool-1.2.27 and perl-5.10.0. with Apache/2.0.52 (Red Hat) Server on kernel 2.6.9-42.ELsmp of RHEL 4 for routers2.cgi.

Kindly, can you guide me to get rid of the error as follows:

" Can't locate strict.pm in @INC (@INC contains: /home/lenin/localperl/lib/5.10.0/i686-linux /home/lenin/localperl/lib/5.10.0 /home/lenin/localperl/lib/site_perl/5.10.0/i686-linux /home/lenin/localperl/lib/site_perl/5.10.0 .) at /var/www/cgi-bin/routers2.cgi line 11.
[Sat Jun 21 17:12:21 2008] [error] [client 10.200.28.51] BEGIN failed--compilation aborted at /var/www/cgi-bin/routers2.cgi line 11 "
[Sat Jun 21 17:12:21 2008] [error] [client 10.200.28.51] Premature end of script headers: routers2.cgi
Note:But when i search for strict.pm it's availabe at '/home/lenin/localperl/lib/5.10.0 '

Also when i run routers2.cgi in shell i get the following error
"Global symbol "$APPMAIL" requires explicit package name at routers2.cgi line 1174.
Global symbol "$APPMAIL" requires explicit package name at routers2.cgi line 1224.
Execution of routers2.cgi aborted due to compilation errors"

Thanks in advance
Lenin


Top
 Profile Send private message  
 
PostPosted: Mon Jun 23, 2008 11:22 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Perl 5.10 eh? I've never tested with this and it is possible that there is a syntax change.

Can you tell me which version of routers2 you are using? Check the comments at the beginning of this file to find this out if you don't already know.

The APMAIL definition comes right at the beginning of the script and is pretty clear. Its possible you have a corrupted script somehow.

I'd suggest that you check your routers2 script is the latest version and installed correctly, since the 'use strict;' is the first line and should work.

You might also like to check that you have SELinux disabled; this has been reported to cause problems with RRD-related CGI scripts (not just routers2) and might be at fault.

If I can get hold of a perl10 installation I'll see if there are any differences that would break things. I think it unlikely, though, as Perl has historically (since v5) been pretty good about maintaining backward compatibility.

_________________
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  
 
PostPosted: Wed Jun 25, 2008 8:04 pm 
Offline
User

Joined: Tue Jun 17, 2008 11:53 pm
Posts: 4
Hi Steve,

Thank you for your reply and i appreciate of your support.

My routers2.cgi version is routers2-v2.18 and now i'm running on perl 5.8.8.
The mrtg *.cfg.ok has been creating succesfully (pls find logs) and .RRD database(pls find the logs) also been generating and my web browser is able to load '/cgi-bin/routers2.cgi' pge with twin menu view except 'graph in the center of the page'.

When i check the 'graphs path' nothing generated.

when i look in the '/var/lolg/httpd/error_log' the following's are displaying.

[Wed Jun 25 11:49:35 2008] [error] [client 10.200.28.51] Can't locate auto/RRDs/last.al in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /var/www/cgi-bin/routers2.cgi line 6660
------------------------------------
RRD database are as follows

-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_10.200.28.10.rrd
-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_10.201.248.201.rrd
-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_10.201.248.238.rrd
-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_10.201.248.2.rrd
-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_10.201.248.49.rrd
-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_10.201.248.66.rrd
-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_10.201.248.86.rrd
-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_10.201.249.121.rrd
-rwxr-xr-x 1 root root 105160 Jun 25 11:50 10.200.28.10_124.30.130.138.rrd
-----------------------------------------------
log of mrtg ' *.cfg' and it's cron job log's

-rw-r--r-- 1 root root 12380 Jun 23 16:00 router-28.10.cfg
-rw-r--r-- 1 root root 1633 Jun 25 12:35 router-28.10.ok
----------------
2008-06-25 11:00:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:05:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:10:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:15:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:20:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:25:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:30:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:35:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:40:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:45:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:50:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
2008-06-25 11:55:02 -- Started mrtg with config '/home/mrtg/cfg/router-28.10.cfg'
----------------------------------------------------

When search for the 'last.al' in my box it's not all there thouh i'm having perl 5.10.0 , rrdtool-1.2.27 ,mrtg-2.16.2 & mrtg-2.15.2 and routers2-v2.17a & routers2-v2.18.

Myself could not get any useful info over the google search fo r'last.al' and almost everybod's looking for the same.

Once again my thanking to you.

Regards,
LENIN


Top
 Profile Send private message  
 
PostPosted: Mon Jun 30, 2008 10:58 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Looks like your RRDTool perl library is not installed correctly.

The Routers2 cannot generate the graph because it cannot access the RRDTool library, and the error message tells us that it has problems loading. The best solution to this is:

1) remove completely all the RRDs and RRDp directories under your perl path - ie, uninstall the RRDTool perl libraries.
find /usr/local/lib/perl5 -name 'RRD*' -exec rm {} \;
2) either
a) reinstall the RRDs perl libraries to your site_perl path, or
b) add the 'libadd' directive to your routers2.conf and MRTG .cfg files to point at the location of the RRDs.pm installation.

It looks like, during your switch between perls, something has beome confused.

_________________
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  
 
PostPosted: Tue Jul 01, 2008 12:26 am 
Offline
User

Joined: Tue Jun 17, 2008 11:53 pm
Posts: 4
Hi Steve,

Well, I Thank & welcome of your reply and it's appriciated.
myself worked in High-Performance Computing using IBM p595's & p690's in CMSD of 'University of Hyderabad' in India. http://cmsd.uohyd.ernet.in/

As you suggested removed and reinstall the RRD tool and recreated MRTG '.cfg' files and been creating RRD's database files.

Now in my browser other than 'graph' everthing's are seems OK.

please look in the following error.

"""""""""""""""""""""""""""""""""""""
No valid target is selected

You have no valid MRTG configuration files. You should check your configuration in /usr/local/etc/routers2.conf.
[/home/mrtg/cfg/*.cfg]

confpath = /home/mrtg/cfg

cfgfiles = *.cfg
"""""""""""""""""""""""""""""""""""""

Note: my mrtg .cfg file locatioon is " /home/mrtg/cfg/ " only.
I tried for almost everything.

Why it's says that ' no valid MRTG configuration files ' ?

Kindly can you post one working 'routers2.conf' file and the files acess pernission at " /var/www/"?

Once again thanking you
regards,
LENIN


Top
 Profile Send private message  
 
PostPosted: Tue Jul 01, 2008 11:12 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
The "No valid .cfg files" message means that Routers2 cannot find any MRTG configuration files matching the given pattern which contain valid Target definitions.

In your case, the pattern is /home/mrtg/cfg/*.cfg

Make sure you have files existing which match that pattern, and that they are readable by the web server user. If the filename is wrong, change the cfgfiles or confpath directives in the routers2.conf.

The routers2.conf file as shipped is a valid file. Really, only the cfgfiles, confpath, graphurl, graphpath and iconurl settings are required - everything else can default if necessary.

If you do have cfg files matching the pattern, and the files and the path to them are accessible by the web server user, then check the file has a valid Target[] line in in that is not commented out.

Your web server directory ( /var/www ) will probably have subdirectories cgi-bin (containing routers2.cgi) and htdocs (containing the graphs and rrdicons directories). The graphs directory must be writeable by the web server.

Since you can access the routers.cgi script, go to the configuration verification page by appending ?page=verify to the URL -- eg, http://yourserver/cgi-bin/routers2.cgi?page=verify -- and this will help to diagnose some common problems.

_________________
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  
 
PostPosted: Thu Jul 03, 2008 3:33 am 
Offline
User

Joined: Tue Jun 17, 2008 11:53 pm
Posts: 4
Hi Steve,

As you had instructed, checked/reinstall all and the following erron on my webserver error log.

Can't locate auto/RRDs/last.al in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /var/www/cgi-bin/routers2.cgi line 7029

i searched for the 'last.sl' file and not all there in my unix box.

when browse with ' .routers2.cgi?page=verify the following error are there.

Script name : routers2.cgi (Version v2.18)

MRTG files
Path: /home/mrtg/cfg
Files: *.cfg : Directory does not exist or is not readable!

Perl libraries
RRDs, GD RRDs library NOT FOUND. This may however not be a problem if the library path is amended by the LibAdd birective in the MRTG files.
Can't load '/usr/local/lib/perl5/5.8.8/i686-linux/RRDs.so' for module RRDs: librrd.so.2: failed to map segment from shared object: Permission denied at /usr/local/lib/perl5/5.8.8/i686-linux/DynaLoader.pm line 230. at /var/www/cgi-bin/routers2.cgi line 8086 Compilation failed in require at /var/www/cgi-bin/routers2.cgi line 8086.
GD library not required as compact is disabled in routers.conf

Note: but mrtg cfg files are in /home/mrtg/cfg/ and it's globally readable.

please guige me to sort out this issue.

Thanks in advance.

regards,
LENIN


Top
 Profile Send private message  
 
PostPosted: Thu Jul 03, 2008 1:20 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  
 
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