Page 1 of 2

nrpe agent installation fails on SLES11 SP3

Posted: Mon Jun 13, 2016 1:32 am
by kaka81
Hi @all,

I tried to install nrpe agent on a Linux SLES11 SP3 OS. Never had any problems with other installations but somethings works wrong here.
Please find attached install.log file.

I don't see any issues there.
Thank you for your support.
Cheers, Christoph

Re: nrpe agent installation fails on SLES11 SP3

Posted: Mon Jun 13, 2016 11:02 am
by rkennedy
Is that your full install.log or did it get truncated? The last part I'm seeing is -

Code: Select all

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
What issues are you encountering?

Re: nrpe agent installation fails on SLES11 SP3

Posted: Mon Jun 13, 2016 11:50 am
by kaka81
Yes, that's full install log, nothing else to see

Re: nrpe agent installation fails on SLES11 SP3

Posted: Mon Jun 13, 2016 1:42 pm
by hsmith
Are you just trying to run ./fullinstall as root?

Re: nrpe agent installation fails on SLES11 SP3

Posted: Mon Jun 13, 2016 2:33 pm
by kaka81
yes, always logged in with root user and I tried "sudo ./fullinstall". I just tried it again, following error at the end (after "package ... is already installed" as you wrote above):

RESULT=4

===================
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: './0-repos'

Re: nrpe agent installation fails on SLES11 SP3

Posted: Mon Jun 13, 2016 2:42 pm
by hsmith
Can you try to run the fullinstall script with bash -x fullinstall? Post the full output here.

Re: nrpe agent installation fails on SLES11 SP3

Posted: Mon Jun 13, 2016 3:15 pm
by kaka81
Here's the output:

+ ./init.sh
+ . ./xi-sys.cfg
++ apachegroup=apache
++ apacheuser=apache
++ chownbin=/bin/chown
++ groupaddbin=/usr/sbin/groupadd
++ groupdelbin=/usr/sbin/groupdel
++ htpasswdbin=/usr/bin/htpasswd
++ httpdconfdir=/etc/httpd/conf.d
++ httpd=httpd
++ mkdirbin=/bin/mkdir
++ mrtgcfg=/etc/mrtg/mrtg.cfg
++ mysqld=mysqld
++ mysqlpass=nagiosxi
++ pgsqlrootpass=postgres
++ pgsqlpass=nagiosxi
++ nagioscmdgroup=nagcmd
++ nagiosgroup=nagios
++ nagiosuser=nagios
++ nagioswebpwd=nagiosadmin
++ nagioswebuser=nagiosadmin
++ phpconfd=/etc/php.d
++ php_extension_dir=/usr/lib/php/modules
++ phpini=/etc/php.ini
++ proddir=/usr/local/nagiosxi
++ useraddbin=/usr/sbin/useradd
++ usermodbin=/usr/sbin/usermod
++ userdelbin=/usr/sbin/userdel
++ xiver=2011r2.3
++ distro='SUSE LINUX'
++ version=11.3
++ ver=11
++ architecture=x86_64
++ dist=suse
++ arch=x86_64
+ log=install.log
+ export INTERACTIVE=True
+ INTERACTIVE=True
++ id -u
+ '[' 0 -ne 0 ']'
+ caninstall=no
+ '[' 'SUSE LINUX' == CentOS ']'
+ '[' 'SUSE LINUX' == RedHatEnterpriseServer ']'
+ '[' 'SUSE LINUX' == openSUSE ']'
+ '[' 'SUSE LINUX' == 'SUSE LINUX' ']'
+ caninstall=yes
+ case "$dist" in
+ '[' yes == no ']'
+ path_is_ok
+ awk 'BEGIN{RS=":"} {p[$0]++} END{if (p["/sbin"] && p["/usr/sbin"]) exit(0); exit(1)}'
+ echo /opt/oracle/product/11.2/db_1/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
+ '[' -n '' ']'
+ '[' True = True ']'
+ cat
============================
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.

+ read -p 'Do you want to continue? [Y/n] ' res
Do you want to continue? [Y/n] Y
+ case "$res" in
+ echo 'Proceeding with installation...'
Proceeding with installation...
+ cat
++ date
+ run_sub ./0-repos noupdate
+ echo 'Running '\''./0-repos'\''...'
Running './0-repos'...
+ FAILFILE=.fail-12519
+ rm -f .fail-12519
+ eval ./0-repos noupdate
+ tee -a install.log
++ ./0-repos noupdate
Configuring Repos...
Downloading SUSE SDK ...
--2016-06-13 22:13:54-- https://nu.novell.com/repo/$RCE/SLE11-S ... x86_64.rpm
Auflösen des Hostnamen »nu.novell.com«.... 68.232.34.212
Verbindungsaufbau zu nu.novell.com|68.232.34.212|:443... verbunden.
HTTP Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 3447 (3,4K) [application/octet-stream]
In »sle-sdk-release-11.3-1.69.x86_64.rpm.2« speichern.

0K ... 100% 5,04M=0,001s

2016-06-13 22:13:54 (5,04 MB/s) - »sle-sdk-release-11.3-1.69.x86_64.rpm.2« gespeichert [3447/3447]

--2016-06-13 22:13:54-- https://nu.novell.com/repo/$RCE/SLE11-S ... x86_64.rpm
Auflösen des Hostnamen »nu.novell.com«.... 68.232.34.212
Verbindungsaufbau zu nu.novell.com|68.232.34.212|:443... verbunden.
HTTP Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 2814 (2,7K) [application/octet-stream]
In »sle-sdk-release-SDK-11.3-1.69.x86_64.rpm.2« speichern.

0K .. 100% 6,78M=0s

2016-06-13 22:13:55 (6,78 MB/s) - »sle-sdk-release-SDK-11.3-1.69.x86_64.rpm.2« gespeichert [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
+ echo 6
++ cat .fail-12519
+ echo RESULT=6
RESULT=6
+ '[' -f .fail-12519 ']'
+ cat

===================
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: './0-repos'
+ exit 1

Re: nrpe agent installation fails on SLES11 SP3

Posted: Tue Jun 14, 2016 1:53 am
by Box293
What is the output of these commands:

Code: Select all

suse_register
zypper pd

Re: nrpe agent installation fails on SLES11 SP3

Posted: Tue Jun 14, 2016 2:27 am
by kaka81
zypper pd:
[09:26] [root@at466tasi1-TestInstallation ~]$ zypper pd
Daten des Repositorys laden ...
Installierte Pakete lesen ...
S | Repository | Interner Name | Name | Version | Arch | Ist Basis
--+------------+---------------+-------------------------------------------------------+------------+--------+----------
i | @System | SUSE_SLES | SUSE Linux Enterprise Server 11 SP3 | 11.3-1.138 | x86_64 | Ja
i | @System | sle-sdk | SUSE Linux Enterprise Software Development Kit 11 SP3 | 11.3-1.69 | x86_64 | Nein


suse_register:
with which options?

Re: nrpe agent installation fails on SLES11 SP3

Posted: Tue Jun 14, 2016 3:13 pm
by tgriep
I think he is trying to determine is your server is registered, is it?
Can you reinstall the sle-sdk-release-11.3-1.69 package and see if the NRPE installation continues on?