Ran linux-nrpe-agent fullinstall script on Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
riahc3
Posts: 79
Joined: Thu Apr 05, 2018 9:36 am

Ran linux-nrpe-agent fullinstall script on Nagios XI

Post 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?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked