Nagios Error: nrpe.service: main process exited, status=2/INVALIDARGUMENT
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
Interesting Articles on Kubernetes:
Kubernetes : Kubernetes Node Management, Maintenance, Delete
How to add a New Worker Node to a existing kubernetes Cluster
MinIO Client Installation and Quickstart
PLEG is not healthy: Kubernetes Worker Node is in "NotReady" state
Backup MySQL databases in Kubernetes
How to Run Automated Tasks in Kubernetes with a cronjob
How to Completely remove Kubernetes
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.pid_file=/var/run/nrpe/nrpe.pid
/bin/systemctl restart nrpe.service
3. Check the status.
/bin/systemctl status nrpe.service
Interesting Articles on Kubernetes:
Kubernetes : Kubernetes Node Management, Maintenance, Delete
How to add a New Worker Node to a existing kubernetes Cluster
MinIO Client Installation and Quickstart
PLEG is not healthy: Kubernetes Worker Node is in "NotReady" state
Backup MySQL databases in Kubernetes
How to Run Automated Tasks in Kubernetes with a cronjob
How to Completely remove Kubernetes
Thanks , worked
ReplyDelete