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

Nagios-Nrpe-Server Won't Start

Post 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!
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Nagios-Nrpe-Server Won't Start

Post by yancy »

cs_nagcc,

Did you install NRPE from source or using APT?


Regards,

-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 actually tried both ways in trying to resolve the issue. Is there a more preferred/updated way?
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Nagios-Nrpe-Server Won't Start

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

Re: Nagios-Nrpe-Server Won't Start

Post 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!
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 »

Do you have your new server's IP in the allowed_hosts section of NRPE.cfg? On the server you are attempting to contact?
cs_nagcc
Posts: 17
Joined: Fri Dec 28, 2012 7:35 am

Re: Nagios-Nrpe-Server Won't Start

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

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

Re: Nagios-Nrpe-Server Won't Start

Post by cs_nagcc »

I am not using xinetd. Attached is the file.
nrpe.txt
(7.43 KiB) Downloaded 430 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios-Nrpe-Server Won't Start

Post 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/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked