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
WMI Service Test 2008 R2 Boxes
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
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
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
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