WMI Service Test 2008 R2 Boxes

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Support
Posts: 5
Joined: Fri Mar 27, 2009 3:54 am

WMI Service Test 2008 R2 Boxes

Post by Support »

Hello,

We monitor a wide range of servers and have noitced with 2008 R2 Servers that the WMI Select State Win_32_Service where state= "Stopped" test is 90% of the time returning a unknown state. This is happening across all our 2008 R2 servers and was wondering if you had seen this before and are able to offer a fix at all?

Thanks
Liam
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Actually it should return Unkown status 100% of the time because you made at least 2 mistakes in the query.

If you use correct format of WQL query and correct name of the class, it should work fine. At least it works fine on our systems.

Query should look like
Select State from Win32_Service where state="Stopped"

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

PS
When test fails you should see error description in Reply field of the test. So you should know what is wrong.

Regards
Alex
Support
Posts: 5
Joined: Fri Mar 27, 2009 3:54 am

Post by Support »

Hello Sorry query is

select state from Win32_Service where state="stopped" and startmode="auto"

we are seeing nothing in the reply field at all.

Thanks
Liam
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This means test works fine but returns empty dataset because all services with "auto" mode already started.
WMI test provides option for such case.
For more information please read the manual or visit our web site at
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#wmi

Quote from the manual
==================
If instance not available, set [Unknown/Bad/Ok] status
This option allows you to choose test status that should be used when HostMonitor is able to connect to the system and execute WMI query but query returns empty data set. E.g. you have specified SELECT HandleCount FROM Win32_Process WHERE name='iexplore.exe' query; this query will return empty data set if 'iexplore.exe' process is not started. You may choose one of the following statuses: Unknown, Bad, Ok
Please note: If HostMonitor cannot connect to the host or WMI query fails, HostMonitor will set Unknown status and display error description in Reply field of the test.
==================

Regards
Alex
Support
Posts: 5
Joined: Fri Mar 27, 2009 3:54 am

Post by Support »

Thanks for the help,

We have changed the test to if instance not avaliable set OK status and report if greater then 0

Thanks
Liam
Post Reply