Nagios-Nrpe-Server Won't Start
Re: Nagios-Nrpe-Server Won't Start
Both the nrpe_local.cfg file and the nrpe.d directory are empty.
Re: Nagios-Nrpe-Server Won't Start
cs_nagcc,
try this:
Regards,
-Yancy
How have you tried starting the NRPE daemon? I don't see anything wrong in nrpe.cfg that would cause it fail either.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.
try this:
Code: Select all
sudo /etc/init.d/nagios-nrpe-server stop Code: Select all
sudo /etc/init.d/nagios-nrpe-server start -Yancy
Re: Nagios-Nrpe-Server Won't Start
Also, check your /var/log/syslog for error messages when your start nrpe
-Yancy
Code: Select all
cat /var/log/syslog Re: Nagios-Nrpe-Server Won't Start
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.
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
Lets see if you have multiple NRPE installations, or that the wrong config is being loaded:
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
yum install mlocate
locate nrpe.cfgIf 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
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!
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!