Issue with NRPE plugin

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.
Locked
mazzi93
Posts: 1
Joined: Fri Jul 18, 2014 3:59 am

Issue with NRPE plugin

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Issue with NRPE plugin

Post 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 :)
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Issue with NRPE plugin

Post 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.
Image
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

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Issue with NRPE plugin

Post by eloyd »

Rats. Wild guesses are like wild horses. It looks great on TV, but hurts in real life. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Issue with NRPE plugin

Post 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. ;)
Former Nagios Employee.
me.
Locked