Nrpe install error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ohlssrog
Posts: 40
Joined: Tue Nov 24, 2015 6:44 am

Nrpe install error

Post by ohlssrog »

Hi.

Nagios XI Version : 5.2.3
servername 2.6.32-358.2.1.el6.x86_64 x86_64
CentOS release 6.4 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
Server Name: 10.
Server Address: 10.
Server Port: 80

Have add an centos 6.3 server with Linux server wizard (nrpe), all checker/Service are red-critical, ping checker is OK and green. Then install the nrpe agent follow the Installing_The_XI_Linux_Agent.pdf document i get

./fullinstall
============================
Nagios Linux Agent Installer
============================

This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a clean installed system:

RedHat Enterprise, CentOS, Fedora, or Oracle
OpenSUSE or SUSE Enterprise
Ubuntu or Debian

Do NOT use this on a system running any other distro or that
does not allow additional package installation.

INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './1-prereqs'


Install.log output

Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:33:53 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Configuring Repos...
epel-release RPM installed OK
Repos configured OK
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:41:54 CET 2016

DISTRO INFO:
CentOS
6.3


Have try to add our proxy IP:8080 to the yum.conf and ~./bash_profile file and add the above http address to hosts file. Havent restart network service after these changes..?

Done export http_proxy=http://IP:8080

Edit /etc/yum.repos.d/epel.repo with sslverify=false
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nrpe install error

Post by rkennedy »

Can you run yum repolist and post the result back to us?
Former Nagios Employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nrpe install error

Post by lmiltchev »

Obviously, your proxy is causing the issues... You can try installing ALL of the prerequisites manually on this machine - autoconf, gcc, glibc, libmcrypt-devel, make, openssl-devel, sudo, sysstat, xinetd, and bc.

Then run:

Code: Select all

cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz
tar zxvf linux-nrpe-agent.tar.gz
cd /tmp/linux-nrpe-agent
touch installed.repos
touch installed.prereqs
./fullinstall
Be sure to check out our Knowledgebase for helpful articles and solutions!
ohlssrog
Posts: 40
Joined: Tue Nov 24, 2015 6:44 am

Re: Nrpe install error

Post by ohlssrog »

[root@SLSVARC ~]# yum repolist
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


touch installed.repos
[root@SLSVARC linux-nrpe-agent]# touch installed.prereqs
[root@SLSVARC linux-nrpe-agent]# ./fullinstall


============================
Nagios Linux Agent Installer
============================

This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a clean installed system:

RedHat Enterprise, CentOS, Fedora, or Oracle
OpenSUSE or SUSE Enterprise
Ubuntu or Debian

Do NOT use this on a system running any other distro or that
does not allow additional package installation.

Do you want to continue? [Y/n] y
Proceeding with installation...
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
RESULT=0
Running './2-usersgroups'...
Adding users and groups...
groupadd: group 'nagios' already exists
useradd: user 'nagios' already exists
Users and groups added OK
RESULT=0
Running './3-services'...
/etc/services updated
RESULT=0
Running './4-firewall'...
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
Firewall rules updated OK
RESULT=0
Running './A-subcomponents'...
SUB
NAGIOSPLUGINS
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/linux-nrpe-agent/subcomponents/nagiosplugins/nagios-plugins-2.0.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

real 0m1.273s
user 0m0.118s
sys 0m0.073s
make: *** No rule to make target `clean'. Stop.

real 0m0.002s
user 0m0.002s
sys 0m0.000s
make: *** No targets specified and no makefile found. Stop.

real 0m0.002s
user 0m0.001s
sys 0m0.000s
make: *** No rule to make target `install'. Stop.

real 0m0.002s
user 0m0.002s
sys 0m0.001s
Subcomponents installation failed - exiting
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'
[root@SLSVARC linux-nrpe-agent]# cat ./install.log
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:33:53 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Configuring Repos...
epel-release RPM installed OK
Repos configured OK
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:41:54 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:42:29 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:53:19 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:54:05 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:14:48 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:16:30 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:18:45 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:19:08 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:41:28 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:44:12 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:59:06 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:59:27 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 16:00:07 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:03:14 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:09:40 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:34:01 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 14:52:04 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Mon Feb 29 15:12:36 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Nagios Linux Agent Installation Log
===================================
DATE: Tue Mar 1 08:51:14 CET 2016

DISTRO INFO:
CentOS
6.3
x86_64

Repos already configured - exiting.
Prereqs already installed - skipping...
Adding users and groups...
groupadd: group 'nagios' already exists
useradd: user 'nagios' already exists
Users and groups added OK
/etc/services updated
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
Firewall rules updated OK
SUB
NAGIOSPLUGINS
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/linux-nrpe-agent/subcomponents/nagiosplugins/nagios-plugins-2.0.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

real 0m1.273s
user 0m0.118s
sys 0m0.073s
make: *** No rule to make target `clean'. Stop.

real 0m0.002s
user 0m0.002s
sys 0m0.000s
make: *** No targets specified and no makefile found. Stop.

real 0m0.002s
user 0m0.001s
sys 0m0.000s
make: *** No rule to make target `install'. Stop.

real 0m0.002s
user 0m0.002s
sys 0m0.001s
Subcomponents installation failed - exiting
[root@SLSVARC linux-nrpe-agent]#

I have tried to install the nrpe-2.13-nagios_plugins-1.4.15-CentOS_6-2.13.1_x86_64.rpm from OP5 site
https://www.op5.com/download-op5-monitor/agents/

But get follow error
rpm -Uvh nrpe-2.13-nagios_plugins-1.4.15-CentOS_6-2.13.1_x86_64.rpm
error: Failed dependencies:
mysql is needed by nrpe_nagiosplugins-2.13.1-release.x86_64
postgresql is needed by nrpe_nagiosplugins-2.13.1-release.x86_64
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nrpe install error

Post by rkennedy »

As @lmiltchev mentioned - this sounds to be proxy related. Can you verify the settings on your machine?

Also - what are the contents of this file? /etc/yum.repos.d/epel.repo
Former Nagios Employee
ohlssrog
Posts: 40
Joined: Tue Nov 24, 2015 6:44 am

Re: Nrpe install error

Post by ohlssrog »

Can you please tell me where in centos i should configure proxyserver IP for internet access, linux is not my strongest skill

Requested output

name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metal ... =$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
#sslverify=false
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/e ... arch/debug
mirrorlist=https://mirrors.fedoraproject.org/metal ... =$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metal ... =$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nrpe install error

Post by lmiltchev »

Can you please tell me where in centos i should configure proxyserver IP for internet access, linux is not my strongest skill
Try configuring your proxy in the "/etc/yum.conf" and "/etc/wgetrc" as described in the KB article below:

https://support.nagios.com/kb/article.php?id=147

Let us know if this fixed your problem.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ohlssrog
Posts: 40
Joined: Tue Nov 24, 2015 6:44 am

Re: Nrpe install error

Post by ohlssrog »

Hi

Still problem to install nrpe agent after edit these 2 files with proxy server.

installation output:

============================
Nagios Linux Agent Installer
============================

This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a clean installed system:

RedHat Enterprise, CentOS, Fedora, or Oracle
OpenSUSE or SUSE Enterprise
Ubuntu or Debian

Do NOT use this on a system running any other distro or that
does not allow additional package installation.

Do you want to continue? [Y/n] y
Proceeding with installation...
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
RESULT=0
Running './2-usersgroups'...
Users/groups already configured - skipping.
RESULT=0
Running './3-services'...
/etc/services already updated - skipping.
RESULT=0
Running './4-firewall'...
Firewall rules already configured - skipping.
RESULT=0
Running './A-subcomponents'...
SUB
NAGIOSPLUGINS
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/linux-nrpe-agent/subcomponents/nagiosplugins/nagios-plugins-2.0.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

real 0m1.269s
user 0m0.123s
sys 0m0.064s
make: *** No rule to make target `clean'. Stop.

real 0m0.002s
user 0m0.001s
sys 0m0.000s
make: *** No targets specified and no makefile found. Stop.

real 0m0.002s
user 0m0.001s
sys 0m0.000s
make: *** No rule to make target `install'. Stop.

real 0m0.002s
user 0m0.002s
sys 0m0.001s
Subcomponents installation failed - exiting
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nrpe install error

Post by rkennedy »

Can you run yum list and post the full output?
Former Nagios Employee
ohlssrog
Posts: 40
Joined: Tue Nov 24, 2015 6:44 am

Re: Nrpe install error

Post by ohlssrog »

Requested output:

[root@SLSVARC ~]# yum list
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@SLSVARC ~]#
Locked