Solved

How do I start Nagios Remote Plugin after IP address has been changed?

Posted on 2008-06-24
8
2,701 Views
Last Modified: 2012-06-21
After changing IP address and rebooting our Windows 2003 server, the Nagios Remote Plugin will not start.  Getting error:  "Services:  Could not start the Nagios Remote Plugin Executor for NT/W2k service on Local Computer.  Error 10049:  The requested address is not valid in its context."

Nagios is listening on port 5666 on the Windows 2003 server and noticed that this port is not showing when issuing command:  netstat -an.  How do I manually add this port so that Nagios will start?  Or how do we restart Nagios without adding this port.  I believe 5666 is a dynamic port so it should kick in when it is being called, but at this point, it is not..
0
Comment
Question by:IT-Reactrix
  • 5
  • 3
8 Comments
 
LVL 2

Expert Comment

by:thefaza
ID: 21863751
1. Check nrpe.cfg file if everything is ok
2. try to uninstall nrpe service: nrpe_nt.exe -u and install it again nrpe_nt -c nrpe.cfg -i
3. You can also try ssl version as well as non-ssl version (switches -i -n)
0
 
LVL 2

Expert Comment

by:thefaza
ID: 21863785
I made mistake: dont use -c together with -i
for installing service (ssl version) use: nrpe_nt.exe -i
or non-ssl version: nrpe_nt.exe -i -n
for starting nrpe use: nrpe_nt.exe -c nrpe.cfg
0
 

Author Comment

by:IT-Reactrix
ID: 21867630
Still getting "CHECK_NRPE: Socket timeout after 10 seconds. " for all the services it is monitoring on Nagios.  This may just take time to refresh.  I found that the ip address on nrpe.cfg was incorrect.  Changing that enabled the NRPE_NT service.  Now if Nagios can only see it as OK we should be good to go.  Or should I reboot the client to reflect the change??
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 2

Expert Comment

by:thefaza
ID: 21872163
There can few causes of this error:
1. firewall settings on client
2.nrpe_nt.exe service is not started
3. pure network connection so the timeout 10 seconds is not enaugh: try to run check_nrpe command with switch: -t 30 (it will increase the timeout to 30 seconds)
0
 

Author Comment

by:IT-Reactrix
ID: 21880607
thefaza:
1)  firewall is not enabled.
2)  nrpe_nt is running now after correcting ip address on nrpe.cfg.
3)  I don't see check_nrpe command available on the bin folder.

I tried starting service on your previous suggestion with command:  nrpe_nt.exe -c nrpe.cfg I got a list about nrpe and year it was made followed by the proper syntax to run nrpe.  I'm thinking the command did not enable the service.  So I manually started nrpe via services.msc.  Checking nrpe.log shows the following:  Looks promising but Nagios still shows "CHECK_NRPE: Socket timeout after 10 seconds."

2008-05-26 19:17:13; 2620; 7;Loaded config from: C:\Program Files\nrpe_nt.0.8-bin\bin\nrpe.cfg
2008-05-26 19:17:13; 2620; 7;Starting server thread...
2008-05-26 19:17:13; 5304; 7;Binding to 10.5.12.30
2008-05-26 19:17:13; 5304; 6;Listening on port 5666





0
 
LVL 2

Expert Comment

by:thefaza
ID: 21881469
check_nrpe  should be on Nagios server (default location is /usr/local/nagios/libexec/check_nrpe), this error: "CHECK_NRPE: Socket timeout after 10 seconds."
is just from check_nrpe command. Check_nrpe try to contact nrpe_nt service on monitored machine
Try to manually start check_nrpe command on Nagios server: check_nrpe -H MONITORED_HOST -t 30
read this document, it should help you:  http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
0
 
LVL 2

Accepted Solution

by:
thefaza earned 125 total points
ID: 21895614
One more thing:
check if in nrpe.cfg in section Allowed_Hosts You have address of your Nagios server
allowed_hosts=IP_of_your_nagios_server
0
 

Author Closing Comment

by:IT-Reactrix
ID: 31470434
Thank you thefaza.  It is both nrpe.cfg you mentioned above and the ip on the client need updated in our Nagios server to fix this issue.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now