<?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[DCI Treshold]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">im new to NetXMS and have troubles doing a treshold calculation</p>
<p dir="auto">im using "System.Update.LastInstallTime" to get the last installed Windows Updates and it transforms it into Date and Time - perfect!</p>
<p dir="auto">But now im trying to do a treshold checking for getting an alarm when Updates are not installed within the last 30 days (so 1 month in the past from now).</p>
<p dir="auto">Can anyone help me?</p>
<p dir="auto">Thank you in advance!</p>
]]></description><link>https://forum.netxms.org/topic/7853/dci-treshold</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:26:46 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7853.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Jan 2024 20:41:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DCI Treshold on Mon, 22 Jan 2024 11:59:39 GMT]]></title><description><![CDATA[<p dir="auto">Historically SecondsToUptime() function was introduced before measurement units were added. So currently you can select  "Uptime" in measurement units and have it without transformation script. Threshold &lt;= 600 should work.</p>
<p dir="auto">Also, you can try threshold with function "Diff with previous value", 1 sample, &lt; 0.</p>
]]></description><link>https://forum.netxms.org/post/33143</link><guid isPermaLink="true">https://forum.netxms.org/post/33143</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 22 Jan 2024 11:59:39 GMT</pubDate></item><item><title><![CDATA[Reply to DCI Treshold on Sat, 20 Jan 2024 22:37:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">thank you so if i want to display and want to get an alarm i should geht 2 DCI for that.</p>
<p dir="auto">i think my second question is also answered with that - having 1 DCI for Uptime (transformed) and 1 for treshold calculation? (sorry i wrote that down there before i read your post :))</p>
<ol start="2">
<li></li>
</ol>
<p dir="auto">i want to know if a system is rebooting so i get the "System.Uptime" Value - this is converted with "SecondsToUptime($1)" to a readable format.<br />
When not using the "SecondsToUptime($1)" i get the value in seconds and i can use the &lt;= 600 and get a alarm.<br />
But when using the readable format i think the $1 is converted before into a string and the "&lt;= 600" isnt working also i cant use "0 days,  0:10" for that.</p>
]]></description><link>https://forum.netxms.org/post/33139</link><guid isPermaLink="true">https://forum.netxms.org/post/33139</guid><dc:creator><![CDATA[DW]]></dc:creator><pubDate>Sat, 20 Jan 2024 22:37:02 GMT</pubDate></item><item><title><![CDATA[Reply to DCI Treshold on Sat, 20 Jan 2024 22:21:40 GMT]]></title><description><![CDATA[<p dir="auto">You probably have "Epoch time" units selected for that DCI, which makes it display as Date and Time. But the actual value is Unix time - if you open history for that DCI, you would see the values. Threshold operation is happening with that unix time value.</p>
<p dir="auto">So there's two ways how to do things:<br />
a) in transformation script of that DCI:</p>
<pre><code>return time() - $1;
</code></pre>
<p dir="auto">this way the DCI will have value of how many seconds ago the update last happened. You can use "Uptime" units to display that. And in threshold you would want to check if the value is bigger then 2592000   (which is 60 * 60 * 24 * 30).</p>
<p dir="auto">b) or you can have it without any transformation, and use script threshold:</p>
<pre><code>return time() - $1 &gt; 2592000;
</code></pre>
<p dir="auto">or even</p>
<pre><code>return time() - $1 &gt; $2 * 3600 * 24;
</code></pre>
<p dir="auto">and specify the threshold value in days in "Value" field of threshold properties.</p>
]]></description><link>https://forum.netxms.org/post/33138</link><guid isPermaLink="true">https://forum.netxms.org/post/33138</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Sat, 20 Jan 2024 22:21:40 GMT</pubDate></item></channel></rss>