<?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[DCIs, Events and ActionShellExec]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am trying to run an action on a Windows NetXMS agent when a certain condition is triggered.</p>
<p dir="auto">So far this is what I've done:</p>
<ul>
<li>added an ActionShellExec into the agent's configuration file and ran a configuration poll. This action does not require any parameters.</li>
<li>added an Action that calls the ActionShellExec</li>
<li>created an Event which I intend to only use for this particular issue</li>
<li>create an Event Processing Policy which triggers an alarm and executes the above action if the event above is triggered</li>
<li>added a DCI that can trigger the previously configured Event</li>
</ul>
<p dir="auto">Unfortunately this doesn't work as expected. I receive an alarm, but the action itself just doesn't seem to happen.<br />
My guess is that I have the "Remote host" part of the Action wrong. Should that be "%n" (which is what I used - I also tried "%g")?</p>
<p dir="auto">To see if I stuffed up the Action itself, I added it to the Object Tools and called it on my test system.<br />
The result is that the Action is called and works just fine.</p>
<p dir="auto">Thanks for any pointers.</p>
]]></description><link>https://forum.netxms.org/topic/4270/dcis-events-and-actionshellexec</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 20:11:15 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4270.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Feb 2016 05:21:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DCIs, Events and ActionShellExec on Thu, 04 Feb 2016 19:01:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">currently action execution requires direct connection to agent (when zoning was implemented we just forgot about that). I've added it as feature request (<a href="https://dev.raden.solutions/issues/1154" rel="nofollow ugc">https://dev.raden.solutions/issues/1154</a>).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19114</link><guid isPermaLink="true">https://forum.netxms.org/post/19114</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 04 Feb 2016 19:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to DCIs, Events and ActionShellExec on Thu, 04 Feb 2016 11:14:23 GMT]]></title><description><![CDATA[<p dir="auto">I had another search around and it seems what I did should work.<br />
An older post suggested using %a (the node's IP) to trigger the action.<br />
Doesn't work for me either.</p>
<p dir="auto">Now I am starting to wonder if that is due to the node connecting via a NetXMS Proxy agent? There is no direct connection straight from the server to the node.<br />
And to top it off, I'm using zoning. So just passing an IP will likely not work if I can't pass the zone as well.<br />
What macro should I use that actually triggers the action on the right node? I'm lost on this one.</p>
]]></description><link>https://forum.netxms.org/post/19106</link><guid isPermaLink="true">https://forum.netxms.org/post/19106</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Thu, 04 Feb 2016 11:14:23 GMT</pubDate></item></channel></rss>