LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2012, 09:42 AM   #1
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Rep: Reputation: Disabled
Nagios install error-NRPE install


Hi all,

Trying to install Nagios client-nrpe-2.12 in a RHEL5 (64bit).
"./configure" completed successfully but for "make all" has given following errors

Code:
# make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/home/admin/nrpe-2.12/src'
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -L/usr/lib  -lssl -lcrypto -lnsl -lwrap
In file included from /usr/include/openssl/e_os2.h:56,
                 from /usr/include/openssl/asn1.h:63,
                 from /usr/include/openssl/rsa.h:62,
                 from ../include/config.h:238,
                 from ../include/common.h:24,
                 from nrpe.c:21:
/usr/include/openssl/opensslconf.h:25:32: error: opensslconf-x86_64.h: No such file or directory
In file included from /usr/include/openssl/asn1.h:74,
                 from /usr/include/openssl/rsa.h:62,
                 from ../include/config.h:238,
                 from ../include/common.h:24,
                 from nrpe.c:21:
/usr/include/openssl/bn.h:288: error: expected specifier-qualifier-list before ‚BN_ULONG‚
/usr/include/openssl/bn.h:304: error: expected specifier-qualifier-list before ‚BN_ULONG‚
/usr/include/openssl/bn.h:450: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚BN_mod_word‚
/usr/include/openssl/bn.h:451: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚BN_div_word‚
/usr/include/openssl/bn.h:452: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:453: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:454: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:455: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:456: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚BN_get_word‚
/usr/include/openssl/bn.h:471: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:764: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_mul_add_words‚
/usr/include/openssl/bn.h:765: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_mul_words‚
/usr/include/openssl/bn.h:766: error: expected ‚)‚ before ‚*‚ token
/usr/include/openssl/bn.h:767: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_div_words‚
/usr/include/openssl/bn.h:768: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_add_words‚
/usr/include/openssl/bn.h:769: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_sub_words‚
In file included from /usr/include/openssl/ssl.h:1010,
                 from ../include/config.h:242,
                 from ../include/common.h:24,
                 from nrpe.c:21:
/usr/include/openssl/ssl3.h:306: error: expected specifier-qualifier-list before ‚PQ_64BIT‚
In file included from /usr/include/openssl/dtls1.h:64,
                 from /usr/include/openssl/ssl.h:1012,
                 from ../include/config.h:242,
                 from ../include/common.h:24,
                 from nrpe.c:21:
/usr/include/openssl/pqueue.h:73: error: expected specifier-qualifier-list before ‚PQ_64BIT‚
/usr/include/openssl/pqueue.h:80: error: expected ‚)‚ before ‚priority‚
/usr/include/openssl/pqueue.h:89: error: expected declaration specifiers or ‚...‚ before ‚PQ_64BIT‚
In file included from /usr/include/openssl/ssl.h:1012,
                 from ../include/config.h:242,
                 from ../include/common.h:24,
                 from nrpe.c:21:
/usr/include/openssl/dtls1.h:92: error: expected specifier-qualifier-list before ‚PQ_64BIT‚
In file included from /usr/include/openssl/e_os2.h:56,
                 from /usr/include/openssl/asn1.h:63,
                 from /usr/include/openssl/rsa.h:62,
                 from ../include/config.h:238,
                 from ../include/common.h:24,
                 from utils.c:32:
/usr/include/openssl/opensslconf.h:25:32: error: opensslconf-x86_64.h: No such file or directory
In file included from /usr/include/openssl/asn1.h:74,
                 from /usr/include/openssl/rsa.h:62,
                 from ../include/config.h:238,
                 from ../include/common.h:24,
                 from utils.c:32:
/usr/include/openssl/bn.h:288: error: expected specifier-qualifier-list before ‚BN_ULONG‚
/usr/include/openssl/bn.h:304: error: expected specifier-qualifier-list before ‚BN_ULONG‚
/usr/include/openssl/bn.h:450: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚BN_mod_word‚
/usr/include/openssl/bn.h:451: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚BN_div_word‚
/usr/include/openssl/bn.h:452: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:453: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:454: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:455: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:456: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚BN_get_word‚
/usr/include/openssl/bn.h:471: error: expected declaration specifiers or ‚...‚ before ‚BN_ULONG‚
/usr/include/openssl/bn.h:764: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_mul_add_words‚
/usr/include/openssl/bn.h:765: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_mul_words‚
/usr/include/openssl/bn.h:766: error: expected ‚)‚ before ‚*‚ token
/usr/include/openssl/bn.h:767: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_div_words‚
/usr/include/openssl/bn.h:768: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_add_words‚
/usr/include/openssl/bn.h:769: error: expected ‚=‚, ‚,‚, ‚;‚, ‚asm‚ or ‚__attribute__‚ before ‚bn_sub_words‚
In file included from /usr/include/openssl/ssl.h:1010,
                 from ../include/config.h:242,
                 from ../include/common.h:24,
                 from utils.c:32:
/usr/include/openssl/ssl3.h:306: error: expected specifier-qualifier-list before ‚PQ_64BIT‚
In file included from /usr/include/openssl/dtls1.h:64,
                 from /usr/include/openssl/ssl.h:1012,
                 from ../include/config.h:242,
                 from ../include/common.h:24,
                 from utils.c:32:
/usr/include/openssl/pqueue.h:73: error: expected specifier-qualifier-list before ‚PQ_64BIT‚
/usr/include/openssl/pqueue.h:80: error: expected ‚)‚ before ‚priority‚
/usr/include/openssl/pqueue.h:89: error: expected declaration specifiers or ‚...‚ before ‚PQ_64BIT‚
In file included from /usr/include/openssl/ssl.h:1012,
                 from ../include/config.h:242,
                 from ../include/common.h:24,
                 from utils.c:32:
/usr/include/openssl/dtls1.h:92: error: expected specifier-qualifier-list before ‚PQ_64BIT‚
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/home/admin/nrpe-2.12/src'

*** Compile finished ***

If the NRPE daemon and client compiled without any errors, you
can continue with the installation or upgrade process.

Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.
I ignored above error and procee with "make install-plugin"
then i got following error then i realized there is something wrong
Code:
# make install-plugin
cd ./src/ && make install-plugin
make[1]: Entering directory `/home/admin/nrpe-2.12/src'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
/usr/bin/install: cannot stat `check_nrpe': No such file or directory
make[1]: *** [install-plugin] Error 1
make[1]: Leaving directory `/home/admin/nrpe-2.12/src'
make: *** [install-plugin] Error 2
Please help me to solve this issue.
Thanks in advance!
 
Old 03-06-2012, 10:09 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Prior to compile NRPE source files, uses rpm command to confirm the system has installed openssl, libssl, gcc, etc.

Code:
# rpm -qa | grep httpd
# rpm -qa | grep gcc
# rpm -qa | grep glibc glibc-common
# rpm -qa | grep gd gd-devel
If not then install all the above packages, these are the major steps.

To play safe, compile NRPE source files on each Linux servers that require NRPE binaries.

On Nagios server, stop after executing ďmake install-pluginĒ.

Now as you have downloaded the NRPE package, assuming you have logged in with root user and extracted NRPE source files from the compressed tarball:
Code:
# tar -zxvf nrpe-2.12.tgz
Come to the nrpe-2.12 directory:
Code:
# cd nrpe-2.12
Run configure file. The use of ďwith-nrpe_portĒ is optional, which is only applicable for those who want to change NRPE default listening port from 5666 to other port number (e.g. 63636):
Code:
# ./configure --with-nrpe_port=63636
Compile NRPE source files (pipe output to tee command is optionally, but duplicate output to file could be useful for tracing errors that happen during compilation):
Code:
# make all | tee nrpe.make.all.log
 
1 members found this post helpful.
Old 03-06-2012, 10:10 AM   #3
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Hi all,

Solved...it complains that "openssl-devel.x86_64", so installed it with "yum install openssl-devel.x86_64"
And install was smooth after that.
Thanks!

@Satyaveer Arya, thanks for the reply!
 
Old 03-06-2012, 10:16 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
OR

You can download the latest rpmforge-release rpm from
http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/
Install rpmforge-release rpm:
Code:
# rpm -Uvh rpmforge-release*rpm
Install nagios-nrpe rpm package:
Code:
# yum install nagios-nrpe
 
Old 03-06-2012, 10:18 AM   #5
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
Solved...it complains that "openssl-devel.x86_64", so installed it with "yum install openssl-devel.x86_64"
And install was smooth after that.
Oooo... got late to see the post before posting my last post....

Anyways, if the problem has been solved, mark the thread as SOLVED.

Congrats!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 09:43 AM
Nagios and NRPE install and36y Linux - Newbie 2 11-12-2009 11:47 AM
NAGIOS: NRPE error : Could not complete SSL handshake TrotskyIcepick Linux - Newbie 3 11-02-2009 04:25 PM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 02:57 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 09:24 AM


All times are GMT -5. The time now is 08:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration