[Nagiosplug-help] nagios-plugins 1.4.8 + sudo = can't find utils.pm?
Ugo Bellavance
ugob at lubik.ca
Fri Apr 20 16:01:30 CEST 2007
Hi,
I just upgraded nagios-plugins to 1.4.8 using the rpm package from
rpmforge: nagios-plugins-1.4.8-1.el4.rf and I have a problem... Every
check that is done using sudo (check_mailq and check_clamav) returns:
Can't locate utils.pm in @INC (@INC contains: nagios/plugins
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at /usr/lib/nagios/plugins/check_mailq
line 36.
BEGIN failed--compilation aborted at /usr/lib/nagios/plugins/check_mailq
line 36.
The solution is to add 'export PERL5LIB="/usr/lib/nagios/plugins/";' in
front of every command definition in nrpe.cfg, but I don't consider it
as a permanent fix... it was working fine with the previous version of
nagios-plugins (1.4.5).
Anyone has an idea of what could be wrong? Please let me know if you
need any other information.
Regards,
Ugo Bellavance
More information about the Help
mailing list