<?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[Return threshold value and actual value in Threshold script]]></title><description><![CDATA[<p dir="auto">I create Data Collection Configuration with threshold value is not fixed</p>
<p dir="auto">Transformation:</p>
<pre><code>return 10*log10($1/1000);
</code></pre>
<p dir="auto">Script:</p>
<pre><code>transport = CreateSNMPTransport($node);
value = SNMPGetValue(transport, ".1.3.6.1.4.1.9.9.91.1.2.1.1.4." . $dci-&gt;instanceData . ".1");
threshold = 10*log10($value/1000);
return (threshold &gt; $1);
</code></pre>
<p dir="auto">I think it's better when i can return threshold value and actual value to the Event Message:</p>
<pre><code>return %(threshold &gt; $1, format(threshold,1,2), format($1,1,2));
</code></pre>
]]></description><link>https://forum.netxms.org/topic/6181/return-threshold-value-and-actual-value-in-threshold-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:39:51 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6181.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Sep 2019 02:09:14 GMT</pubDate><ttl>60</ttl></channel></rss>