Page 1 of 3

Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 6:05 am
by jamesc23
Hi,

We just did a bulk upgrade on all Windows servers to latest NSClient++. We have a weird problem where several servers are not able to connect to the Nagios server. Running check_nt or check_nrpe returning socket timeout after 10 seconds. The rest of the servers are OK. We have a mixed of 2008, 2012 and 2012 R2.

Can anyone shed some light on this please?
Thanks.

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 6:35 am
by karthek
Did you try increasing the socket Timeout? Because sometimes the plugin will take longer time to respond than the default 10sec.

I would suggest to increase the timeout and check.

here are few troubleshooting steps to common problems in NRPE:
https://assets.nagios.com/downloads/nag ... utions.pdf

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 6:50 am
by jamesc23
Hi,

I did try -t 20 but still getting time out, this is with both check_nrpe and check_nt. It doesn't make sense that the rest of the servers are fine and only several aren't. We have 200+ servers.

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 9:42 am
by hsmith
jamesc23 wrote:Hi,

I did try -t 20 but still getting time out, this is with both check_nrpe and check_nt. It doesn't make sense that the rest of the servers are fine and only several aren't. We have 200+ servers.
How exactly is this happening?

Are the same servers the ones having problems each time?

Is it a 100% failure rate?

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 6:53 pm
by jamesc23
So,

I ran the commands manually from server as well as checking them from web based console. All services like CPU, uptime, memory, etc. are reporting CRITICAL - Socket timeout after 10 seconds.

Yes, all of the servers that aren't able to report back to the server are having the same issues.

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 7:18 pm
by Box293
Sounds like one of the modules is not loaded.

I've seen NSClient++ blow away the ini file in upgrades.

Here are some steps to re-create the ini file:

http://sites.box293.com/nagios/guides/n ... t-ini-file

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 8:20 pm
by jamesc23
OK I will try that bit later.

I have another issue where I need to add external script to nsclient.ini. I've copied the commands from the old ini but they don't seem to be working with the new version.

What's changed?

Edit: Please ignore. it's working now. sorry.

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 8:23 pm
by Box293
The CheckExternalScripts module might not be enabled. Steps to enable this are in my previous post.

Paste your ini file here and let us know which command is a problem.

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 8:42 pm
by jamesc23
It was this that was missing from the ini file

[/settings/external scripts/scripts]

Re: Servers not reporting after client upgrade

Posted: Tue Aug 18, 2015 8:49 pm
by Box293
Yep that'll cause problems.

I like using those commands that are in the link I posted. Specifically the --add-defaults can prevent issues in the future.