<?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[Change of default event attributes]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Is it possible to change default event attributes in the filtering script?<br />
Based on the SNMP varbind I would like to modify severity of the event and then create correct alarm.</p>
<p dir="auto">I tried:<br />
$event-&gt;severity = 1;<br />
but I get an error while compiling processing policy rule: "Unknown object's attribute"</p>
<p dir="auto">I tried also: SetEventParameter($event, severity, 1);<br />
but without success.</p>
<p dir="auto">Best regards,<br />
Marcin</p>
]]></description><link>https://forum.netxms.org/topic/3784/change-of-default-event-attributes</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:24:37 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3784.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 May 2015 11:17:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change of default event attributes on Thu, 21 May 2015 19:37:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">currently it is not possible. I've just added new methods to NXSL class "Event": setMessage, setSeverity, setUserTag. They will be included in release 2.0-M5. Then you'll be able to use script like this:</p>
<pre><code>$event-&gt;setSeverity(2);  // change severity to minor
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/16914</link><guid isPermaLink="true">https://forum.netxms.org/post/16914</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 21 May 2015 19:37:53 GMT</pubDate></item></channel></rss>