Nagios-Nrpe-Server Won't Start

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.
cs_nagcc
Posts: 17
Joined: Fri Dec 28, 2012 7:35 am

Re: Nagios-Nrpe-Server Won't Start

Post by cs_nagcc »

Both the nrpe_local.cfg file and the nrpe.d directory are empty.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Nagios-Nrpe-Server Won't Start

Post by yancy »

cs_nagcc,
cs_nagcc wrote:The result of the first command shows that the nagios-nrpe-server is not running:

[ ? ] irqbalance
[ ? ] killprocs
[ ? ] module-init-tools
[ - ] nagios-nrpe-server
[ ? ] network-interface
[ ? ] network-interface-security
[ ? ] networking
[ ? ] ondemand

If I try to start it, I receive a message stating it is started, but the results above are still the same.
How have you tried starting the NRPE daemon? I don't see anything wrong in nrpe.cfg that would cause it fail either.

try this:

Code: Select all

 sudo /etc/init.d/nagios-nrpe-server stop 

Code: Select all

 sudo /etc/init.d/nagios-nrpe-server start 
Regards,

-Yancy
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Nagios-Nrpe-Server Won't Start

Post by yancy »

Also, check your /var/log/syslog for error messages when your start nrpe

Code: Select all

 cat /var/log/syslog 
-Yancy
cs_nagcc
Posts: 17
Joined: Fri Dec 28, 2012 7:35 am

Re: Nagios-Nrpe-Server Won't Start

Post by cs_nagcc »

Yancy,

I've tried the stop command and get the following:

start-stop-daemon: warning: failed to kill 22186: No such process

Running the start command states the nagios-nrpe-server started, but it still shows as not running in the services

The logs for nrpe show a "Network server bind failure (98: Address already in use)" after the "Starting up daemon" command:

Jan 24 11:34:08 services nrpe[22492]: Starting up daemon
Jan 24 11:34:08 services nrpe[22492]: Network server bind failure (98: Address already in use)


It appears the "stop" command is failing, but the nagios-nrpe-server service isn't running to begin with.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios-Nrpe-Server Won't Start

Post by slansing »

Lets see if you have multiple NRPE installations, or that the wrong config is being loaded:

Code: Select all

yum install mlocate

locate nrpe.cfg
Have you assured that these are not zombie processes? And that they are not duplicates?

If you are running from initd or xinetd stop them and then issue:

killall nrpe

Lets also make sure that something has not hijacked port 5666:

Code: Select all

netstat -apn | grep :5666
cs_nagcc
Posts: 17
Joined: Fri Dec 28, 2012 7:35 am

Re: Nagios-Nrpe-Server Won't Start

Post by cs_nagcc »

Slansing,

Thank you so much for your help. I believe the "killall nrpe" command was what helped the most. For some reason the start/stop commands just didn't seem to work, but as soon as I ran the killall nrpe, followed by the start, everything seemed to pick up!! It's nice to finally be able to get this thing up and running after numerous reinstalls.

Thank you everyone for all of your help!
Locked