<?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 about event only during defined period of time]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">What would be the best way to define an action (send e-mail) for an alarms generated only during specified time frame (between 09:00 and 17:00)? There is a restart of a service during a night, and termination of the alarm when the service is up. In this case an e-mail should not be sent.</p>
<p dir="auto">The only way is to create a new event processing policy and use filtering script (previous one + new condition)?<br />
If yes, how to do it?<br />
Ex. strftime(%H,$event-&gt;timestamp) with "if" statement?</p>
<p dir="auto">Best regards,<br />
Marcin</p>
]]></description><link>https://forum.netxms.org/topic/3623/notification-about-event-only-during-defined-period-of-time</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 23:05:36 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3623.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Mar 2015 10:37:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Notification about event only during defined period of time on Fri, 06 Mar 2015 14:30:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">yes, you need filtering script for that. To match events from 9:00 to 16:59 (both inclusive) it could look like following:</p>
<pre><code>now = localtime();
return (now-&gt;hour &gt;= 9) &amp;&amp; (now-&gt;hour &lt; 17);
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/16055</link><guid isPermaLink="true">https://forum.netxms.org/post/16055</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 06 Mar 2015 14:30:10 GMT</pubDate></item></channel></rss>