problem when install Nagios agent in linux red hat 7.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problem when install Nagios agent in linux red hat 7.1

Post by lmiltchev »

According to your previous post, the prerequisites should have been installed, but I see this line in the output:
./configure: line 6748: /usr/bin/openssl: No such file or directory
Can you run the following commands and show the output?

Code: Select all

which openssl
yum list installed | grep openssl
Note: if you need to install openssl, you can run:

Code: Select all

yum install openssl openssl-devel -y
then try again:

Code: Select all

cd /tmp/linux-nrpe-agent/subcomponents/nrpe
sudo ./install
Be sure to check out our Knowledgebase for helpful articles and solutions!
paltel
Posts: 64
Joined: Wed Jul 22, 2015 3:47 am

Re: problem when install Nagios agent in linux red hat 7.1

Post by paltel »

login as: firas
[email protected]'s password:
Last login: Tue Mar 21 17:10:02 2017 from 172.17.150.170
[firas@SDE-QM-02 ~]$ which openssl
/usr/bin/which: no openssl in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/firas/.local/bin:/home/firas/bin)
[firas@SDE-QM-02 ~]$ yum list installed | grep openssl
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/4784086767461798484-key.pem
openssl-devel.x86_64 1:1.0.1e-60.el7_3.1 @rhel-7-server-rpms
openssl-libs.x86_64 1:1.0.1e-60.el7_3.1 installed
[firas@SDE-QM-02 ~]$ yum install openssl openssl-devel -y
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/4784086767461798484-key.pem
You need to be root to perform this command.
[firas@SDE-QM-02 ~]$ sudo yum install openssl openssl-devel -y
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
Package 1:openssl-devel-1.0.1e-60.el7_3.1.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-60.el7_3.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
openssl x86_64 1:1.0.1e-60.el7_3.1 rhel-7-server-rpms 713 k

Transaction Summary
================================================================================
Install 1 Package

Total size: 713 k
Installed size: 1.5 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:openssl-1.0.1e-60.el7_3.1.x86_64 1/1
Verifying : 1:openssl-1.0.1e-60.el7_3.1.x86_64 1/1

Installed:
openssl.x86_64 1:1.0.1e-60.el7_3.1

Complete!
[firas@SDE-QM-02 ~]$ cd /tmp/linux-nrpe-agent/subcomponents/nrpe
[firas@SDE-QM-02 nrpe]$ sudo ./install
NRPE
checking for a BSD-compatible install... /bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... no
checking tcpd.h presence... no
checking for tcpd.h... no
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 8
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... no
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for closesocket... no
checking for socklen_t... yes
checking for type of socket size... size_t
checking for SSL headers... SSL headers found in /usr
checking for SSL libraries... SSL libraries found in /usr/lib64

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
.......................+.......................................+................................+........................+..........+............................................................+...+...........................+................................................................+.+.............................+.................+................................+.....+..+..+..............+....+......................+.................+....+..........................................+..............................................................................++*++*++*++*++*++*
checking for Kerberos include files... could not find include files
checking for perl... /bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating src/Makefile
config.status: creating package/solaris/Makefile
config.status: creating init-script
config.status: creating init-script.debian
config.status: creating init-script.suse
config.status: creating nrpe.spec
config.status: creating sample-config/nrpe.cfg
config.status: creating sample-config/nrpe.xinetd
config.status: creating include/config.h


*** Configuration summary for nrpe 2.15 09-06-2013 ***:

General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios


Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client.

cd ./src/; make ; cd ..
make[1]: Entering directory `/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src'
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib64 -lssl -lcrypto -lnsl
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -L/usr/lib64 -lssl -lcrypto -lnsl
make[1]: Leaving directory `/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/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.

cd ./src/ && make install-plugin
make[1]: Entering directory `/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src'
/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
make[1]: Leaving directory `/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src'
cd ./src/ && make install-daemon
make[1]: Entering directory `/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src'
/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/bin/install -c -m 775 -o nagios -g nagios nrpe /usr/local/nagios/bin
make[1]: Leaving directory `/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-2.15/src'
/bin/install -c -m 644 sample-config/nrpe.xinetd /etc/xinetd.d/nrpe
/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc
/bin/install -c -m 644 -o nagios -g nagios sample-config/nrpe.cfg /usr/local/nagios/etc
NRPE-POST
[firas@SDE-QM-02 nrpe]$
paltel
Posts: 64
Joined: Wed Jul 22, 2015 3:47 am

Re: problem when install Nagios agent in linux red hat 7.1

Post by paltel »

kindly note that the error in Nagios server changed
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: problem when install Nagios agent in linux red hat 7.1

Post by avandemore »

Can you follow this document:
https://assets.nagios.com/downloads/nag ... utions.pdf
For the section concerning Could Not Complete SSL Handshake
Previous Nagios employee
paltel
Posts: 64
Joined: Wed Jul 22, 2015 3:47 am

Re: problem when install Nagios agent in linux red hat 7.1

Post by paltel »

thank you very much every think is ok now :) :) :) :)
:P :P :P :P :P :P :P :P :P :P :P :P :P :P :P
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: problem when install Nagios agent in linux red hat 7.1

Post by cdienger »

Glad to help. Is it okay to close the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
paltel
Posts: 64
Joined: Wed Jul 22, 2015 3:47 am

Re: problem when install Nagios agent in linux red hat 7.1

Post by paltel »

yes you can close
BR
Locked