Solved

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

Posted on 2008-06-24
8
2,678 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 2

Expert Comment

by:thefaza
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:IT-Reactrix
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

8 Experts available now in Live!

Get 1:1 Help Now