NRPE/nagios-plugins: Compiling with --enable-perl-modules ?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ripprapp
Posts: 6
Joined: Mon Jun 18, 2012 4:03 pm

NRPE/nagios-plugins: Compiling with --enable-perl-modules ?

Post by ripprapp »

Hi,
I need to install NRPE with nagios-plugins on Ubuntu 12.04 i386 (32bits).

I got the recommendation to use the option –enable-perl-modules but I have problems with that.

What is needed on the host where I try to compile the code?

I assume perl is needed but are there some specific modules?
In such case, how can I verify what I am missing?

See below for some outprints… let me know if you need something else, like “make test” outprints.

BR
Ripprapp

sudo ./configure --prefix=/opt/op5/nagios-plugins-1.4.16 --enable-extra-opts --enable-perl-modules --with-nagios-user=monagent --with-nagios-group=monagent --without-world-permissions

config.status: creating po/Makefile
--with-apt-get-command: /usr/bin/apt-get
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-ipv6: yes
--with-mysql: no
--with-openssl: yes
--with-gnutls: no
--enable-extra-opts: yes
--with-perl: /usr/bin/perl
--enable-perl-modules: yes
--with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
--enable-libtap: no


sudo make

make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/netman/nagios-plugins-1.4.16/po'
Making all in perlmods
make[2]: Entering directory `/home/netman/nagios-plugins-1.4.16/perlmods'
../tools/build_perl_modules -d /opt/op5/nagios-plugins-1.4.16/perl -m .
Got Test-Simple, with file: Test-Simple-0.70.tar.gz
Got Params-Validate, with file: Params-Validate-0.88.tar.gz
Got Math-Calc-Units, with file: Math-Calc-Units-1.06.tar.gz
Got Class-Accessor, with file: Class-Accessor-0.31.tar.gz
Got Config-Tiny, with file: Config-Tiny-2.10.tar.gz
Got Nagios-Plugin, with file: Nagios-Plugin-0.36.tar.gz
make[2]: Leaving directory `/home/netman/nagios-plugins-1.4.16/perlmods'
make[2]: Entering directory `/home/netman/nagios-plugins-1.4.16'
make[2]: Leaving directory `/home/netman/nagios-plugins-1.4.16'
make[1]: Leaving directory `/home/netman/nagios-plugins-1.4.16'


sudo make install-strip

På slutet innan den exitar ser man:
../tools/build_perl_modules -d /opt/op5/nagios-plugins-1.4.16/perl -i .
Got Test-Simple, with file: Test-Simple-0.70.tar.gz
Got Params-Validate, with file: Params-Validate-0.88.tar.gz
Got Math-Calc-Units, with file: Math-Calc-Units-1.06.tar.gz
Got Class-Accessor, with file: Class-Accessor-0.31.tar.gz
Got Config-Tiny, with file: Config-Tiny-2.10.tar.gz
Got Nagios-Plugin, with file: Nagios-Plugin-0.36.tar.gz
make[4]: Entering directory `/home/netman/nagios-plugins-1.4.16/perlmods/Test-Simple-0.70'
Appending installation info to /opt/op5/nagios-plugins-1.4.16/perl/lib/i686-linux-gnu-thread-multi-64int/perllocal.pod
make[4]: Leaving directory `/home/netman/nagios-plugins-1.4.16/perlmods/Test-Simple-0.70'
make[4]: Entering directory `/home/netman/nagios-plugins-1.4.16/perlmods/Params-Validate-0.88'
cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.88\" -DXS_VERSION=\"0.88\" -fPIC "-I/usr/lib/perl/5.14/CORE" Validate.c
Validate.xs: In function âget_typeâ:
Validate.xs:208:5: error: duplicate case value
Validate.xs:205:5: error: previously used here
Validate.xs: In function âvalidate_named_dependsâ:
Validate.xs:986:15: warning: format not a string literal and no format arguments [-Wformat-security]
make[4]: *** [Validate.o] Error 1
make[4]: Leaving directory `/home/netman/nagios-plugins-1.4.16/perlmods/Params-Validate-0.88'
Can't run make install at ../tools/build_perl_modules line 85.
make[3]: *** [install-exec-local] Error 2
make[3]: Leaving directory `/home/netman/nagios-plugins-1.4.16/perlmods'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/netman/nagios-plugins-1.4.16/perlmods'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/netman/nagios-plugins-1.4.16'
make: *** [install-strip] Error 2
Locked