Servers not reporting after client upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Servers not reporting after client upgrade

Post 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.
karthek
Posts: 64
Joined: Fri Aug 14, 2015 5:55 am
Location: INDIA

Re: Servers not reporting after client upgrade

Post 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
"Machines don't make mistakes, we do."
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Servers not reporting after client upgrade

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Servers not reporting after client upgrade

Post 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?
Former Nagios Employee.
me.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Servers not reporting after client upgrade

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Servers not reporting after client upgrade

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Servers not reporting after client upgrade

Post 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.
Last edited by jamesc23 on Tue Aug 18, 2015 8:24 pm, edited 1 time in total.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Servers not reporting after client upgrade

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jamesc23
Posts: 82
Joined: Thu Jan 15, 2015 11:55 pm

Re: Servers not reporting after client upgrade

Post by jamesc23 »

It was this that was missing from the ini file

[/settings/external scripts/scripts]
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Servers not reporting after client upgrade

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked