I wanted Nagios XI server a to monitor a Nagios XI server b and that Nagios XI server b also to monitor Nagios server a
On server B I ran the fullinstall script but now I get a
Cannot write to pidfile '/var/run/nrpe.pid' - check your privileges.
nrpe.service: main process exited, code=exited, status=2/INVALIDARGUMENT
And on top of that, basic commands like netstat, lsof, etc. are not working.
What is wrong?
Ran linux-nrpe-agent fullinstall script on Nagios XI
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Ran linux-nrpe-agent fullinstall script on Nagios XI
Hello, @riahc3. Nagios XI already comes with a preinstalled NRPE agent. It is xinetd based. So most likely you installed a duplicate nrpe agent, but another one was already running and using the pid file. So stop the new nrpe agent with:
And restart the xinetd-nrpe with:
The only difference between running a standalone based nrpe and xinetd based nrpe is that you need to add the "allowed hosts" in a different file -> /etc/xinetd.d/nrpe.
https://support.nagios.com/kb/article/n ... e-615.html
Code: Select all
service nrpe stopCode: Select all
service xinetd restart https://support.nagios.com/kb/article/n ... e-615.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.