check_wmi plugin time-out

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ryan_terry
Posts: 4
Joined: Mon Jan 06, 2014 1:05 pm

check_wmi plugin time-out

Post by ryan_terry »

I have about 250 servers in my environment. I have about 15 hosts that use the check_wmi plugin to check service status on windows hosts. Several times a week (3-5 times) the plugin says it times out for about 2 minutes, then it responds again. I have this affects all hosts using check_wmi regardless of the user account or service being checked. I have verified that on the windows side nothing is going down, but for these brief periods it seems all WMI checks fail.

Any ideas?

Here is an example log entry:

Jan 6 09:50:31 xxxxxxxxx nagios: SERVICE ALERT: XXXXXXXXXXX;Sophos AntiVirus;UNKNOWN;SOFT;1;UNKNOWN - Plugin Timed out
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_wmi plugin time-out

Post by slansing »

This is to all of those WMI checked servers? Does anything happen with your active checks to these hosts such as a Host ping check?
ryan_terry
Posts: 4
Joined: Mon Jan 06, 2014 1:05 pm

Re: check_wmi plugin time-out

Post by ryan_terry »

Correct, all WMI checks fail, but other checks such as ping are just fine. It happens to every host that has the check_wmi plugin configured.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_wmi plugin time-out

Post by sreinhardt »

What level of access does your user account have that is performing these checks? Also if you are using a domain account you might need to use / instead of \, its a perl thing.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
ryan_terry
Posts: 4
Joined: Mon Jan 06, 2014 1:05 pm

Re: check_wmi plugin time-out

Post by ryan_terry »

Administrator accounts. One is a domain accoutn and one is a local account. They work 99% of the time, just have spots a few times a week where they stop. Both accounts stop at the same time, regardless if they are local accounts or domain accounts.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_wmi plugin time-out

Post by sreinhardt »

OK so its an intermittent issue, that normally works fine. What timeout do you presently have set for those checks? It might help to share a password\user\hostname censored service and command definition.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_wmi plugin time-out

Post by tmcdonald »

Is there any pattern to the timeouts? A certain day of the week or hour of the day?
Former Nagios employee
Locked