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
Unable to install Linux NPRE Agent
Unable to install Linux NPRE Agent
You do not have the required permissions to view the files attached to this post.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Unable to install Linux NPRE Agent
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:
Reference:
NRPE - How To Install NRPE v3 From Source
If this does not work, please post the install log again. Thanks.
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Unable to install Linux NPRE Agent
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.
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.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Unable to install Linux NPRE Agent
Hi Henry,
Still seeing the same errors in the install log:
Still seeing the same errors in the install log:
It looks like it is still missing openssl-devel. Are you using the install script or compiling from source?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
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: Unable to install Linux NPRE Agent
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
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
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Unable to install Linux NPRE Agent
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Unable to install Linux NPRE Agent
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...
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
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...
Other troubleshooting steps i tookMay 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'.
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
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Unable to install Linux NPRE Agent
Hi Henry,
Is xinetd running on the server? Try re-starting xinetd and nrpe:
Next, check the status:
Is it running or are you getting the same error message?
Is xinetd running on the server? Try re-starting xinetd and nrpe:
Code: Select all
service xinetd restart
service nrpe restart
Code: Select all
service xinetd status
service nrpe status
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: Unable to install Linux NPRE Agent
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.