ports/115443: incorrect library path in perl based nagios-plugins

Stefan Kaltenbrunner stefan at kaltenbrunner.cc
Sun Aug 12 12:20:02 UTC 2007


>Number:         115443
>Category:       ports
>Synopsis:       incorrect library path in perl based nagios-plugins
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 12 12:20:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Kaltenbrunner
>Release:        6.2
>Organization:
>Environment:
FreeBSD borg.postgresql.org 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:55:55 UTC 2007     root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP  i386
>Description:
installing the net-mgmt/netsaint-plugins results in all the perl based plugins to be broken in the same way:

# /usr/local/libexec/nagios/check_mailq -h
Can't locate utils.pm in @INC (@INC contains: nagios /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/libexec/nagios/check_mailq line 36.
BEGIN failed--compilation aborted at /usr/local/libexec/nagios/check_mailq line 36.

>How-To-Repeat:
simply install the net-mgmt/nagios-plugins and try to use one of the perl (not C) based plugins
>Fix:
the problem is caused by incorrect/missing substitution of the path to the perl module utils.pm at build time.

simply changing:

use lib  "nagios";

to

use lib "/usr/local/libexec/nagios";

in each of the affected plugins solves the problem.

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list