<?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[Handles Open customer Parameter]]></title><description><![CDATA[<p dir="auto">Hi Guys,</p>
<p dir="auto">First of all please excuse me, I am not that experienced with NetXMS. Long and boring story short I want to create a custom parameter that enables NetXMS to monitor the amount of file handles open. A senior colleague of mine informed me I need to add the below to the nxagentd.conf file:</p>
<p dir="auto">ExternalParameterShellExec=FileHandlesAll(*):Command to be executed</p>
<p dir="auto">After this I need to add a new parameter however when I click the Select... button next to Parameter FileHandlesAll doesn't appear there. Are we doing anything wrong?</p>
<p dir="auto">Many thanks in advance.</p>
]]></description><link>https://forum.netxms.org/topic/6404/handles-open-customer-parameter</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:10:15 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6404.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Feb 2020 15:54:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Handles Open customer Parameter on Tue, 25 Feb 2020 11:36:27 GMT]]></title><description><![CDATA[<p dir="auto">Maybe its somthing similar to my post, worth reading <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto"><a href="/post/27392">https://www.netxms.org/forum/general-support/cant-get-powershell-script-to-run/msg27392/#msg27392</a></p>
]]></description><link>https://forum.netxms.org/post/27431</link><guid isPermaLink="true">https://forum.netxms.org/post/27431</guid><dc:creator><![CDATA[Egert143]]></dc:creator><pubDate>Tue, 25 Feb 2020 11:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to Handles Open customer Parameter on Tue, 25 Feb 2020 10:45:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi Filipp,</p>
<p dir="auto">The monitoring for this custom parameter is very inconsistent. Changing the AgentCommandTimeout value to 4000ms got the monitoring to work initially but it seems to randomly stop monitoring. I'll have to look into this further. Thanks for your help so far.</p>
]]></description><link>https://forum.netxms.org/post/27430</link><guid isPermaLink="true">https://forum.netxms.org/post/27430</guid><dc:creator><![CDATA[gn_cyborg]]></dc:creator><pubDate>Tue, 25 Feb 2020 10:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to Handles Open customer Parameter on Fri, 21 Feb 2020 15:56:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi Filipp Sudanov, many thanks for your quick reply again. Currently the Server Configuration has it's AgentCommandTimeout value as 2000ms so I would have though this is OK. ExecTimeout and ExternalParameterProviderTimeout are not defined so default values apply. I'll play around with these settings and see how it goes. I may not reply until Monday but again, thanks for this.</p>
]]></description><link>https://forum.netxms.org/post/27419</link><guid isPermaLink="true">https://forum.netxms.org/post/27419</guid><dc:creator><![CDATA[gn_cyborg]]></dc:creator><pubDate>Fri, 21 Feb 2020 15:56:24 GMT</pubDate></item><item><title><![CDATA[Reply to Handles Open customer Parameter on Fri, 21 Feb 2020 15:19:50 GMT]]></title><description><![CDATA[<p dir="auto">In configuration -&gt; Server configuration there is parameter <strong>AgentCommandTimeout</strong> that defines, how long server waits for queries to agent. By default it's 4000 ms. It's good to keep this low, otherwise, if there'll be a lot of parameters, that take to long to reply, server poller processes will be massively occupied with waiting and server will have problems with getting all the data it should.</p>
<p dir="auto">From agent side there is param in config file <strong>ExecTimeout</strong> that defines how long agent waits for an extrenal process (2000 ms by default).</p>
<p dir="auto">It's better to keep the above settings as the are, since there's a special approach for running long queries - ExternalParametersProvider.<br />
(<a href="https://www.netxms.org/documentation/adminguide/agent-management.html#externalparametersprovider" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/agent-management.html#externalparametersprovider</a>)</p>
<p dir="auto">It runs long queries in the background, caches the result and passes it to the server when server requests corresponding metric.<br />
There is parameter in agent configuration file that defines maximum timeout for command - ExternalParameterProviderTimeout (in seconds). If a command runs longer, it will be terminated.</p>
]]></description><link>https://forum.netxms.org/post/27413</link><guid isPermaLink="true">https://forum.netxms.org/post/27413</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 21 Feb 2020 15:19:50 GMT</pubDate></item><item><title><![CDATA[Reply to Handles Open customer Parameter on Fri, 21 Feb 2020 11:12:54 GMT]]></title><description><![CDATA[<p dir="auto">Many thanks for that! It worked. I am now however experiencing another issue. It's been at least 5 minutes since I added the customer parameter (please see attached screenshot) but nothing at all is showing up on the line chart. The command I specified in the config file was lsof| wc -l. When I run this command manually on the box it takes around 10-15 seconds to execute. This shouldn't be too long for the parameter to capture right?</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005035-FileHandles.PNG" alt="FileHandles.PNG" class="img-markdown  img-fluid" width="656" height="626" /></p>
]]></description><link>https://forum.netxms.org/post/27412</link><guid isPermaLink="true">https://forum.netxms.org/post/27412</guid><dc:creator><![CDATA[gn_cyborg]]></dc:creator><pubDate>Fri, 21 Feb 2020 11:12:54 GMT</pubDate></item><item><title><![CDATA[Reply to Handles Open customer Parameter on Thu, 20 Feb 2020 12:26:46 GMT]]></title><description><![CDATA[<p dir="auto">Agent reads it's configuration file only on start-up, so you have to restart the agent so it will be able to ran this custom parameter.<br />
Now, the server reads available parameters from the agent on configuration poll only. So once you've restarted the agent, you can do a manual configuration poll and then the parameter should appear in the list.</p>
]]></description><link>https://forum.netxms.org/post/27404</link><guid isPermaLink="true">https://forum.netxms.org/post/27404</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 20 Feb 2020 12:26:46 GMT</pubDate></item></channel></rss>