<?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[How to set event Severity depending on SNMP variable value?]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">My NetXMS server accepts traps containing nine variables, including variable "severity".</p>
<p dir="auto">I need to set event's severity according to value of that variable.<br />
Is there any possibility to do this (using scripts, for example)?</p>
<p dir="auto">Something like</p>
<p dir="auto">if ( $event-&gt;parameters[2] == "7")<br />
{<br />
 $event-&gt;severity = 1;<br />
}</p>
<p dir="auto">(this script does not work, execution error: Unknown object's attribute.<br />
But according to wiki <a href="https://wiki.netxms.org/wiki/NXSL:Event" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:Event</a> there is the Int32 attribute named "severity" for the object "event", so why do i get this error "Unknown object's attribute"? )</p>
]]></description><link>https://forum.netxms.org/topic/4825/how-to-set-event-severity-depending-on-snmp-variable-value</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 21:03:18 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4825.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Dec 2016 08:02:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to set event Severity depending on SNMP variable value? on Fri, 09 Dec 2016 08:58:17 GMT]]></title><description><![CDATA[<p dir="auto">severity is the attribute, setSeverity is the method</p>
]]></description><link>https://forum.netxms.org/post/21479</link><guid isPermaLink="true">https://forum.netxms.org/post/21479</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Fri, 09 Dec 2016 08:58:17 GMT</pubDate></item></channel></rss>