<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WMI Query to monitor eventviewer]]></title><description><![CDATA[<p dir="auto">Hi there,</p>
<p dir="auto">I´m using this WMI Query to monitor if a particular event happened on windows eventviewer.</p>
<p dir="auto">WMI.Query(root\CIMV2\, Select * from Win32_NTLogEvent Where Logfile = 'Application' and EventType = '1' and EventCode = '9006')</p>
<p dir="auto">The query works great fine, but in WMI it returns several Rows, and I believe that netxms doesn´t know how to deal with those results. So I tried to "Count", but in WMI Count is a property, and not a function. So I cannot make changes in WMI side.</p>
<p dir="auto">I´m looking for clarification if this is supported in Netxms, or if can I use a transformation script or something like this to get a number of rows, or a value that Netxms can understand and display.</p>
<p dir="auto">Ideas are great apreciated.</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://forum.netxms.org/topic/1424/wmi-query-to-monitor-eventviewer</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:51:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1424.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Oct 2011 12:53:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WMI Query to monitor eventviewer on Mon, 02 Sep 2013 16:48:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">It should be like this:</p>
<pre><code>WMI.Query(root\CIMV2\, Select * from Win32_NTLogEvent Where Logfile = 'System' and EventType = '3' and EventCode = '1020',%%count%%)
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/11184</link><guid isPermaLink="true">https://forum.netxms.org/post/11184</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 02 Sep 2013 16:48:37 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Query to monitor eventviewer on Mon, 02 Sep 2013 10:54:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/6290">WMI Query to monitor eventviewer</a>:</p>
<blockquote>
<p dir="auto">Hi!</p>
<p dir="auto">I have added special option to get number of rows in WMI query result set - if you give %%count%% as property name, agent will return number of rows.</p>
<p dir="auto">Best regards,<br />
Victor</p>
</blockquote>
<p dir="auto">in result - where i should give %%count%% ? What field of DCC?</p>
<pre><code>WMI.Query(root\CIMV2\, Select %%count%% from Win32_NTLogEvent Where Logfile = 'System' and EventType = '3' and EventCode = '1020')
</code></pre>
<p dir="auto">like this?</p>
]]></description><link>https://forum.netxms.org/post/11179</link><guid isPermaLink="true">https://forum.netxms.org/post/11179</guid><dc:creator><![CDATA[denser.ru]]></dc:creator><pubDate>Mon, 02 Sep 2013 10:54:51 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Query to monitor eventviewer on Mon, 14 Nov 2011 14:56:13 GMT]]></title><description><![CDATA[<p dir="auto">hi victor,</p>
<p dir="auto">what about snmp ? can you create something like this for snmp queries ?</p>
<p dir="auto">Best Regards,<br />
Lindeamon</p>
]]></description><link>https://forum.netxms.org/post/6295</link><guid isPermaLink="true">https://forum.netxms.org/post/6295</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Mon, 14 Nov 2011 14:56:13 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Query to monitor eventviewer on Sun, 13 Nov 2011 13:52:56 GMT]]></title><description><![CDATA[<p dir="auto">hi victor,</p>
<p dir="auto">there is no necessary need for now.<br />
i can wait for the new version.</p>
<p dir="auto">Best Regards,<br />
Lindeamon</p>
]]></description><link>https://forum.netxms.org/post/6293</link><guid isPermaLink="true">https://forum.netxms.org/post/6293</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Sun, 13 Nov 2011 13:52:56 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Query to monitor eventviewer on Sun, 13 Nov 2011 13:39:17 GMT]]></title><description><![CDATA[<p dir="auto">No, I do it today. Version 1.1.7 will include this feature. If it is needed right now, I van make cudtom build of agent.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6292</link><guid isPermaLink="true">https://forum.netxms.org/post/6292</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sun, 13 Nov 2011 13:39:17 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Query to monitor eventviewer on Sun, 13 Nov 2011 13:31:22 GMT]]></title><description><![CDATA[<p dir="auto">hi victor,</p>
<p dir="auto">was it implemented in v1.1.6 ?</p>
<p dir="auto">Best Regards,<br />
lindeamon</p>
]]></description><link>https://forum.netxms.org/post/6291</link><guid isPermaLink="true">https://forum.netxms.org/post/6291</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Sun, 13 Nov 2011 13:31:22 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Query to monitor eventviewer on Sun, 13 Nov 2011 09:17:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I have added special option to get number of rows in WMI query result set - if you give %%count%% as property name, agent will return number of rows.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6290</link><guid isPermaLink="true">https://forum.netxms.org/post/6290</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sun, 13 Nov 2011 09:17:29 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Query to monitor eventviewer on Tue, 01 Nov 2011 07:57:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Looks like it is not possible with current implementation of WMI.Query. I'll take a closer look at it in a few days - looks like this functionality can be added with simple changes in WMI subagent.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6230</link><guid isPermaLink="true">https://forum.netxms.org/post/6230</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 01 Nov 2011 07:57:31 GMT</pubDate></item></channel></rss>