NPRE agent not installing on SLES 11 SP2
-
Novooctavian
- Posts: 13
- Joined: Fri Jul 19, 2019 9:33 am
NPRE agent not installing on SLES 11 SP2
Hi all
I've followed the instructions from within NagiosXI and ran into this error:
/tmp/linux-nrpe-agent # ./fullinstall
SLES is not currently supported. Please use either Red Hat, CentOS, Oracle Linux, CloudLinux, SUSE Enterprise, OpenSUSE, Ubuntu, or Debian.
Now the Instruction states that this version is compatible with sles 11 SP2:
Supported DistributionsThe Linux agent installation is currently supported on RHEL/CentOS/Oracle Linux/CloudLinux 5+, Fedora 14+, SLES 11+, OpenSUSE 11+, Ubuntu 12+, and Debian 6+
How do I get the install to work?
Thanks
Stephanus
I've followed the instructions from within NagiosXI and ran into this error:
/tmp/linux-nrpe-agent # ./fullinstall
SLES is not currently supported. Please use either Red Hat, CentOS, Oracle Linux, CloudLinux, SUSE Enterprise, OpenSUSE, Ubuntu, or Debian.
Now the Instruction states that this version is compatible with sles 11 SP2:
Supported DistributionsThe Linux agent installation is currently supported on RHEL/CentOS/Oracle Linux/CloudLinux 5+, Fedora 14+, SLES 11+, OpenSUSE 11+, Ubuntu 12+, and Debian 6+
How do I get the install to work?
Thanks
Stephanus
Re: NPRE agent not installing on SLES 11 SP2
The installer seems to be confused about which OS version you're on.
Rather than just suggest that you hack line 89 in ./linux-nrpe-agent/fullinstall that looks for openSUSE or SUSE, I'd like to see what the installer thinks your system actually is, and why.
Can you uncomment the last three lines in ./linux-nrpe-agent/get-os-info and try the installer again?
Thanks!
Rather than just suggest that you hack line 89 in ./linux-nrpe-agent/fullinstall that looks for openSUSE or SUSE, I'd like to see what the installer thinks your system actually is, and why.
Can you uncomment the last three lines in ./linux-nrpe-agent/get-os-info and try the installer again?
Code: Select all
jdunitz ~/Downloads/NRPE/linux-nrpe-agent
$ tail get-os-info
# Verify that we have a distro now
if [ -z "$distro" ]; then
echo "ERROR: Could not determine OS. Please make sure lsb_release is installed or your OS info is in /etc/os-release." >&2
exit 1
fi
# Print results UNCOMMENT THESE LINES HERE vvv
#echo "$distro"
#echo "$version"
#echo "$architecture"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NPRE agent not installing on SLES 11 SP2
Hmm, for some reason the script detecting the distro set it as "SUSE LINUX", not "SUSE". Here's an easy fix - open the fullinstall script in a text editor, e.g. "vi", and change line 89 from this:
to this:
Save, exit, and rerun the fullinstall.
Let us know if this solved your issue. Thanks!
Code: Select all
elif [ "$distro" == "openSUSE" ] || [ "$distro" == "SUSE" ]; theCode: Select all
elif [ "$distro" == "openSUSE" ] || [ "$distro" == "SUSE" ] || [ "$distro" == "SUSE LINUX" ]; thenLet us know if this solved your issue. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Novooctavian
- Posts: 13
- Joined: Fri Jul 19, 2019 9:33 am
Re: NPRE agent not installing on SLES 11 SP2
Hi,
thanks for the quick response, here's the results:
SLES
11.4
x86_64
SLES is not currently supported. Please use either Red Hat, CentOS, Oracle Linux, CloudLinux, SUSE Enterprise, OpenSUSE, Ubuntu, or Debian.
thanks for the quick response, here's the results:
SLES
11.4
x86_64
SLES is not currently supported. Please use either Red Hat, CentOS, Oracle Linux, CloudLinux, SUSE Enterprise, OpenSUSE, Ubuntu, or Debian.
Re: NPRE agent not installing on SLES 11 SP2
Can you run the following commands and show the output?
Code: Select all
distro=`lsb_release -si`
echo $distro
version=`lsb_release -sr`
echo $versionBe sure to check out our Knowledgebase for helpful articles and solutions!
-
Novooctavian
- Posts: 13
- Joined: Fri Jul 19, 2019 9:33 am
Re: NPRE agent not installing on SLES 11 SP2
here's the distro info, same as previous comment.
NAME="SLES"
VERSION="11.4"
VERSION_ID="11.4"
PRETTY_NAME="SUSE Linux Enterprise Server 11 SP4"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:11:4"
and:
/tmp/linux-nrpe-agent # distro=`lsb_release -si`
/tmp/linux-nrpe-agent # echo $distro
SUSE LINUX
/tmp/linux-nrpe-agent # version=`lsb_release -sr`
/tmp/linux-nrpe-agent # echo $version
11
NAME="SLES"
VERSION="11.4"
VERSION_ID="11.4"
PRETTY_NAME="SUSE Linux Enterprise Server 11 SP4"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:11:4"
and:
/tmp/linux-nrpe-agent # distro=`lsb_release -si`
/tmp/linux-nrpe-agent # echo $distro
SUSE LINUX
/tmp/linux-nrpe-agent # version=`lsb_release -sr`
/tmp/linux-nrpe-agent # echo $version
11
Re: NPRE agent not installing on SLES 11 SP2
The distro name is correct... the (modified) fullinstall script should've worked. I am not sure what happened. Anyway, try removing the old files, then re-downloading the updated agent, and re-running the fullinstall:
Code: Select all
cd /tmp
rm -rf linux-nrpe-agent*
wget https://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz
tar xzf linux-nrpe-agent.tar.gz
cd linux-nrpe-agent
./fullinstallBe sure to check out our Knowledgebase for helpful articles and solutions!
-
Novooctavian
- Posts: 13
- Joined: Fri Jul 19, 2019 9:33 am
Re: NPRE agent not installing on SLES 11 SP2
HI,
Thanks, I got a step further. It did not fail right away but it did not complete. this is the last bit of the installation progress:
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'
not much more information in the install log.
Thanks for your help so far.
Thanks, I got a step further. It did not fail right away but it did not complete. this is the last bit of the installation progress:
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'
not much more information in the install log.
Thanks for your help so far.
Re: NPRE agent not installing on SLES 11 SP2
I installed the Linux NRPE agent on the same OS/version with no issues. I wonder if there is something wrong with your registration and/or repos. Can you run the following commands and show the output?
Code: Select all
sed 's/</\n&/g' /var/cache/SuseRegister/lastzmdconfig.cache | grep status
zypper repos
zypper refresh
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Novooctavian
- Posts: 13
- Joined: Fri Jul 19, 2019 9:33 am
Re: NPRE agent not installing on SLES 11 SP2
hi,
i got it working. I re run my registration and now it installed without any problems. I can see it in NagiosXI. Thanks for all the help.
Stephanus
i got it working. I re run my registration and now it installed without any problems. I can see it in NagiosXI. Thanks for all the help.
Stephanus