<?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[Create agent list for instance discovery?]]></title><description><![CDATA[<p dir="auto">I need to monitor a value that can be extracted from a database on a database server. This is easy to do with a DCI that uses a custom shell script that queries the database for the value to be monitored.</p>
<p dir="auto">However, the database server has, in fact, not one but approximately 60 databases. Each database has the same schema, so the same script can be used to monitor the value in question for each database. But I do not want to create 60 different DCIs manually, one for each database to be monitored. I would rather use instance discovery so that they can be created automagically for me.</p>
<p dir="auto">However, in order to use instance discovery for this case, it would appear to be necessary to do two things:</p>
<ol>
<li>Create a DCI based on my shell script that contains an {instance} parameter that accepts the name of a database on the server.</li>
<li>Create an agent list that contains the names of all of the databases on the database server.</li>
</ol>
<p dir="auto">Are both of these things possible? I am new to NetXMS and so far I have only come across <strong>built-in</strong> DCIs that accept {instance} parameters, as well as only <strong>pre-defined</strong> agent lists. I would be willing to code something up in Java, but I would need a few pointers on how to get started.</p>
<p dir="auto">I would appreciate any help to point me in the right direction, even if the answer is that this is not possible.</p>
]]></description><link>https://forum.netxms.org/topic/3007/create-agent-list-for-instance-discovery</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:33:43 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3007.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Mar 2014 17:15:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Create agent list for instance discovery? on Mon, 24 Mar 2014 14:53:43 GMT]]></title><description><![CDATA[<p dir="auto">We implement it just recently, in 1.2.12, and it is not documented yet.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13275</link><guid isPermaLink="true">https://forum.netxms.org/post/13275</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 24 Mar 2014 14:53:43 GMT</pubDate></item><item><title><![CDATA[Reply to Create agent list for instance discovery? on Mon, 24 Mar 2014 14:51:12 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/13242">Create agent list for instance discovery?</a>:</p>
<blockquote>
<p dir="auto">You can create your own list on agent using ExternalList configuration option. Agent will execute command given and return all it's output as list elements. For example, to add list which will return all files in /tmp, add the following to nxagentd.conf:</p>
<pre><code>ExternalList = TemporaryFiles:/bin/ls /tmp
</code></pre>
</blockquote>
<p dir="auto">Bingo! It works like a charm. Thank you very much.</p>
<p dir="auto">Is "ExternalList" documented somewhere? It is not that I need more info, but I have not seen documentation that mentions this parameter and neither did a web search find anything. I would love to read more documentation, even if it were just source code.</p>
]]></description><link>https://forum.netxms.org/post/13274</link><guid isPermaLink="true">https://forum.netxms.org/post/13274</guid><dc:creator><![CDATA[jeffreyz]]></dc:creator><pubDate>Mon, 24 Mar 2014 14:51:12 GMT</pubDate></item><item><title><![CDATA[Reply to Create agent list for instance discovery? on Mon, 24 Mar 2014 07:33:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">You can create your own list on agent using ExternalList configuration option. Agent will execute command given and return all it's output as list elements. For example, to add list which will return all files in /tmp, add the following to nxagentd.conf:</p>
<pre><code>ExternalList = TemporaryFiles:/bin/ls /tmp
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13242</link><guid isPermaLink="true">https://forum.netxms.org/post/13242</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 24 Mar 2014 07:33:37 GMT</pubDate></item></channel></rss>