<?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 - Instance discovery]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have 8 prcesses to discover.<br />
phonalisa-ctrld<br />
phonalisa-dbsrv<br />
phonalisa-ldapd<br />
phonalisa-logd<br />
phonalisa-random<br />
...<br />
and so on</p>
<p dir="auto">I want to use Process.Count(*) and will check if =1</p>
<p dir="auto">How can I creat an Instance Discovery to get all processes called phonalisa-*</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.netxms.org/topic/5623/process-instance-discovery</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:56:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5623.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Jun 2018 17:28:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Process - Instance discovery on Mon, 23 Jul 2018 12:52:39 GMT]]></title><description><![CDATA[<p dir="auto">Yep, the script had a typo. Oops. Was only for testing though, so should not affect the actual DCI.</p>
<p dir="auto">I just set something similar up on a Ubuntu system here and I think the ExternalList needs an update:</p>
<pre><code>ExternalList=Phonalisa.Processes:/bin/bash -c "ps axco command | grep phonalisa- | sort -u"
</code></pre>
<p dir="auto">Using that (i.e. with /bin/bash), it worked for me when I grepped for "imap" processes (returned imap and imap-login). Created two DCIs, one for each and returned the correct values.</p>
<p dir="auto">Let me know if that works for you.</p>
]]></description><link>https://forum.netxms.org/post/24601</link><guid isPermaLink="true">https://forum.netxms.org/post/24601</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Mon, 23 Jul 2018 12:52:39 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Mon, 23 Jul 2018 12:22:09 GMT]]></title><description><![CDATA[<p dir="auto">Yes, my mistake - method is correct. Still seems to be a typo in list name: it is "Phonelisa.Processes" in script and "Phonalisa.Processes" in DCI configuration.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24600</link><guid isPermaLink="true">https://forum.netxms.org/post/24600</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 23 Jul 2018 12:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Mon, 23 Jul 2018 11:59:35 GMT]]></title><description><![CDATA[<p dir="auto">The script was only to check if the server gets the correct results back from the ExternalList command on the agent.<br />
I'm guessing the ExternalList command is actually incorrect (I haven't used those on Linux yet, only Windows).</p>
]]></description><link>https://forum.netxms.org/post/24599</link><guid isPermaLink="true">https://forum.netxms.org/post/24599</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Mon, 23 Jul 2018 11:59:35 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Mon, 23 Jul 2018 11:26:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you have wrong discovery method - it should be "Script", not "Agent List" if you are using script from script library for discovery.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24598</link><guid isPermaLink="true">https://forum.netxms.org/post/24598</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 23 Jul 2018 11:26:35 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Mon, 23 Jul 2018 11:23:47 GMT]]></title><description><![CDATA[<p dir="auto">The description should include the process names as per your list and you should end up with one DCI per list entry.<br />
Instead it appears the list returns "1" to your Instance Discovery DCI, hence your DCI returns 0, as there is no process called "1".<br />
Not sure what exactly is happening, I'll have to set the whole thing up at my end (not just the script) for comparison/testing.<br />
I'm assuming you're running the latest version of NetXMS?</p>
]]></description><link>https://forum.netxms.org/post/24597</link><guid isPermaLink="true">https://forum.netxms.org/post/24597</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Mon, 23 Jul 2018 11:23:47 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Fri, 13 Jul 2018 07:41:51 GMT]]></title><description><![CDATA[<p dir="auto">I have found a little mistake.<br />
I forget the dot.<br />
But the same result.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004103-InstanceDiscovery.PNG" alt="InstanceDiscovery.PNG" class="img-markdown  img-fluid" width="423" height="239" /></p>
]]></description><link>https://forum.netxms.org/post/24517</link><guid isPermaLink="true">https://forum.netxms.org/post/24517</guid><dc:creator><![CDATA[rainerh]]></dc:creator><pubDate>Fri, 13 Jul 2018 07:41:51 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Fri, 13 Jul 2018 07:35:31 GMT]]></title><description><![CDATA[<p dir="auto">the script works fine - here the result:</p>
<p dir="auto">phonalisa-callr<br />
phonalisa-ctid<br />
phonalisa-ctrld<br />
phonalisa-dbsrv<br />
phonalisa-ldapd<br />
phonalisa-logd<br />
phonalisa-msgd<br />
phonalisa-voipd</p>
<p dir="auto">*** FINISHED ***</p>
<p dir="auto">Result: (null)</p>
<p dir="auto">configuration like this:<br />
<img src="http://general.PNG" alt="" class="img-markdown  img-fluid" /></p>
<p dir="auto"><img src="http://InstanceDiscovery.PNG" alt="" class="img-markdown  img-fluid" /></p>
<p dir="auto">this results in:</p>
<p dir="auto"><img src="http://result.PNG" alt="" class="img-markdown  img-fluid" /></p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004097-generlal.PNG" alt="generlal.PNG" class="img-markdown  img-fluid" width="457" height="241" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004099-InstanceDiscovery.PNG" alt="InstanceDiscovery.PNG" class="img-markdown  img-fluid" width="427" height="265" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004101-result.PNG" alt="result.PNG" class="img-markdown  img-fluid" width="773" height="96" /></p>
]]></description><link>https://forum.netxms.org/post/24516</link><guid isPermaLink="true">https://forum.netxms.org/post/24516</guid><dc:creator><![CDATA[rainerh]]></dc:creator><pubDate>Fri, 13 Jul 2018 07:35:31 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Thu, 12 Jul 2018 00:46:44 GMT]]></title><description><![CDATA[<p dir="auto">There should be no need to use the instance discovery filter.<br />
I'm assuming Instance Discovery did run against the Agent?</p>
<p dir="auto">Setup under General should look something like the attached screenshot.</p>
<p dir="auto">Please confirm if the list contains the data you expect.<br />
Right-click on your agent, select "Execute server script" and run the following:</p>
<pre><code>processes = AgentReadList($node,"Phonelisa.Processes");
if ( processes == null ) return "The list is empty!";
foreach ( process : processes ) {
  println(process);
}
</code></pre>
<p dir="auto">This should list all the processes it knows about. If it does, then that's not your problem.</p>
<p dir="auto">But if the above returns "The list is empty!", check that running the command that generates the list produces the expected output.<br />
It worked on my system when I tested it against other processes (I don't have any phonalisa ones), so there is a possibility the command doesn't work as expected on your system.<br />
As the user running the Agent, run the command that generates the list:</p>
<pre><code>ps axco command | grep phonalisa- | sort -u
</code></pre>
<p dir="auto">See if that actually produces the list of process names you expect.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004093-Capture.png" alt="Capture.png" class="img-markdown  img-fluid" width="457" height="220" /></p>
]]></description><link>https://forum.netxms.org/post/24511</link><guid isPermaLink="true">https://forum.netxms.org/post/24511</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Thu, 12 Jul 2018 00:46:44 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Tue, 10 Jul 2018 10:31:49 GMT]]></title><description><![CDATA[<p dir="auto">Thanks</p>
<p dir="auto">i am not able to handle these new list.<br />
I added these to netxmsd.config:</p>
<p dir="auto"># Log File<br />
LogFile=/var/log/nxagentd</p>
<p dir="auto"># IP white list, can contain multiple records separated by comma.<br />
# CIDR notation supported for subnets.<br />
MasterServers=10.10.__.__/32</p>
<p dir="auto">#ExternalList<br />
ExternalList=Phonalisa.Processes:ps axco command | grep phonalisa- | sort -u</p>
<p dir="auto">Then I restartet the Agent.<br />
I think that these will work fine, because a test of show agent suportet lists in info will result like this:</p>
<p dir="auto">Agent.ActionList<br />
Agent.SubAgentList<br />
...<br />
Phonalisa.Processes<br />
...<br />
System.IO.Devices<br />
System.ProcessList</p>
<p dir="auto">How can I use this?</p>
<p dir="auto">In "General" I set   Process.Count({instance})   at Parameter</p>
<p dir="auto">In Instance Discovery I select Agent List at discovery method<br />
and   Phonalisa.Processes  in List name</p>
<p dir="auto">What Have I to do in discovery filter script?</p>
<p dir="auto">When I do nothin only   75  will be returned  -I thin the total number of precesses</p>
<p dir="auto">Thank you very much<br />
Rainer</p>
]]></description><link>https://forum.netxms.org/post/24507</link><guid isPermaLink="true">https://forum.netxms.org/post/24507</guid><dc:creator><![CDATA[rainerh]]></dc:creator><pubDate>Tue, 10 Jul 2018 10:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to Process - Instance discovery on Wed, 27 Jun 2018 04:28:36 GMT]]></title><description><![CDATA[<p dir="auto">Create an ExternalList in your agent configuration:</p>
<pre><code>ExternalList = Phonalisa.Processes:ps axco command | grep phonalisa- | sort -u
</code></pre>
<p dir="auto">That should give you a list called "Phonalisa.Processes" on your agent, which you can then use in your Instance Discovery DCI.</p>
]]></description><link>https://forum.netxms.org/post/24477</link><guid isPermaLink="true">https://forum.netxms.org/post/24477</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Wed, 27 Jun 2018 04:28:36 GMT</pubDate></item></channel></rss>