Page 1 of 1

WMI Error after Windows Restart

Posted: Tue Aug 27, 2019 7:25 am
by sagesoft
Hi

Just want to ask assistance we are encountering when windows restart, an "unknown error" in wmi is encountered after restart during the weekend. Refer attached file for the debug output.

Re: WMI Error after Windows Restart

Posted: Tue Aug 27, 2019 1:56 pm
by mcapra
Simply put, the plugin's execution timed out. The default timeout for the check_wmi_plus plugin is 15 seconds.

You could start by increasing the timeout by leveraging the -t argument. Try cranking it up to 60 seconds and see if that produces a different result:

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H <address> -u <username> -p <password> -t 60 -m checkcpu -d
There's also this general purpose WMI troubleshooting document with some steps:
https://support.nagios.com/kb/article/n ... g-579.html

You might also try using the FQDN (it's complicated) for the address instead of the IP address. Sometimes with AD accounts used for authentication, Windows gets fussy if you're attempting to authenticate against the IP address rather than the domain.

Re: WMI Error after Windows Restart

Posted: Tue Aug 27, 2019 2:38 pm
by benjaminsmith
Thanks @mcapra!

As Matt mentioned, increase the timeout settings and let us know that resolves the issue for you.

Re: WMI Error after Windows Restart

Posted: Tue Aug 27, 2019 7:58 pm
by sagesoft
@mcapra and @benjaminsmith

Thanks for your prompt response. Since this is only encountered during weekend when the server restart we will try this and let you know.

Thank you very much.

Re: WMI Error after Windows Restart

Posted: Wed Aug 28, 2019 7:38 am
by scottwilkerson
brezner wrote:@mcapra and @benjaminsmith

Thanks for your prompt response. Since this is only encountered during weekend when the server restart we will try this and let you know.

Thank you very much.
Sounds good!