NRPE support for el7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

NRPE support for el7

Post by eddiez »

We been building new Linux hosts with RedHat el7 version. When I go to install nrpe, I get the message ""el7 is not currently supported".

Is there a newer nrpe version that can use for this, or is there something differently I need to do.

Thanks,

Ed
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE support for el7

Post by lmiltchev »

Did you use our official Linux agent installer?

https://assets.nagios.com/downloads/nag ... _Agent.pdf

What is the output of the following commands?

Code: Select all

uname -a
cat /etc/*release
Be sure to check out our Knowledgebase for helpful articles and solutions!
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: NRPE support for el7

Post by eddiez »

[root@utlp1423 ~]# uname -a
Linux utlp1423.ama-assn.org 3.10.0-327.13.1.el7.x86_64 #1 SMP Mon Feb 29 13:22:02 EST 2016 x86_64 x86_64 x86_64 GNU/Linux

[root@utlp1423 ~]# cat /etc/*release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.2 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.2:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
Red Hat Enterprise Linux Server release 7.2 (Maipo)
Red Hat Enterprise Linux Server release 7.2 (Maipo)
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: NRPE support for el7

Post by eddiez »

When I went to install the downloaded nrpe, the installation failed. Here is output of the install.log

[root@utlp1423 linux-nrpe-agent]# more install.log
Nagios Linux Agent Installation Log
===================================
DATE: Tue May 3 08:20:51 CDT 2016

DISTRO INFO:
RedHatEnterpriseServer
7.2
x86_64

Configuring Repos...
Enabling EPEL repo...
Installing EPEL PKG: ./packages/epel-release-7-2.noarch.rpm
warning: ./packages/epel-release-7-2.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ########################################
Updating / installing...
epel-release-7-2 ########################################
Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-
: manager
This system is receiving updates from RHN Classic or Red Hat Satellite.

epel-release.noarch 7-6 epel
epel-release RPM installed OK
Repos configured OK
Installing prerequisites...
Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-
: manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
Package autoconf-2.69-11.el7.noarch already installed and latest version
Package gcc-4.8.5-4.el7.x86_64 already installed and latest version
Package glibc-2.17-106.el7_2.4.x86_64 already installed and latest version
Package 1:make-3.82-21.el7.x86_64 already installed and latest version
Package sudo-1.8.6p7-17.el7_2.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
---> Package libmcrypt-devel.x86_64 0:2.5.8-13.el7 will be installed
--> Processing Dependency: libmcrypt = 2.5.8-13.el7 for package: libmcrypt-devel-2.5.8-13.el7.x86_64
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: libmcrypt-devel-2.5.8-13.el7.x86_64
---> Package openssl-devel.x86_64 1:1.0.1e-51.el7_2.4 will be installed
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.1e-51.el7_2.4.x86_64
--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.1e-51.el7_2.4.x86_64
---> Package sysstat.x86_64 0:10.1.5-7.el7 will be installed
--> Processing Dependency: libsensors.so.4()(64bit) for package: sysstat-10.1.5-7.el7.x86_64
---> Package xinetd.x86_64 2:2.3.15-12.el7 will be installed
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.13.2-12.el7_2 will be installed
--> Processing Dependency: libverto-devel for package: krb5-devel-1.13.2-12.el7_2.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.13.2-12.el7_2.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.13.2-12.el7_2.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.13.2-12.el7_2.x86_64
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
---> Package lm_sensors-libs.x86_64 0:3.3.4-11.el7 will be installed
---> Package zlib-devel.x86_64 0:1.2.7-15.el7 will be installed
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package libcom_err-devel.x86_64 0:1.42.9-7.el7 will be installed
---> Package libselinux-devel.x86_64 0:2.2.2-6.el7 will be installed
--> Processing Dependency: libsepol-devel >= 2.1.9-1 for package: libselinux-devel-2.2.2-6.el7.x86_64
--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.2.2-6.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.2.2-6.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
--> Running transaction check
---> Package libsepol-devel.x86_64 0:2.1.9-3.el7 will be installed
---> Package pcre-devel.x86_64 0:8.32-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
bc x86_64 1.06.95-13.el7 rhel-x86_64-server-7 115 k
libmcrypt-devel x86_64 2.5.8-13.el7 epel 13 k
openssl-devel x86_64 1:1.0.1e-51.el7_2.4 rhel-x86_64-server-7 1.2 M
sysstat x86_64 10.1.5-7.el7 rhel-x86_64-server-7 296 k
xinetd x86_64 2:2.3.15-12.el7 rhel-x86_64-server-7 128 k
Installing for dependencies:
keyutils-libs-devel x86_64 1.5.8-3.el7 rhel-x86_64-server-7 37 k
krb5-devel x86_64 1.13.2-12.el7_2 rhel-x86_64-server-7 649 k
libcom_err-devel x86_64 1.42.9-7.el7 rhel-x86_64-server-7 30 k
libmcrypt x86_64 2.5.8-13.el7 epel 99 k
libselinux-devel x86_64 2.2.2-6.el7 rhel-x86_64-server-7 174 k
libsepol-devel x86_64 2.1.9-3.el7 rhel-x86_64-server-7 71 k
libverto-devel x86_64 0.2.5-4.el7 rhel-x86_64-server-7 12 k
lm_sensors-libs x86_64 3.3.4-11.el7 rhel-x86_64-server-7 40 k
pcre-devel x86_64 8.32-15.el7 rhel-x86_64-server-7 478 k
zlib-devel x86_64 1.2.7-15.el7 rhel-x86_64-server-7 50 k

Transaction Summary
================================================================================
Install 5 Packages (+10 Dependent packages)

Total download size: 3.3 M
Installed size: 7.9 M
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/epel/packages/libmcrypt-2.5.8-13.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c6
4e5: NOKEY
Public key for libmcrypt-2.5.8-13.el7.x86_64.rpm is not installed
--------------------------------------------------------------------------------
Total 1.4 MB/s | 3.3 MB 00:02
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <[email protected]>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-2.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : libcom_err-devel-1.42.9-7.el7.x86_64 1/15
Installing : libmcrypt-2.5.8-13.el7.x86_64 2/15
Installing : pcre-devel-8.32-15.el7.x86_64 3/15
Installing : lm_sensors-libs-3.3.4-11.el7.x86_64 4/15
Installing : libsepol-devel-2.1.9-3.el7.x86_64 5/15
Installing : libselinux-devel-2.2.2-6.el7.x86_64 6/15
Installing : libverto-devel-0.2.5-4.el7.x86_64 7/15
Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 8/15
Installing : krb5-devel-1.13.2-12.el7_2.x86_64 9/15
Installing : zlib-devel-1.2.7-15.el7.x86_64 10/15
Installing : 1:openssl-devel-1.0.1e-51.el7_2.4.x86_64 11/15
Installing : sysstat-10.1.5-7.el7.x86_64 12/15
Installing : libmcrypt-devel-2.5.8-13.el7.x86_64 13/15
Installing : bc-1.06.95-13.el7.x86_64 14/15
Installing : 2:xinetd-2.3.15-12.el7.x86_64 15/15
Verifying : zlib-devel-1.2.7-15.el7.x86_64 1/15
Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 2/15
Verifying : libverto-devel-0.2.5-4.el7.x86_64 3/15
Verifying : libsepol-devel-2.1.9-3.el7.x86_64 4/15
Verifying : 2:xinetd-2.3.15-12.el7.x86_64 5/15
Verifying : lm_sensors-libs-3.3.4-11.el7.x86_64 6/15
Verifying : 1:openssl-devel-1.0.1e-51.el7_2.4.x86_64 7/15
Verifying : pcre-devel-8.32-15.el7.x86_64 8/15
Verifying : sysstat-10.1.5-7.el7.x86_64 9/15
Verifying : libmcrypt-devel-2.5.8-13.el7.x86_64 10/15
Verifying : libmcrypt-2.5.8-13.el7.x86_64 11/15
Verifying : libcom_err-devel-1.42.9-7.el7.x86_64 12/15
Verifying : libselinux-devel-2.2.2-6.el7.x86_64 13/15
Verifying : bc-1.06.95-13.el7.x86_64 14/15
Verifying : krb5-devel-1.13.2-12.el7_2.x86_64 15/15

Installed:
bc.x86_64 0:1.06.95-13.el7
libmcrypt-devel.x86_64 0:2.5.8-13.el7
openssl-devel.x86_64 1:1.0.1e-51.el7_2.4
sysstat.x86_64 0:10.1.5-7.el7
xinetd.x86_64 2:2.3.15-12.el7

Dependency Installed:
keyutils-libs-devel.x86_64 0:1.5.8-3.el7
krb5-devel.x86_64 0:1.13.2-12.el7_2
libcom_err-devel.x86_64 0:1.42.9-7.el7
libmcrypt.x86_64 0:2.5.8-13.el7
libselinux-devel.x86_64 0:2.2.2-6.el7
libsepol-devel.x86_64 0:2.1.9-3.el7
libverto-devel.x86_64 0:0.2.5-4.el7
lm_sensors-libs.x86_64 0:3.3.4-11.el7
pcre-devel.x86_64 0:8.32-15.el7
zlib-devel.x86_64 0:1.2.7-15.el7

Complete!
Prerequisites installed OK
Adding users and groups...
groupadd: group 'nagios' already exists
useradd: user 'nagios' already exists
Users and groups added OK
/etc/services updated
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other act
ions, please try to use systemctl.
FirewallD is not running
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NRPE support for el7

Post by hsmith »

Can you please go to the directory you're installing NRPE from, and do a 'touch installed.firewall' command, and try to run the installer again?
Former Nagios Employee.
me.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE support for el7

Post by lmiltchev »

To add to what hsmith said - re-running the "fullinstall" script after creating a "installed.firewall" file should fix the issue. The problem was that for some reason the latest Linux agent installer was not pushed out. There was a missing code in the 4-firewall file:
if [ $ver -eq 7 ]; then
if ! hash firewall-cmd 2>/dev/null; then
skip_firewall
fi

firewall-cmd --zone=public --add-port=5666/tcp --permanent
firewall-cmd --zone=public --add-port=5667/tcp --permanent
firewall-cmd --reload
systemctl restart firewalld
else
service iptables restart
fi
which, I believe, caused the problem. Let us know if you have any more questions/issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: NRPE support for el7

Post by eddiez »

Thanks that did the trick. Have a nice day.

Ed
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE support for el7

Post by lmiltchev »

I am glad your issue has been resolved! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked