Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366403 - net-analyzer/nagios-plugins-1.4.15 incorrect path to utils.pm
Summary: net-analyzer/nagios-plugins-1.4.15 incorrect path to utils.pm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-07 22:39 UTC by Marcin Mirosław
Modified: 2012-08-01 14:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2011-05-07 22:39:49 UTC
There are a few perl script looking for utils.pm in wrong directory:
grep -R "use lib" .|grep /local/
./plugins/contrib/check_apc_ups.pl:use lib "/usr/local/nagios/libexec";
./plugins/contrib/check_wins.pl:use lib '/usr/local/nagios/libexec/' ;
./plugins/contrib/check_lotus.pl:use lib qw(/usr/local/nagios/libexec) ;
./plugins/contrib/check_appletalk.pl:use lib "/usr/local/nagios/libexec";
./plugins/contrib/check_pfstate:use lib "/usr/local/nagios/libexec"  ;
./plugins/contrib/check_inodes-freebsd.pl:use lib "/usr/local/libexec/nagios" ;
./plugins/contrib/check_ica_master_browser.pl:use lib qw(/usr/local/nagios/libexec) ;
./plugins/contrib/check_snmp_procs.pl:use lib "/usr/local/nagios/libexec";
./plugins/contrib/check_snmp_process_monitor.pl:use lib qw( /opt/nagios/libexec /usr/local/libexec );
./plugins/contrib/check_oracle_tbs:use lib "/usr/local/nagios/libexec";
./plugins/contrib/check_ica_metaframe_pub_apps.pl:use lib qw(/usr/local/nagios/libexec) ;

When i try to run any script from above i'm getting:
 /usr/lib/nagios/plugins/contrib/check_apc_ups.pl
Can't locate utils.pm in @INC (@INC contains: /usr/local/nagios/libexec /etc/perl /usr/lib/perl5/site_perl/5.12.3/i686-linux /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i686-linux /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.12.3/i686-linux /usr/lib/perl5/5.12.3 /usr/local/lib/site_perl .) at /usr/lib/nagios/plugins/contrib/check_apc_ups.pl line 17.
BEGIN failed--compilation aborted at /usr/lib/nagios/plugins/contrib/check_apc_ups.pl line 17.

Correct path, in "use lib" line, should lead to directory contains called script (in this case it should be: /usr/lib/nagios/plugins/contrib/).

Reproducible: Always
Comment 1 Marcin Mirosław 2011-08-01 11:56:12 UTC
Is any progres on it?
Comment 2 Marcin Mirosław 2011-09-16 10:25:21 UTC
This bug is rather easy to fix...
Ping.
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2012-07-31 21:54:06 UTC
Should be fixed in 1.4.16.
Comment 4 Marcin Mirosław 2012-08-01 14:56:36 UTC
Yes, it looks it's fixed.
Thanks.