<?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[Problem with Script in Event processing Policy]]></title><description><![CDATA[<p dir="auto">I am currently trying to add a script to a rule in the event processing policy to limit the time at wich a email message is send out.</p>
<p dir="auto">Script is as follows (very simple just to show the problem, actual script will be more complex):</p>
<p dir="auto">sub main ()<br />
{<br />
    now = localtime();<br />
    return now-&gt;hour &gt;= 12;<br />
}</p>
<p dir="auto">When the eventrule is triggered the following error shows in the NetXMS log:</p>
<p dir="auto">[30-Mar-2010 11:58:16] Failed to execute evaluation script for event processing policy rule #13: Error 15 in line 4: Unknown object's attribute</p>
<p dir="auto">This points to a error with now-&gt;hour. I've seen this contruction used in several examples on the forum so i assume it is correct.</p>
<p dir="auto">The version of NetXMS i'm using is the 1.0.0.rc1. I had this problem also with previous versions.</p>
<p dir="auto">Is this a bug or am i doing something wrong ?</p>
]]></description><link>https://forum.netxms.org/topic/894/problem-with-script-in-event-processing-policy</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:14:54 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/894.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Mar 2010 10:58:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with Script in Event processing Policy on Tue, 30 Mar 2010 19:42:17 GMT]]></title><description><![CDATA[<p dir="auto">It's a bug. I've fixed it for next release.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4135</link><guid isPermaLink="true">https://forum.netxms.org/post/4135</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 30 Mar 2010 19:42:17 GMT</pubDate></item></channel></rss>