Nagios is a free opensource monitoring system. We get this error on a Nagios rhel7 client, while configuring it for monitoring. The nrpe service could not start due to following error.
Error:
Jan 29 06:29:12 solr-node1 nrpe[101779]: Cannot write to pidfile '/var/run/nrpe.pid' - check your privileges.
Jan 29 06:29:12 solr-node1 systemd[1]: nrpe.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Solution:
1. Please change the "pid_file=/var/run/nrpe.pid" in /etc/nagios/nrpe.cfg to following.
# PID FILE
pid_file=/var/run/nrpe/nrpe.pid
2. Restart the nrpe service.
/bin/systemctl restart nrpe.service
3. Check the status.
/bin/systemctl status nrpe.service
Error:
Nagios |
Jan 29 06:29:12 solr-node1 nrpe[101779]: Cannot write to pidfile '/var/run/nrpe.pid' - check your privileges.
Jan 29 06:29:12 solr-node1 systemd[1]: nrpe.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Solution:
1. Please change the "pid_file=/var/run/nrpe.pid" in /etc/nagios/nrpe.cfg to following.
# PID FILE
pid_file=/var/run/nrpe/nrpe.pid
2. Restart the nrpe service.
/bin/systemctl restart nrpe.service
3. Check the status.
/bin/systemctl status nrpe.service
0 Comments