<?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[Custom Agent counters not working]]></title><description><![CDATA[<p dir="auto">Below is a list of custom counters I have created.  When I copy the updated nxagentd.conf to a node, the first four counters are availble, but none of the rest show up in the NetXMS Console Data Collection List.</p>
<pre><code>*WinPerf
Counter = UserProcess.SQLServer.CPU:"\Process(sqlservr)\% Processor Time":60:A:INT:Average % CPU Time for sqlservr.exe over past minute
Counter = UserProcess.SQLServer.IO.ReadBytes:"\Process(sqlservr)\IO Read Bytes/sec":60:A:INT:Average I/O Read Bytes for sqlservr.exe over past minute
Counter = UserProcess.SQLServer.IO.WriteBytes:"\Process(sqlservr)\IO Write Bytes/sec":60:A:INT:Average I/O Write Bytes for sqlservr.exe over past minute
Counter = UserProcess.SQLServer.IO.OtherBytes:"\Process(sqlservr)\IO Other Bytes/sec":60:A:INT:Average I/O Other Bytes for sqlservr.exe over past minute
Counter = UserProcess.SQLServer.Memory:"Process(sqlservr)\Working Set":60:A:INT:Average Memory usage for sqlservr.exe over past minute
Counter = System.IO.DiskReadTime:"LogicalDisk(C:)\%Disk Read Time":60:A:INT:Average Disk Read Time C:
Counter = System.IO.DiskWriteTime:"LogicalDisk(C:)\%Disk Write Time":60:A:INT:Average Disk Write Time C:
Counter = System.IO.DiskReadBytes:"LogicalDisk(C:)\Disk Read Bytes/sec":60:A:INT:Average Disk Read Bytes Per Sec C:
Counter = System.IO.DiskWriteBytes:"LogicalDisk(C:)\Disk Write Bytes/sec":60:A:INT:Average Disk Write Bytes Per Sec C:
Counter = System.IO.DiskReadTime:"LogicalDisk(D:)\%Disk Read Time":60:A:INT:Average Disk Read Time D:
Counter = System.IO.DiskWriteTime:"LogicalDisk(D:)\%Disk Write Time":60:A:INT:Average Disk Write Time D:
Counter = System.IO.DiskReadBytes:"LogicalDisk(D:)\Disk Read Bytes/sec":60:A:INT:Average Disk Read Bytes Per Sec D:
Counter = System.IO.DiskWriteBytes:"LogicalDisk(D:)\Disk Write Bytes/sec":60:A:INT:Average Disk Write Bytes Per Sec D:
</code></pre>
<p dir="auto">I suspect the colon behind the drive letters are creating the problems.  I have gone over this a few tims, but I can't seemt to find any other misspellings or syntax errors.  Can you find anything wrong with this list?  I am getting two errors in the event log.  One is:</p>
<pre><code>CheckCounter: PDH Error C0000BC0 in call to PdhAddCounter (Unable to parse the counter path. Check the format and syntax of the specified path.)
</code></pre>
<p dir="auto">The other is:</p>
<pre><code>Unable to add counter from configuration file. Original configuration record: System.IO.DiskReadTime:"LogicalDisk(C:)\%Disk Read Time":60:A:INT:Average Disk Read Time C:
</code></pre>
<p dir="auto">Thank you for any help,<br />
Kevin<br />
Thank you,<br />
Kevin</p>
]]></description><link>https://forum.netxms.org/topic/227/custom-agent-counters-not-working</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:27:26 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/227.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Feb 2008 15:45:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Custom Agent counters not working on Thu, 14 Feb 2008 21:14:15 GMT]]></title><description><![CDATA[<p dir="auto">I just experimented with using <a href="http://process.io.xxx" rel="nofollow ugc">process.io.xxx</a> with a transformation of "Average delta per second", and I compared it to the:<br />
Counter = <a href="http://UserProcess.SQLServer.IO.xxx" rel="nofollow ugc">UserProcess.SQLServer.IO.xxx</a>:"\Process(sqlservr)\IO xxx Bytes/sec":60:A:INT:"Average I/O xxx Bytes for sqlservr.exe over past minute"</p>
<p dir="auto">Both graphs are virtually identical.</p>
<p dir="auto">I thought this might be helpful if anyone is reading this thread.</p>
<p dir="auto">Kevin</p>
]]></description><link>https://forum.netxms.org/post/1121</link><guid isPermaLink="true">https://forum.netxms.org/post/1121</guid><dc:creator><![CDATA[kghammond]]></dc:creator><pubDate>Thu, 14 Feb 2008 21:14:15 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Agent counters not working on Thu, 14 Feb 2008 06:31:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kghammond" aria-label="Profile: kghammond">@<bdi>kghammond</bdi></a> said in <a href="/post/1111">Custom Agent counters not working</a>:</p>
<blockquote>
<p dir="auto">I was just going to ask that question.  I assume then that <a href="http://process.io.xxx" rel="nofollow ugc">process.io.xxx</a> with a transformation will actually be more accurate.</p>
</blockquote>
<p dir="auto">They should be the same - in both cases you get average value for 60 second, the only difference is that for built-in counters you have calculation on server side (so using fewer cpu cycles on machine with agent) and that you can easily use them in templates without any changes in appropriate agent configs.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kghammond" aria-label="Profile: kghammond">@<bdi>kghammond</bdi></a> said in <a href="/post/1111">Custom Agent counters not working</a>:</p>
<blockquote>
<p dir="auto">At the same time, my working set counter will be more accurate than process.wkset because it will be averaged over 60 seconds.  Is that correct?</p>
</blockquote>
<p dir="auto">Yes, that's correct.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/1113</link><guid isPermaLink="true">https://forum.netxms.org/post/1113</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 14 Feb 2008 06:31:37 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Agent counters not working on Wed, 13 Feb 2008 20:39:25 GMT]]></title><description><![CDATA[<p dir="auto">I was just going to ask that question.  I assume then that <a href="http://process.io.xxx" rel="nofollow ugc">process.io.xxx</a> with a transformation will actually be more accurate.</p>
<p dir="auto">At the same time, my working set counter will be more accurate than process.wkset because it will be averaged over 60 seconds.  Is that correct?</p>
<p dir="auto">A future request would be to document the built-in counters with the details of how the data is obtained, 60 sec avearged, total, etc.</p>
<p dir="auto">Thank you,<br />
Kevin</p>
]]></description><link>https://forum.netxms.org/post/1111</link><guid isPermaLink="true">https://forum.netxms.org/post/1111</guid><dc:creator><![CDATA[kghammond]]></dc:creator><pubDate>Wed, 13 Feb 2008 20:39:25 GMT</pubDate></item><item><title><![CDATA[Reply to Custom Agent counters not working on Tue, 12 Feb 2008 22:07:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">There are various errors. First, in many counters you miss leading backslash. Also, there should be a white space between % sign and "Disk Read Time" or "Disk Write Time". And finally, you should enclose description in double quotes if you are using colon. Correct section should looks like this:</p>
<pre><code>*WinPerf
Counter = UserProcess.SQLServer.CPU:"\Process(sqlservr)\% Processor Time":60:A:INT:Average % CPU Time for sqlservr.exe over past minute
Counter = UserProcess.SQLServer.IO.ReadBytes:"\Process(sqlservr)\IO Read Bytes/sec":60:A:INT:Average I/O Read Bytes for sqlservr.exe over past minute
Counter = UserProcess.SQLServer.IO.WriteBytes:"\Process(sqlservr)\IO Write Bytes/sec":60:A:INT:Average I/O Write Bytes for sqlservr.exe over past minute
Counter = UserProcess.SQLServer.IO.OtherBytes:"\Process(sqlservr)\IO Other Bytes/sec":60:A:INT:Average I/O Other Bytes for sqlservr.exe over past minute
Counter = UserProcess.SQLServer.Memory:"\Process(sqlservr)\Working Set":60:A:INT:Average Memory usage for sqlservr.exe over past minute
Counter = System.IO.DiskReadTime:"\LogicalDisk(C:)\% Disk Read Time":60:A:INT:"Average Disk Read Time C:"
Counter = System.IO.DiskWriteTime:"\LogicalDisk(C:)\% Disk Write Time":60:A:INT:"Average Disk Write Time C:"
Counter = System.IO.DiskReadBytes:"\LogicalDisk(C:)\Disk Read Bytes/sec":60:A:INT:"Average Disk Read Bytes Per Sec C:"
Counter = System.IO.DiskWriteBytes:"\LogicalDisk(C:)\Disk Write Bytes/sec":60:A:INT:"Average Disk Write Bytes Per Sec C:"
Counter = System.IO.DiskReadTime:"\LogicalDisk(D:)\% Disk Read Time":60:A:INT:"Average Disk Read Time D:"
Counter = System.IO.DiskWriteTime:"\LogicalDisk(D:)\% Disk Write Time":60:A:INT:"Average Disk Write Time D:"
Counter = System.IO.DiskReadBytes:"\LogicalDisk(D:)\Disk Read Bytes/sec":60:A:INT:"Average Disk Read Bytes Per Sec D:"
Counter = System.IO.DiskWriteBytes:"\LogicalDisk(D:)\Disk Write Bytes/sec":60:A:INT:"Average Disk Write Bytes Per Sec D:"
</code></pre>
<p dir="auto">Also, you may find useful built-in parameters Process.WkSet and <a href="http://Process.IO.xxx" rel="nofollow ugc">Process.IO.xxx</a>. You can find short description of built-in parameters here:<br />
<a href="https://www.netxms.org/documentation/common_parameters.html" rel="nofollow ugc">https://www.netxms.org/documentation/common_parameters.html</a></p>
<p dir="auto">However there are difference between your custom parameters and built-in <a href="http://Process.IO.xxx" rel="nofollow ugc">Process.IO.xxx</a> - you define average value for last minute, while built-in parameters is a totals since process start - but you can calculate an average value using delta transformation for DCI on server side.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/1110</link><guid isPermaLink="true">https://forum.netxms.org/post/1110</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 12 Feb 2008 22:07:46 GMT</pubDate></item></channel></rss>