<?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[Time Based Event Processing]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Is there a way to configure an event processing to behave differently based on the time?<br />
Besides the normal alarms we have, I was trying to setup new ones that should trigger only during the night for example, when there is nobody to check email/sms messages. So basically I wanted to add a new event processing policy, for a particular event, but it should only trigger if the event is raised between 00 and 8 am for example.<br />
I hope this can be done through the filtering script, but I was not able to find how to do that.</p>
<p dir="auto">Thank you,<br />
Alex</p>
]]></description><link>https://forum.netxms.org/topic/7051/time-based-event-processing</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:31:21 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7051.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 May 2021 12:34:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Time Based Event Processing on Mon, 17 May 2021 18:37:54 GMT]]></title><description><![CDATA[<p dir="auto">Awesome, thank you!<br />
 I will try this.</p>
]]></description><link>https://forum.netxms.org/post/30008</link><guid isPermaLink="true">https://forum.netxms.org/post/30008</guid><dc:creator><![CDATA[Abraxas]]></dc:creator><pubDate>Mon, 17 May 2021 18:37:54 GMT</pubDate></item><item><title><![CDATA[Reply to Time Based Event Processing on Mon, 17 May 2021 13:11:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">yes, this can be done with filtering script. You can get "time" object with gmtime or localtime functions and then check it's properties. To match events only between 00:00 and 08:00 you can use the following script:</p>
<pre><code>t = localtime($event-&gt;timestamp);
return t-&gt;hour &gt;= 0 and t-&gt;hour &lt; 8;
</code></pre>
<p dir="auto">This will not include 8:00, if you need it you should add additional condition that checks for 8:00 exact time.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/30006</link><guid isPermaLink="true">https://forum.netxms.org/post/30006</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 17 May 2021 13:11:30 GMT</pubDate></item></channel></rss>