<?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[Restart a service if alarm is triggered (service is not down)]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm monitoring a webservice using NetXMS and want to restart the windows service that's responsible for this webservice, in case of a returnvalue other then HTTP 200.<br />
The monitoring already works fine and I get notified when the returnvalue is different to 200.<br />
The service itself is running when I check it, but it delivers no results anymore.<br />
So I restart in manually at the moment to fix this.</p>
<p dir="auto">How can I make NetXMS do the net stop/net start commands?</p>
<p dir="auto">Best regards</p>
<p dir="auto">Stefan</p>
]]></description><link>https://forum.netxms.org/topic/6604/restart-a-service-if-alarm-is-triggered-service-is-not-down</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:11:17 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6604.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jul 2020 09:13:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Restart a service if alarm is triggered (service is not down) on Mon, 05 Sep 2022 06:54:52 GMT]]></title><description><![CDATA[<p dir="auto">You should put either %a (to use IP address) or #%i (to refer to current node by ID) in "remote host" field.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/31825</link><guid isPermaLink="true">https://forum.netxms.org/post/31825</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 05 Sep 2022 06:54:52 GMT</pubDate></item><item><title><![CDATA[Reply to Restart a service if alarm is triggered (service is not down) on Tue, 23 Aug 2022 13:59:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
i want to watch a service called FileWaveWinClient.<br />
The Alarm works fine, but the Server action does not work.</p>
<p dir="auto">In agent´s config file I added this line:<br />
ActionShellExec = StartFileWaveService:"C:\Windows\system32\net.exe" start FileWaveWinClient</p>
<p dir="auto">I tried also:<br />
ActionShellExec = StartFileWaveService:net start FileWaveWinClient</p>
<p dir="auto">In Actions Configuration I added<br />
Name: Start_FileWaveWinClient_Service<br />
Type: Execute command on remote node via agent<br />
Remote host &lt;empty&gt;<br />
Agents´s action: StartFileWaveService<br />
(See attachment "Action Configuration.png")</p>
<p dir="auto">I create a Event Processing Policy<br />
Events: ... Process not running<br />
Alarm - this configuration works fine. The Alarm is working<br />
Server Actions: Start_FileWaveWinClient_Service - does not work<br />
(See attachment "Event Processing Policy.png")</p>
<p dir="auto">The Alarm works fine, but the Server action does not work.</p>
<p dir="auto">Thank you<br />
Rainer</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005767-Action_Configuration.png" alt="Action Configuration.png" class="img-markdown  img-fluid" width="324" height="503" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005768-Event_Processing_Policy.png" alt="Event Processing Policy.png" class="img-markdown  img-fluid" width="1104" height="549" /></p>
]]></description><link>https://forum.netxms.org/post/31787</link><guid isPermaLink="true">https://forum.netxms.org/post/31787</guid><dc:creator><![CDATA[rainerh]]></dc:creator><pubDate>Tue, 23 Aug 2022 13:59:40 GMT</pubDate></item><item><title><![CDATA[Reply to Restart a service if alarm is triggered (service is not down) on Tue, 14 Jul 2020 11:42:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can define action in agent configuration file on that machine:</p>
<pre><code>ActionShellExec = RestartService:net stop svcname &amp;&amp; net start svcname
</code></pre>
<p dir="auto">(I'm not sure if command is actually correct, but you should get an idea).</p>
<p dir="auto">then define server side action of type "execute command on remote node", enter RestartService as command name, and add this new action in EPP to be executed on web service error event.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/28234</link><guid isPermaLink="true">https://forum.netxms.org/post/28234</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 14 Jul 2020 11:42:26 GMT</pubDate></item></channel></rss>