LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2012, 08:08 AM   #1
ripprapp
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
Question NRPE/nagios-plugins: Compiling with --enable-perl-modules problem.


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
...

../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
 
Old 11-04-2012, 09:28 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by ripprapp View Post
...I need to install NRPE with nagios-plugins on Ubuntu 12.04 i386 (32bits)....
Code:
sudo ./configure 
...
sudo make
...
sudo make install-strip
...
Is nagios installed? Is this the nagios server/host or a remote monitoring host?

so install the nrpe plugin first?
How to install Nagios NRPE on Ubuntu

HowTos are everywhere.

Please use [code][/code] tags Please.
Thank you,
 
Old 11-05-2012, 02:54 AM   #3
ripprapp
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
--enable-perl-modules

Hi,
Nagios is not installed on this Ubuntu 12.04 32-bits server.

My Nagios installation is running on a Centos 6 installation.

I have tried to find which dependencies the "--enable-perl-modules" option puts
on my server. But have not found anything about it....

BR
Ripprapp
 
Old 11-05-2012, 07:12 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Yes, I am not sure what needs to be 'enabled'. sorry.

I have a 12.04 Ubuntu that has
nagios-plugins-1.4.15
nrpe-2.7
I did run the manual install with and all the .pl scripts on my host are fine.

as I said, you may need to "install the nrpe plugin first?"

Then compile plugins?
I used the same instructions as my CentOS-flavor Nagios(Icinga really) Server on the Ubuntu-flavored target host.

I do remember that I had an issue with the Ubu repo version of either nrpe, or plugins, so I went manual. I think it was something to do with xinetd,.....? It's been awhile since I had to re-do that. (We now use zabbix).

Sorry I wasn't more helpful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help nagios nrpe problem ratotopi Linux - Software 0 01-23-2012 01:40 PM
[SOLVED] Nagios NRPE problem babaqga Linux - Software 5 09-08-2010 04:08 AM
[SOLVED] NRPE problem with Nagios babaqga Linux - Software 1 08-27-2010 10:49 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 08:43 AM
Fedora Core 9 + Nagios 3.0.6 + Nagiosgraph 1.2.1 - how to get the perl modules JonXP Linux - Newbie 3 03-05-2009 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration