<?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[Notification Channel driver "Shell"]]></title><description><![CDATA[<p dir="auto">Hi, could you please provide some documentation for the &quot;Shell&quot; &quot;Notification Channel&quot; driver?</p>
<p dir="auto">I was looking for some documentation in the source code:</p>
<p dir="auto"><div class="card col-md-9 col-lg-6 position-relative link-preview p-0">



<a href="https://github.com/netxms/netxms/blob/3f1e052583ade764a1512e30c16ca6809ec8e982/src/ncdrivers/shell/shell.cpp" title="netxms/src/ncdrivers/shell/shell.cpp at 3f1e052583ade764a1512e30c16ca6809ec8e982 · netxms/netxms">
<img src="https://opengraph.githubassets.com/19819498d6dcdcaef5d7f0855802bb674e3b85c6ba27571a1e4850ee3b00c2c1/netxms/netxms" class="card-img-top not-responsive" style="max-height: 15rem;" alt="Link Preview Image" onerror="this.parentElement.remove()" />
</a>



<div class="card-body">
<h5 class="card-title">
<a class="text-decoration-none" href="https://github.com/netxms/netxms/blob/3f1e052583ade764a1512e30c16ca6809ec8e982/src/ncdrivers/shell/shell.cpp">
netxms/src/ncdrivers/shell/shell.cpp at 3f1e052583ade764a1512e30c16ca6809ec8e982 · netxms/netxms
</a>
</h5>
<p class="card-text line-clamp-3">NetXMS - Open Source network and infrastructure monitoring and management - netxms/src/ncdrivers/shell/shell.cpp at 3f1e052583ade764a1512e30c16ca6809ec8e982 · netxms/netxms</p>
</div>
<a href="https://github.com/netxms/netxms/blob/3f1e052583ade764a1512e30c16ca6809ec8e982/src/ncdrivers/shell/shell.cpp" class="card-footer text-body-secondary small d-flex gap-2 align-items-center lh-2">



<img src="https://github.githubassets.com/favicons/favicon.svg" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" onerror="this.remove()"/>



<p class="d-inline-block text-truncate mb-0">GitHub <span class="text-secondary">(github.com)</span></p>
</a>
</div></p>
<p dir="auto">but for example</p>
<p dir="auto"><code>Command=/usr/bin/test.py --message=${text}</code></p>
<p dir="auto">${text} ends up empty.</p>
<p dir="auto">and I'm not sure how to enable a higher debug level (6) for this shell driver, the debug of the dummy driver worked pretty much as expected, for the shell driver I've tried to enable the debug output with the following command:</p>
<pre><code>nxadm -c &quot;debug ncd.shell 6&quot;

</code></pre>
]]></description><link>https://forum.netxms.org/topic/7229/notification-channel-driver-shell</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:49:54 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7229.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Oct 2021 21:07:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Notification Channel driver "Shell" on Wed, 17 Nov 2021 07:34:09 GMT]]></title><description><![CDATA[<p dir="auto">Fixed in 3.9.361.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/30778</link><guid isPermaLink="true">https://forum.netxms.org/post/30778</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 17 Nov 2021 07:34:09 GMT</pubDate></item><item><title><![CDATA[Reply to Notification Channel driver "Shell" on Tue, 09 Nov 2021 14:51:55 GMT]]></title><description><![CDATA[<p dir="auto">Replicated this on Ubuntu 18 so looks to be a bug. Created an issue, you can monitor resolution there: <a href="https://track.radensolutions.com/issue/NX-2170" rel="nofollow ugc">https://track.radensolutions.com/issue/NX-2170</a></p>
]]></description><link>https://forum.netxms.org/post/30754</link><guid isPermaLink="true">https://forum.netxms.org/post/30754</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 09 Nov 2021 14:51:55 GMT</pubDate></item><item><title><![CDATA[Reply to Notification Channel driver "Shell" on Thu, 04 Nov 2021 15:23:34 GMT]]></title><description><![CDATA[<p dir="auto">I'm now on</p>
<pre><code>NetXMS Server Version 3.9.334 Build 3.9-334-g799c5eb953 (UNICODE)
NXCP: 5.53.1.31 (AES-256, Blowfish-256, 3DES, AES-128, Blowfish-128)
Built with: g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
</code></pre>
<p dir="auto">same behavior, but I've figured out the file<code> /tmp/sss.txt</code>  isn't "empty" a blank line is added for every test notification.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005586-nc_shell-2.png" alt="nc_shell-2.png" class="img-markdown  img-fluid" width="365" height="83" /></p>
]]></description><link>https://forum.netxms.org/post/30748</link><guid isPermaLink="true">https://forum.netxms.org/post/30748</guid><dc:creator><![CDATA[sq]]></dc:creator><pubDate>Thu, 04 Nov 2021 15:23:34 GMT</pubDate></item><item><title><![CDATA[Reply to Notification Channel driver "Shell" on Thu, 04 Nov 2021 15:04:36 GMT]]></title><description><![CDATA[<pre><code>NetXMS Server Version 3.9.298 Build 3.9-298-g2adbdd51e5 (UNICODE)
NXCP: 5.53.1.31 (AES-256, Blowfish-256, 3DES, AES-128, Blowfish-128)
Built with: g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
</code></pre>
<p dir="auto">for test purposes I've copied your command, <code>/tmp/sss.txt</code> is created, but empty.</p>
]]></description><link>https://forum.netxms.org/post/30747</link><guid isPermaLink="true">https://forum.netxms.org/post/30747</guid><dc:creator><![CDATA[sq]]></dc:creator><pubDate>Thu, 04 Nov 2021 15:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to Notification Channel driver "Shell" on Mon, 01 Nov 2021 12:07:30 GMT]]></title><description><![CDATA[<p dir="auto">Your debug approach looks to be correct. There also could be also some information under "nc" tag.<br />
Is the actual .py script executed?</p>
<p dir="auto">I've tried like this, it's working:<br />
Command=/bin/bash -c "/bin/echo ${recipient} ${text} &gt;&gt; /tmp/sss.txt"</p>
<p dir="auto">What exact version of netxms are you using?</p>
]]></description><link>https://forum.netxms.org/post/30739</link><guid isPermaLink="true">https://forum.netxms.org/post/30739</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 01 Nov 2021 12:07:30 GMT</pubDate></item></channel></rss>