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
Issue with NRPE plugin
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Issue with NRPE plugin
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
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
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.
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Issue with NRPE plugin
You're a wild man 
This is why that wasn't my wild guess:
Try it anyway please mazzi93 and report back.
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 nrpeRe: Issue with NRPE plugin
Rats. Wild guesses are like wild horses. It looks great on TV, but hurts in real life. 
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Issue with NRPE plugin
@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. 
Former Nagios Employee.
me.
me.