Page 1 of 1

Ran linux-nrpe-agent fullinstall script on Nagios XI

Posted: Mon Jul 30, 2018 5:38 am
by riahc3
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?

Re: Ran linux-nrpe-agent fullinstall script on Nagios XI

Posted: Mon Jul 30, 2018 3:21 pm
by npolovenko
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:

Code: Select all

service nrpe stop
And restart the xinetd-nrpe with:

Code: Select all

service xinetd restart 
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