Page 2 of 2

Re: Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 24, 2013 8:34 am
by cs_nagcc
Both the nrpe_local.cfg file and the nrpe.d directory are empty.

Re: Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 24, 2013 11:06 am
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

Re: Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 24, 2013 11:11 am
by yancy
Also, check your /var/log/syslog for error messages when your start nrpe

Code: Select all

 cat /var/log/syslog 
-Yancy

Re: Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 24, 2013 11:36 am
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.

Re: Nagios-Nrpe-Server Won't Start

Posted: Fri Jan 25, 2013 11:25 am
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

Re: Nagios-Nrpe-Server Won't Start

Posted: Fri Jan 25, 2013 1:10 pm
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!