Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I am trying to setup nagios nrpe monitoring, everything looks good and when I run config check I get 0 errors. However, a disk check that is going through NRPE plugin, throws me the following error:
It's possible that the nagios user has hit the 'max user processes' limit.
Does this error happen if the nagios user tries to run any other process?
Are there any log messages in /var/log/messages?
TwitsBlog Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
While I was starting nrpe service , i was getting "nagios dead but subsys locked"
**Resolution 1: In that case I tried to delete nrpe.pid under /var/run/nrpe and lock file under /var/lock/subsys - But it has not solved my problem
Then I checked the logs under /var/log/messages because nagios was not creating separate log file and observed as below:**
*Mar 23 00:36:48 localhost kernel: readahead-collector: starting delayed service auditd
Mar 23 00:36:49 localhost auditd[1273]: Started dispatcher: /sbin/audispd pid: 1275
Mar 23 00:36:49 localhost audispd: No plugins found, exiting
Mar 23 00:36:49 localhost auditd[1273]: Init complete, auditd 2.0.4 listening for events (startup state enable)
Mar 23 00:36:49 localhost kernel: readahead-collector: sorting
Mar 23 00:36:49 localhost kernel: readahead-collector: finished
Mar 23 00:38:59 localhost nrpe[1349]: Starting up daemon
Mar 23 00:38:59 localhost nrpe[1349]: Cannot write to pidfile '/var/run/nrpe/nrpe.pid' - check your privileges.
Mar 23 00:38:59 localhost nrpe[1349]: Bind to port 5666 on 192.168.137.2 failed: Cannot assign requested address.
Mar 23 00:38:59 localhost nrpe[1349]: Cannot bind to any address.*
**From the log file it was clear that nagios was not able to write .pid , I observed that nrpe directory was deleted accidentally , I created it manually under /var/run
After That, I again restarted nrpe but got same error, I observed the logs again:**
*Mar 23 00:50:26 localhost nrpe[1502]: Starting up daemon
Mar 23 00:50:26 localhost nrpe[1502]: Bind to port 5666 on 192.168.137.2 failed: Cannot assign requested address.
Mar 23 00:50:26 localhost nrpe[1502]: Cannot bind to any address.
Mar 23 00:51:22 localhost nagios: SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;4;connect to address 127.0.0.1 and port 80: Connection refused*
**Solution : Then I opened the /etc/nagios/nrpe.cfg file and changed the server address to nagios client IP as below(By mistake I had mentioned the nagios server address i.e 192.168.137.2):
server_address=192.168.137.3**
**Restarted the nrpe service and it got restarted successfully**
Logs output:
*Mar 23 00:52:13 localhost nrpe[1526]: Starting up daemon
Mar 23 00:52:13 localhost nrpe[1526]: Server listening on 192.168.137.3 port 5666.
Mar 23 00:52:13 localhost nrpe[1526]: Listening for connections on port 0
Mar 23 00:52:13 localhost nrpe[1526]: Allowing connections from: 192.168.137.2*