WMI Error confused

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

WMI Error confused

Post by vhoover »

I am monitoring a few windows servers that have mount points attached. They are all MSSQL servers. Two are Windows Server 2003 R2 with MSSQL 2005 and default instances and two are Windows 2008 R2 with MSSQL2008 and named SQL instances. All return correct metrics except one. It is one of the 2008 servers. The errors I am getting are:

UNKNOWN - The WMI query had problems. The error text from wmic is: [wmi/wmic.c:196:main()] ERROR: Login to remote object.

I have verified that each server is configured to allow WMI exactly the same. They have the same user, same password, same permissions, same group membership. However, there is no luck. I have tried to run it with a domain admin account and still no luck. The account it uses is a local administrator with permissions to the Root of WMI, is part of the the DCOM group, Performance Log Users group, and Performance Monitoring Users group. When I run the wmi error code I receive the following response:

The operating system cannot run this application program.

Does anybody have any thoughts, on what is going on and how I might resolve it?
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: WMI Error confused

Post by yancy »

vhoover,

Can you test using WBEMtest and verify you can connect to the WMI provider remotely for a different Windows machine?

start > run > wbemtest

Thanks,

-Yancy
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

Re: WMI Error confused

Post by vhoover »

That server is accepting WMI queries, but the error still persists. I have tried from NagiosXI from two different accounts and still no luck. but if I try from SQL Server Mgmt Studio on my local box it works fine.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: WMI Error confused

Post by yancy »

Can you post the example wmic query command you're using. Omit user credentials if needed.

Also, ensure that if you're using a domain name it's defined like this:

Code: Select all

domain/user

NOT domain\user
-Yancy
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

Re: WMI Error confused

Post by vhoover »

It ended up being a symptom of a bigger issue (an OS related issue), all other uses of the check_wmi_plus appear to work without issue.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: WMI Error confused

Post by sreinhardt »

did you manage to get it worked out then, or still having issues we can assist with?
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.
vhoover
Posts: 123
Joined: Mon Sep 09, 2013 12:17 pm

Re: WMI Error confused

Post by vhoover »

I believe it has been worked out, thanks.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: WMI Error confused

Post by slansing »

Excellent, we will close this thread for now.
Locked