Page 1 of 1
Issue with NRPE plugin
Posted: Fri Sep 18, 2015 4:19 am
by mazzi93
Good morning,
I have some problems with my nrpe daemon.
It's configuration seems be ok but the daemon doesn't start.
root@:~# /etc/rc.d/rc.nrpe restart
Stopping nrpe:Pid file /var/run/nrpe.pid not found.
Starting nrpe: done.
When I create a pid file for nrpe the starting command seems works, but the daemon doesn't work:
root@:~# ps -e|grep -i nrpe
root@:~#
Someone can help me?
Thanks
Marco
Re: Issue with NRPE plugin
Posted: Fri Sep 18, 2015 7:23 am
by jdalrymple
Start by sharing some additional info.
1) We need to know your operating system
2) It might be good to see your rc script
3) What method did you use to install nrpe
4) What happens when you try to start the nrpe daemon from the command line
5) Does anything show up in your syslog? (most likely /var/log/messages)
6) How are you verifying the daemon isn't starting?
I usually take a wild guess as to what might be happening, unfortunately in this case I don't even have enough information for a wild guess

Re: Issue with NRPE plugin
Posted: Fri Sep 18, 2015 8:06 am
by eloyd
I'm not afraid to take a wild guess.
Since you're not running it out of xinetd, you need to configure /usr/local/nagios/etc/nrpe.cfg and uncomment the "server_address" line to allow connections from your Nagios host.
There. That's my wild guess.
Re: Issue with NRPE plugin
Posted: Fri Sep 18, 2015 9:27 am
by jdalrymple
You're a wild man
This is why that wasn't my wild guess:
Code: Select all
[root@localhost bin]# ps -ef | grep nrpe
root 101643 106385 0 09:26 pts/0 00:00:00 grep --color=auto nrpe
[root@localhost bin]# grep allowed ../etc/nrpe.cfg
# that are allowed to talk to the NRPE daemon. Network addresses with a bit mask
# allowed_hosts=127.0.0.1
[root@localhost bin]# ./nrpe -c ../etc/nrpe.cfg -d
[root@localhost bin]# ps -ef | grep nrpe
nagios 101697 1 0 09:26 ? 00:00:00 ./nrpe -c ../etc/nrpe.cfg -d
root 101706 106385 0 09:26 pts/0 00:00:00 grep --color=auto nrpe
Try it anyway please mazzi93 and report back.
Re: Issue with NRPE plugin
Posted: Fri Sep 18, 2015 9:37 am
by eloyd
Rats. Wild guesses are like wild horses. It looks great on TV, but hurts in real life.

Re: Issue with NRPE plugin
Posted: Fri Sep 18, 2015 1:27 pm
by hsmith
@mazzi93, let us know when you get a chance. Feel free to provide any insight on wild horse philosophy if you have any as well.
