Page 1 of 2
Agent install on Debian
Posted: Fri Apr 08, 2016 12:30 pm
by pentiumone133
Hi,
Trying to install the agent on a Debian 8.3 and the installer claims it is not supported, but then says it is...
Code: Select all
root@kvmhost1 ~/linux-nrpe-agent # cat /etc/debian_version
8.3
root@kvmhost1 ~/linux-nrpe-agent # ./fullinstall
Debian GNU/Linux is not currently supported. Please use either Red Hat, CentOS, Oracle Linux, SUSE Enterprise, OpenSUSE, Ubuntu, or Debian.
root@kvmhost1 ~/linux-nrpe-agent # uname -a
Linux kvmhost1 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
If I edit fullinstall shell script to allow "Debian GNU/Linux" (line 78) it fails somewhere in the build process. The log of this is attached.
debian package nagios-nrpe-server worked fine on this machine prior to upgrading to us upgrading to XI. Is there a version of the XI agent installer that works on Debian? xinetd is installed, the log would lead you to believe it isnt.
Re: Agent install on Debian
Posted: Fri Apr 08, 2016 12:49 pm
by hsmith
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
What's in /etc/xinetd.d/ ?
Re: Agent install on Debian
Posted: Fri Apr 08, 2016 12:51 pm
by rkennedy
There are a couple of things that pop up in the install.log. I know you mentioned xinetd being installed, but for whatever reason it's not being registered.
Code: Select all
configure: error: in `/root/linux-nrpe-agent/subcomponents/nagiosplugins/nagios-plugins-2.0.3':
configure: error: no acceptable C compiler found in $PATH
apt-get install build-essential
Code: Select all
Failed to restart xinetd.service: Unit xinetd.service failed to load: No such file or directory.
NRPE-POST
Failed to restart xinetd.service: Unit xinetd.service failed to load: No such file or directory.
Code: Select all
*** Could not run libmcrypt test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed
*** or that you have moved LIBMCRYPT since it was installed. In the latter case, you
*** may want to edit the libmcrypt-config script: no
apt-get install libmcrypt libmcrypt-dev (IIRC)
debian package nagios-nrpe-server worked fine on this machine prior to upgrading to us upgrading to XI. Is there a version of the XI agent installer that works on Debian? xinetd is installed, the log would lead you to believe it isnt.
When upgrading XI, NRPE shouldn't have any care what version you're running. Based on what you mentioned, do you already have NRPE installed on this machine?
Re: Agent install on Debian
Posted: Fri Apr 08, 2016 1:06 pm
by lmiltchev
I don't have Debian 8.3 to test our Linux agent installer on but I tried it on Debian 7.9. I didn't have any issues.
example01.PNG
Re: Agent install on Debian
Posted: Fri Apr 08, 2016 1:10 pm
by pentiumone133
rkennedy wrote:There are a couple of things that pop up in the install.log. I know you mentioned xinetd being installed, but for whatever reason it's not being registered.
Code: Select all
configure: error: in `/root/linux-nrpe-agent/subcomponents/nagiosplugins/nagios-plugins-2.0.3':
configure: error: no acceptable C compiler found in $PATH
apt-get install build-essential
Code: Select all
Failed to restart xinetd.service: Unit xinetd.service failed to load: No such file or directory.
NRPE-POST
Failed to restart xinetd.service: Unit xinetd.service failed to load: No such file or directory.
Code: Select all
*** Could not run libmcrypt test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed
*** or that you have moved LIBMCRYPT since it was installed. In the latter case, you
*** may want to edit the libmcrypt-config script: no
apt-get install libmcrypt libmcrypt-dev (IIRC)
debian package nagios-nrpe-server worked fine on this machine prior to upgrading to us upgrading to XI. Is there a version of the XI agent installer that works on Debian? xinetd is installed, the log would lead you to believe it isnt.
When upgrading XI, NRPE shouldn't have any care what version you're running. Based on what you mentioned, do you already have NRPE installed on this machine?
build-essential is installed. It wasnt the first time I ran the installer (on my other debian machines the nagios agent installer took care of it for me I think). I have uninstalled the debian nagios-nrpe-server package. It doesn't work out of the box with XI like the fullinstall one does.
Re: Agent install on Debian
Posted: Fri Apr 08, 2016 1:12 pm
by pentiumone133
hsmith wrote:sed: can't read /etc/xinetd.d/nrpe: No such file or directory
What's in /etc/xinetd.d/ ?
Doesn't exist
Re: Agent install on Debian
Posted: Fri Apr 08, 2016 1:13 pm
by pentiumone133
lmiltchev wrote:I don't have Debian 8.3 to test our Linux agent installer on but I tried it on Debian 7.9. I didn't have any issues.
example01.PNG
Yup, I have some older debian machines that it works fine on also. These 3 machines in particular are pretty new installs and not having any luck.
Re: Agent install on Debian
Posted: Fri Apr 08, 2016 1:32 pm
by lmiltchev
I will test our installer script on Debian 8.3 as soon as I can (most probably late Monday), and will share my findings with you, and our developers. Perhaps, the script needs to be modified to work with newer Debian systems.
Re: Agent install on Debian
Posted: Fri Apr 15, 2016 12:27 pm
by pentiumone133
Any luck?
Re: Agent install on Debian
Posted: Fri Apr 15, 2016 1:27 pm
by lmiltchev
The installer failed for me too, so I filed an internal bug report (TASK ID 8291). Here's the info from my test:
System info:
Code: Select all
root@debian:/tmp# uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux
root@debian:/tmp# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Error:
Code: Select all
Package libmcrypt-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libmcrypt-dev' has no installation candidate
E: Unable to locate package xinetd
RESULT=100
===================
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
install.log
Note: The Linux agent installer script has never been tested on Debian 8, so I am not surprised it failed. I am pretty confident that our developers will fix it as soon as they have a chance. Thank you!