Nagios-Nrpe-Server Won't Start
Nagios-Nrpe-Server Won't Start
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!
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
cs_nagcc,
Did you install NRPE from source or using APT?
Regards,
-Yancy
Did you install NRPE from source or using APT?
Regards,
-Yancy
Re: Nagios-Nrpe-Server Won't Start
Yancy,
I've actually tried both ways in trying to resolve the issue. Is there a more preferred/updated way?
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
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
If the service is currently running, is it listening on a port?
if these two items work, are you able to run this from Nagios
regards,
-Yancy
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 Code: Select all
sudo netstat -atnp Code: Select all
/usr/local/nagios/libexec/nrpe -h "ip address of client" regards,
-Yancy
Re: Nagios-Nrpe-Server Won't Start
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!
[ ? ] 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
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
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
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
I am not using xinetd. Attached is the file.
Re: Nagios-Nrpe-Server Won't Start
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.
"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.