Unable to install Linux NPRE Agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
henryb0i
Posts: 4
Joined: Wed May 15, 2019 9:36 am

Unable to install Linux NPRE Agent

Post by henryb0i »

Hello, I get an error when i try to install the Linux agent on my ubuntu 16.04 installed on a raspberry pi

This is an extract of the error that was seen
NRPE-POST
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
sed: can't read /etc/xinetd.d/nrpe: No such file or directory

real 0m37.707s
user 0m14.420s
sys 0m2.980s
INSTALLING EXTRA PLUGINS...

real 0m0.102s
user 0m0.000s
sys 0m0.000s
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
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'

Attached is the install.log file.

Thanks for your help
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Unable to install Linux NPRE Agent

Post by benjaminsmith »

Hi Henry,

What method did you use to install NRPE? The server is probably missing the required packages, you can install them and try again:

Code: Select all

apt-get update
apt-get install -y autoconf automake gcc libc6 libmcrypt-dev make libssl-dev wget
Reference:
NRPE - How To Install NRPE v3 From Source

If this does not work, please post the install log again. Thanks.
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!
henryb0i
Posts: 4
Joined: Wed May 15, 2019 9:36 am

Re: Unable to install Linux NPRE Agent

Post by henryb0i »

Hi Benjamin,

Thanks for your feedback.

I ran the commands sucessfully without any errors. Then tried to install the agent again but it failed with this "The script that failed was: './A-subcomponents'"

Attached are the logs. Thanks for your support.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Unable to install Linux NPRE Agent

Post by benjaminsmith »

Hi Henry,

Still seeing the same errors in the install log:
checking for SSL libraries... configure: error: Cannot find ssl libraries
make: *** No rule to make target 'all'. Stop.
make: *** No rule to make target 'install'. Stop.
NRPE-POST
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
It looks like it is still missing openssl-devel. Are you using the install script or compiling from source?
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!
henryb0i
Posts: 4
Joined: Wed May 15, 2019 9:36 am

Re: Unable to install Linux NPRE Agent

Post by henryb0i »

Hi Benjamin,

i am carrying out the install via command line using the steps on the link below...

https://assets.nagios.com/downloads/nag ... _Agent.pdf

Do you suggest to manually install the openssl-devel ? How do i do that ?

Kind Regards
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Unable to install Linux NPRE Agent

Post by benjaminsmith »

Hi Henry,

Please try follow the documentation for compiling from source for Debian / Raspbian on this page.

https://support.nagios.com/kb/article.p ... 5#Raspbian
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!
henryb0i
Posts: 4
Joined: Wed May 15, 2019 9:36 am

Re: Unable to install Linux NPRE Agent

Post by henryb0i »

Hello Benjamin,

I followed the script suggested. All commands ran successfully, But when i tried to install the Agent again it failed with the same error message.

This time things are different..
On Nagios Server, it could connect to the System but cannot monitor the applications installed on the system. After a restart there was no connection anymore.

When i try to stop and start the "nrpe" service.. this is the reply i get below...
May 20 12:40:59 rasp-desktop systemd[1]: Started Nagios Remote Plugin Executor.
May 20 12:40:59 rasp-desktop nrpe[13449]: Starting up daemon
May 20 12:40:59 rasp-desktop nrpe[13449]: Cannot write to pidfile '/var/run/nrpe.pid' - check your privileges.
May 20 12:40:59 rasp-desktop systemd[1]: nrpe.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 20 12:40:59 rasp-desktop systemd[1]: nrpe.service: Unit entered failed state.
May 20 12:40:59 rasp-desktop systemd[1]: nrpe.service: Failed with result 'exit-code'.
Other troubleshooting steps i took

I granted nagios root permission (sudo usermod -a -G root nagios) so that it could access the "/var/run" folder

After restarting the OS.. i lost the instal.log file. Should i run the install again and when it fails collect and submit the install.log file for your analysis ?

Kind Regards
Henry
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Unable to install Linux NPRE Agent

Post by benjaminsmith »

Hi Henry,

Is xinetd running on the server? Try re-starting xinetd and nrpe:

Code: Select all

service xinetd restart
service nrpe restart
Next, check the status:

Code: Select all

service xinetd status
service nrpe status
Is it running or are you getting the same error message?
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!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to install Linux NPRE Agent

Post by ssax »

Yes, but please delete and re-extract the install director first and re-run it, make sure you installed the openssl-devel package, and then attach the install.log.
Locked