NetXMS Support Forum

English Support => General Support => Topic started by: technak on March 09, 2011, 03:09:19 PM

Title: WMI method call
Post by: technak on March 09, 2011, 03:09:19 PM
Hello,
I want to monitor one of my https site and I decided for WMI but if I want to check application status I need to call WMI method GetStatus as in included screenshots. Is it possible to call it via standard WMI.Query() ? Now I am using external paramater which call my vbs script it is working fine but if it can be done via WMI.Query it will be better :-)

Thanks and regards,
MK
Title: Re: WMI method call
Post by: Victor Kirhenshtein on March 17, 2011, 10:28:42 AM
Hi!

First of all, I'm not an expert in WMI - so maybe I'm wrong. But what I understand it, it's not possible to call WMI methods using WQL - and WMI.Query is based on executing WQL queries. It is possible to create another parameter for WMI subagent, WMI.Call, which will return result of calling given WMI method. I add this to my to-do list, but because WMI is almost unknown area for me, it may take some time until I implement this.

Best regards,
Victor