NRPE agent install fails on a SLES11 SP3 endpoint

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

NRPE agent install fails on a SLES11 SP3 endpoint

Post by thur686 »

Hello,

My Nagios XI NRPE agent install process fails on a SLES11 SP3 machine.

Following the directions from the PDF, I downloaded this file: http://assets.nagios.com/downloads/nagi ... ent.tar.gz to the /tmp directory.
Unpacked it, changed directory and ran ./fullinstall.

It stops with an installation error stating that "The script that failed was: './0-repos'".

The installation log contains the following errors:

Registering repos ...
ERROR: Couldn't resolve host name: (6)
(2)
ERROR: Couldn't resolve host name: (6)
(2)

I've been searching around, and haven't come across a similar error. Any ideas?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE agent install fails on a SLES11 SP3 endpoint

Post by slansing »

I believe that the linux-agent package is only usable on Centos/RHEL systems, and I'm pretty sure SUSE now as well. I would recommend manually compiling NRPE from source following:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE agent install fails on a SLES11 SP3 endpoint

Post by lmiltchev »

Can you post the whole "install.log"? It should be located in the "/tmp/linux-nrpe-agent" directory.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: NRPE agent install fails on a SLES11 SP3 endpoint

Post by cmerchant »

Does this SLES11 server have a internet connection? Is this server forced through a proxy connection?
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: NRPE agent install fails on a SLES11 SP3 endpoint

Post by thur686 »

Thank you for the replies.

Yes, it does have internet connectivity and is not using a proxy.

Here is the log:

Nagios Linux Agent Installation Log
===================================
DATE: Tue Jan 13 16:43:31 EST 2015

DISTRO INFO:
SUSE LINUX
11.3
x86_64

Configuring Repos...
Downloading SUSE SDK ...
--2015-01-13 16:43:31-- https://nu.novell.com/repo/$RCE/SLE11-S ... x86_64.rpm
Resolving nu.novell.com... 93.184.215.212
Connecting to nu.novell.com|93.184.215.212|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3447 (3.4K) [application/octet-stream]
Saving to: `sle-sdk-release-11.3-1.69.x86_64.rpm'

0K ... 100% 5.58M=0.001s

2015-01-13 16:43:32 (5.58 MB/s) - `sle-sdk-release-11.3-1.69.x86_64.rpm' saved [3447/3447]

--2015-01-13 16:43:32-- https://nu.novell.com/repo/$RCE/SLE11-S ... x86_64.rpm
Resolving nu.novell.com... 93.184.215.212
Connecting to nu.novell.com|93.184.215.212|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2814 (2.7K) [application/octet-stream]
Saving to: `sle-sdk-release-SDK-11.3-1.69.x86_64.rpm'

0K .. 100% 3.74M=0.001s

2015-01-13 16:43:32 (3.74 MB/s) - `sle-sdk-release-SDK-11.3-1.69.x86_64.rpm' saved [2814/2814]

Installing SUSE SDK ...
Preparing... ##################################################
sle-sdk-release-SDK ##################################################
sle-sdk-release ##################################################
Registering repos ...
ERROR: Couldn't resolve host name: (6)
(2)
ERROR: Couldn't resolve host name: (6)
(2)

Nagios Linux Agent Installation Log
===================================
DATE: Tue Jan 13 16:50:02 EST 2015

DISTRO INFO:
SUSE LINUX
11.3
x86_64

Configuring Repos...
Downloading SUSE SDK ...
--2015-01-13 16:50:02-- https://nu.novell.com/repo/$RCE/SLE11-S ... x86_64.rpm
Resolving nu.novell.com... 93.184.215.212
Connecting to nu.novell.com|93.184.215.212|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3447 (3.4K) [application/octet-stream]
Saving to: `sle-sdk-release-11.3-1.69.x86_64.rpm.1'

0K ... 100% 6.72M=0s

2015-01-13 16:50:02 (6.72 MB/s) - `sle-sdk-release-11.3-1.69.x86_64.rpm.1' saved [3447/3447]

--2015-01-13 16:50:02-- https://nu.novell.com/repo/$RCE/SLE11-S ... x86_64.rpm
Resolving nu.novell.com... 93.184.215.212
Connecting to nu.novell.com|93.184.215.212|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2814 (2.7K) [application/octet-stream]
Saving to: `sle-sdk-release-SDK-11.3-1.69.x86_64.rpm.1'

0K .. 100% 4.85M=0.001s

2015-01-13 16:50:02 (4.85 MB/s) - `sle-sdk-release-SDK-11.3-1.69.x86_64.rpm.1' saved [2814/2814]

Installing SUSE SDK ...
Preparing... ##################################################
package sle-sdk-release-SDK-11.3-1.69.x86_64 is already installed
package sle-sdk-release-11.3-1.69.x86_64 is already installed
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: NRPE agent install fails on a SLES11 SP3 endpoint

Post by cmerchant »

The install script got as far as installing the SLES SDK repos rpms and it appears to have timed out, it did not connect to novell.nl's registration service.

Is this a registered SLES? Could you run the following commands:

Code: Select all

# zypper pd
# suse_register
and show us the output.

Thanks.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: NRPE agent install fails on a SLES11 SP3 endpoint

Post by thur686 »

Thanks cmerchant, running suse_register lead me to the problem. There was a problem with the suseRegister.conf file.

This is a lab server and wasn't properly registered which caused the fullinstall script to fail, specifically the SuSE register part of the script.

Thanks again!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: NRPE agent install fails on a SLES11 SP3 endpoint

Post by cmerchant »

Awesome! We probably should post something to our FAQ for SUSE NRPE installs. We'll go ahead and close this thread. Thanks.
Locked