<?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[Process.Count returns 0 even EXE is running]]></title><description><![CDATA[<p dir="auto">Hello @all,</p>
<p dir="auto">we are running NetXMS at V6.2.5. We notice since the last versions, that process.count returns 0 even the checked EXE is running.</p>
<p dir="auto">Have anyone else this behaviour to?</p>
<p dir="auto">Greetings<br />
Marco</p>
]]></description><link>https://forum.netxms.org/topic/8449/process.count-returns-0-even-exe-is-running</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:22:59 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8449.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Sep 2026 14:12:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Process.Count returns 0 even EXE is running on Mon, 21 Sep 2026 18:32:49 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it's already fixed in the code and will be in 6.2.6, which isn't released yet: <a href="https://github.com/netxms/netxms/issues/3656" rel="nofollow ugc">https://github.com/netxms/netxms/issues/3656</a>. Only the agent on the Windows machine needs to be updated.</p>
]]></description><link>https://forum.netxms.org/post/35784</link><guid isPermaLink="true">https://forum.netxms.org/post/35784</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 21 Sep 2026 18:32:49 GMT</pubDate></item><item><title><![CDATA[Reply to Process.Count returns 0 even EXE is running on Thu, 17 Sep 2026 10:09:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alex,</p>
<p dir="auto">thanks for the infos. The checked EXE is unfortunately not a service. So i give the WMI thing a try...</p>
<p dir="auto">Do you patch this in the V6.2.6 ?</p>
<p dir="auto">Greetings<br />
Marco</p>
<p dir="auto">PS: As allways: Great Support... Many thanks...  ;D</p>
]]></description><link>https://forum.netxms.org/post/35781</link><guid isPermaLink="true">https://forum.netxms.org/post/35781</guid><dc:creator><![CDATA[Spheron]]></dc:creator><pubDate>Thu, 17 Sep 2026 10:09:50 GMT</pubDate></item><item><title><![CDATA[Reply to Process.Count returns 0 even EXE is running on Wed, 16 Sep 2026 15:44:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi Marco,</p>
<p dir="auto">Yes, this is a bug in the Windows agent: <a href="https://github.com/netxms/netxms/issues/3656" rel="nofollow ugc">https://github.com/netxms/netxms/issues/3656</a></p>
<p dir="auto">Process.Count never sees the most recently started process on the machine. So it returns 0 while your EXE is the newest running process, and goes back to 1 as soon as something else starts after it - that's why it looks random. It's not specific to 6.2, so downgrading won't help. Process.CountEx and the other Process.* metrics have the same problem.</p>
<p dir="auto">Until it's fixed: if the process runs as a service, monitor the service instead (service name, not display name; 0 means running):</p>
<pre><code>System.ServiceState(ServiceName)
</code></pre>
<p dir="auto">Otherwise, with the WMI subagent loaded (SubAgent = wmi.nsm in nxagentd.conf), this returns the real count:</p>
<pre><code>WMI.Query(root\cimv2,"SELECT ProcessId FROM Win32_Process WHERE Name='yourapp.exe'",%%count%%)
</code></pre>
]]></description><link>https://forum.netxms.org/post/35779</link><guid isPermaLink="true">https://forum.netxms.org/post/35779</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 16 Sep 2026 15:44:27 GMT</pubDate></item></channel></rss>