Cannot start WMI Explorer

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
DipakBetai
Posts: 7
Joined: Thu May 10, 2007 11:32 pm

Cannot start WMI Explorer

Post by DipakBetai »

I am using hostmonitor 6.80 version.
OS : Windows XP + SP2.

I am trying to create test for measuring free memory available and I using WMI Test method.

Query I am using is :
[b]Select FreePhysicalMemory from Win32_OperatingSystem[/b]

When I click on the button after submitting query, it says
[b]Cannot Start WMI Explorer
Cannot retrieve error description (error #193).[/b]

I have checked for WMI related help in ks-soft documentation and tried the methods mentioned on
[b]http://www.ks-soft.net/hostmon.eng/wmi/index.htm[/b]

But still I am seeing same error message.

Pls. suggest.

Thanks in advance.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Please, ensure the WMI Explorer is installed and located in HostMonitor's folder. If not, you may start HostMonitor's installation program, select "Custom" installation package and install "WMI Explorer" separately. In case it is installed already, could you try to launch it? Probably, executable file is corrupted and you have to reinstall "WMI Explorer". What account do you use to start HostMonitor? Does it have necessary rights on HostMonitor's folder? We recommend to start HostMonitor under admin account.

Actually, WMI Explorer is designed to tune WMI queries. In your case, you know exact query, so you do not need WMI Explorer at all. Just copy "Select FreePhysicalMemory from Win32_OperatingSystem" into "Query" input box of "Test Properties" window of the "WMI" test and click "OK" button.

Regards,
Max
DipakBetai
Posts: 7
Joined: Thu May 10, 2007 11:32 pm

Post by DipakBetai »

Max,

Thanks for the reply.
Actually I know the exact query. It is
Select FreePhysicalMemory from Win32_OperatingSystem

But when I enable the test it continuously gives bad status while actually there is memory available.

At the same time if I select performance counter testing method and select memory it gives proper status result.

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

Post by KS-Soft »

Normally "Bad" status means WMI query was executed, retrieved value fits your alert condition.
So, what exactly is the problem? May we see your test settings and Reply value of the test? You may export test settings using menu "File" -> "Export into text file".

Regards
Alex
DipakBetai
Posts: 7
Joined: Thu May 10, 2007 11:32 pm

Post by DipakBetai »

;-----------------------------------------------------------------------------
;- HostMonitor`s export/import file -
;- Generated by HostMonitor at 5/14/2007 12:01:54 AM -
;- Source file: C:\Documents and Settings\HP_Administrator\My Documents\List2.hml-
;- Generation mode: Selected_Tests -
;-----------------------------------------------------------------------------


; ------- Test #01 -------


Method = WMI
;--- Common properties ---
;DestFolder = Root\Production\Shooter Servers\TERA TESTING\
Title = WMI: FreePhysicalMemory MASTER
Disabled = Yes
Comment = localhost: Select FreePhysicalMemory from Win32_OperatingSystem
RelatedURL =
ScheduleMode= Regular
Schedule = 7 Days, 24 Hours
Interval = 20
Alerts = Dipak
ReverseAlert= Yes
UnknownIsBad= Yes
WarningIsBad= Yes
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
;--- Test specific properties ---
Host = localhost
NameSpace = root\cimv2
Query = Select FreePhysicalMemory from Win32_OperatingSystem
SumMode = any ...
CompareMode = LessThan
CompareVal = 20000
NoResStatus = Unknown

;-----------------------------------------------------------------------------
; Exported 1 items
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

HostMonitor shows you "Bad" status, because "Reverse alert" option is enabled. Please, disable it to make it work properly.
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... tm#Reverse
=================================
Reverse alert
When this option is selected, HostMonitor regards test results that are normally considered benign, as abnormal ones, and vice versa.
=================================

Regards,
Max
DipakBetai
Posts: 7
Joined: Thu May 10, 2007 11:32 pm

Post by DipakBetai »

Max,

Yes I have unchecked Reverse Alert.
It is working now for localhost.

For other machie it is still giving status as bad, but that is due to security reasons.
I need to check for security.

Thanks,

Dipak
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

DipakBetai wrote:For other machie it is still giving status as bad, but that is due to security reasons.
I need to check for security.
You may specified account for WMI tests for the remote machines using Connection manager: http://www.ks-soft.net/hostmon.eng/mfra ... htm#conmgr

Also, following articles might be helpful:
http://www.microforge.net/kb/62
http://www.microforge.net/kb/39
http://msdn2.microsoft.com/en-us/library/aa393266.aspx
http://msdn2.microsoft.com/en-us/library/aa389286.aspx

Regards,
Max
DipakBetai
Posts: 7
Joined: Thu May 10, 2007 11:32 pm

WMI security

Post by DipakBetai »

Max,

WMI based queries when run on localhost gives proper results. But for other machines it gives access denied errors.

In the documentation it is given that this is security related which can be modified from My Computer, Manage, Service & Applications, WMI Control.

I had created a test enviornment with a win2k AD domain and added a XP prof workstation to that domain. Then it directly allowed to monitor XP PRof ( CPU, Memory ) using WMI method from win2k server. So my understanding is that it used Windows authentication method.

Is it possible if I don't have domain authentication model.
Workgroup or some other method.

Thanks,

Dipak
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: WMI security

Post by KS-Soft Europe »

DipakBetai wrote:I had created a test enviornment with a win2k AD domain and added a XP prof workstation to that domain. Then it directly allowed to monitor XP PRof ( CPU, Memory ) using WMI method from win2k server. So my understanding is that it used Windows authentication method.
Correct.
DipakBetai wrote:Is it possible if I don't have domain authentication model. Workgroup or some other method.
Actualy, you may create the same account (not domain admin account) on each machine, you want to monitor and specify this account for "WMI" tests in "Connection manager". It should work. Another solution is to use Remote Monitoring Agent (RMA). You may install RMA on the server, you want to monitor and RMA will perform WMI query locally.

Regards,
Max
DipakBetai
Posts: 7
Joined: Thu May 10, 2007 11:32 pm

Post by DipakBetai »

I have tried using same account on each machine and specified it in "Connection manager". Still when I try WMI explorer in hostmonitor for a remote machine it says Access Denied.

I have installed RMA on XP Prof.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

DipakBetai wrote:I have installed RMA on XP Prof.
Have you read that article: http://www.microforge.net/kb/62

So, you want to monitor XP based comp and install RMA on that machine? In such case you may specify "localhost" (localhost for RMA) into "Host" input box and select an agent from "Test By" dropdown in "Test properties" window of "WMI" test method What account have you specified to start RMA service? You may specify admin account using Standard Services applet: Start > Run > Services.msc > KS Remote Monitoring Agent > Log On tab.

Regards,
Max
DipakBetai
Posts: 7
Joined: Thu May 10, 2007 11:32 pm

Post by DipakBetai »

Max,

Got it now.

Thanks

Dipak
Post Reply