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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 12 12:20:01 GMT 2007
>Originator:     Stefan Kaltenbrunner
>Release:        6.2
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
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.

simply install the net-mgmt/nagios-plugins and try to use one of the perl (not C) based plugins
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";


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

in each of the affected plugins solves the problem.


More information about the freebsd-ports-bugs mailing list