Page 1 of 2

Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 17, 2013 8:43 am
by cs_nagcc
I'm trying to setup a new Nagios server and point the various remote servers to it. I'm having issues with the nagios-nrpe-server not starting/restarting on a particular server running Ubuntu 11.04 I've tried uninstalling/reinstalling nagios/nrpe numerous times without success. The confusing part is the old Nagios monitoring server shows this server/services as being up, regardless of what I do to the nagios-nrpe-server service. Only when I remove the nagios-plugins do I see a change on the old monitoring server.

I found two bugs relating to this issue, but both solutions don't appear to resolve the problem.

https://bugs.launchpad.net/ubuntu/+sour ... bug/838437
http://askubuntu.com/questions/82631/wh ... 941-causes


Any insight would be much appreciated. Thanks!

Re: Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 17, 2013 10:19 am
by yancy
cs_nagcc,

Did you install NRPE from source or using APT?


Regards,

-Yancy

Re: Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 17, 2013 10:32 am
by cs_nagcc
Yancy,

I've actually tried both ways in trying to resolve the issue. Is there a more preferred/updated way?

Re: Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 17, 2013 11:19 am
by yancy
cs_nagcc,

installing from your distributions repository is usually preferred (unless the repo version is buggy).

can you check if the service is currently running

Code: Select all

 sudo service --status-all | grep nrpe 
If the service is currently running, is it listening on a port?

Code: Select all

 sudo netstat -atnp 
if these two items work, are you able to run this from Nagios

Code: Select all

 /usr/local/nagios/libexec/nrpe -h "ip address of client" 

regards,

-Yancy

Re: Nagios-Nrpe-Server Won't Start

Posted: Thu Jan 17, 2013 1:02 pm
by cs_nagcc
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.

When I try to run the check_nrpe command from the new Nagios server to the remote host, I get "Could not complete SSL handshake". I am assuming this is related to the nagios-nrpe-server not running.

If I run the same check from the old Nagios server, I receive the expected NRPE version.


Thank you for your help Yancy!

Re: Nagios-Nrpe-Server Won't Start

Posted: Tue Jan 22, 2013 3:18 pm
by slansing
Do you have your new server's IP in the allowed_hosts section of NRPE.cfg? On the server you are attempting to contact?

Re: Nagios-Nrpe-Server Won't Start

Posted: Wed Jan 23, 2013 8:01 am
by cs_nagcc
Yes, the new Nagios server's IP address was added to the NRPE.cfg file. I switched about 25-30 other servers over to our new Nagios monitoring system with no issues whatsoever, but this one just will not cooperate.

Re: Nagios-Nrpe-Server Won't Start

Posted: Wed Jan 23, 2013 10:25 am
by slansing
Can you post a copy of the NRPE.cfg file on the remote host? If you are initializing using xinetd, also post the /etc/xinet.d./nrpe file. Thanks!

Re: Nagios-Nrpe-Server Won't Start

Posted: Wed Jan 23, 2013 10:58 am
by cs_nagcc
I am not using xinetd. Attached is the file.
nrpe.txt
(7.43 KiB) Downloaded 430 times

Re: Nagios-Nrpe-Server Won't Start

Posted: Wed Jan 23, 2013 5:26 pm
by abrist
You have multiple uncommented include statements at the bottom of the file, any chance that there are some other setting in those files?

Code: Select all

# local configuration:
#	if you'd prefer, you can instead place directives here
include=/etc/nagios/nrpe_local.cfg

# 
# you can place your config snipplets into nrpe.d/
include_dir=/etc/nagios/nrpe.d/