<?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[automatic cancellation of all alarms after 24 hours]]></title><description><![CDATA[<p dir="auto">hello,<br />
Is there a way to erase all alarms after a certain number of hours? for example every two days the "alarms" section is completely cleaned</p>
<p dir="auto">thanks.</p>
]]></description><link>https://forum.netxms.org/topic/7864/automatic-cancellation-of-all-alarms-after-24-hours</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:39:50 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7864.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Feb 2024 16:40:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to automatic cancellation of all alarms after 24 hours on Wed, 07 Feb 2024 14:12:23 GMT]]></title><description><![CDATA[<p dir="auto">You can create scheduled task that will run NXSL script on any top level object ("entire network" or "infrastructure services"). In that script you can do something like this:</p>
<pre><code>for(a : $object-&gt;alarms)
{
   a-&gt;terminate();
}
</code></pre>
<p dir="auto">Alternatively you can use FindObejct(2) to refer to "infrastructure services" instead of $object - then you can run script in any context.</p>
<p dir="auto">You can add additional logic to terminate only old alarms, etc.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/33181</link><guid isPermaLink="true">https://forum.netxms.org/post/33181</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 07 Feb 2024 14:12:23 GMT</pubDate></item></channel></rss>