<?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[Node down - but for how long?  And high latency notification]]></title><description><![CDATA[<p dir="auto">Greetings,</p>
<p dir="auto">Can someone explain how I can accomplish two things:</p>
<ol>
<li>
<p dir="auto">I am currently sending node down/up email notifications, which works great.  How can I add the number of hours/minutes/seconds that the node was actually down?  Of course, this would be based on when NetXMS saw the node go down and then come back up.</p>
</li>
<li>
<p dir="auto">How can I trigger an email notification when a circuit is experiencing higher than normal latency - say over 75ms, for longer than 1 minute?</p>
</li>
</ol>
<p dir="auto">Any help is appreciated!</p>
<p dir="auto">-Kevin C.</p>
]]></description><link>https://forum.netxms.org/topic/2880/node-down-but-for-how-long-and-high-latency-notification</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:30:20 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2880.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Jan 2014 18:48:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Node down - but for how long?  And high latency notification on Wed, 11 May 2016 11:31:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Yes, that attribute is set and the script works as well. But since that day I haven't received this alarm anymore.<br />
And it seems that it is working fine now.</p>
<p dir="auto">I guess i will need to set up event for this alarm, and monitor this for a while.</p>
<p dir="auto">Thank you!</p>
<p dir="auto">Best regards,<br />
Nikk</p>
]]></description><link>https://forum.netxms.org/post/19808</link><guid isPermaLink="true">https://forum.netxms.org/post/19808</guid><dc:creator><![CDATA[Nikk]]></dc:creator><pubDate>Wed, 11 May 2016 11:31:30 GMT</pubDate></item><item><title><![CDATA[Reply to Node down - but for how long?  And high latency notification on Mon, 09 May 2016 10:10:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">do you have attribute DowntimeStart set on that node? Will it work if you run the following script on a node:</p>
<pre><code>println GetCustomAttribute($node, "DowntimeStart");
</code></pre>
<p dir="auto">via "Execute server script" menu?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19794</link><guid isPermaLink="true">https://forum.netxms.org/post/19794</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 09 May 2016 10:10:23 GMT</pubDate></item><item><title><![CDATA[Reply to Node down - but for how long?  And high latency notification on Mon, 09 May 2016 07:33:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">This script was working for a long time, but now we are receiving error:<br />
"Script (DownTime) execution error: Error 5 in line 1: Invalid operation with NULL value"</p>
<p dir="auto">Script:</p>
<blockquote>
<p dir="auto">return SecondsToUptime(time() - GetCustomAttribute($node, "DowntimeStart"));</p>
</blockquote>
<p dir="auto">Has something changed there, and this script doesn't work anymore?<br />
Server version 2.0.1</p>
<p dir="auto">Best regards,<br />
Nikk</p>
]]></description><link>https://forum.netxms.org/post/19792</link><guid isPermaLink="true">https://forum.netxms.org/post/19792</guid><dc:creator><![CDATA[Nikk]]></dc:creator><pubDate>Mon, 09 May 2016 07:33:36 GMT</pubDate></item><item><title><![CDATA[Reply to Node down - but for how long?  And high latency notification on Wed, 05 Feb 2014 10:48:23 GMT]]></title><description><![CDATA[<p dir="auto">There is no DCI for "node down". DCI is just collecting inspected parameter value over time and can have action based on threshold of these values.</p>
<p dir="auto">Not sure what you need then but for the record, how to recreate "Node Down" discussed in this topic:</p>
<ul>
<li>in Script Library create script called "OnNodeDown" - SetCustomAttribute($node, "DowntimeStart", time());</li>
<li>in Actions Configuration create Action "OnNodeDown" - Type: Execute NXSL Script, Script name: OnNodeDown</li>
<li>in Event Processing Policy edit node down rule (usually no.1) and add Action - Server Action - OnNodeDown</li>
</ul>
<p dir="auto">This is just the part that "writes" exact time when node went down.</p>
<p dir="auto">To calculate downtime and include it in the SYS_NODE_UP event:</p>
<ul>
<li>create a script "DownTime" - return SecondsToUptime(time() - GetCustomAttribute($node, "DowntimeStart"));</li>
<li>add macro to desired place (action, event...) - %[DownTime]</li>
</ul>
<p dir="auto">There can be some errors when calling the DownTime macro and no "DowntimeStart" value exists, but these should not happen eventually (script can be adjusted to handle these events too).</p>
<p dir="auto">With regards,<br />
Milan</p>
]]></description><link>https://forum.netxms.org/post/12686</link><guid isPermaLink="true">https://forum.netxms.org/post/12686</guid><dc:creator><![CDATA[sperlm]]></dc:creator><pubDate>Wed, 05 Feb 2014 10:48:23 GMT</pubDate></item><item><title><![CDATA[Reply to Node down - but for how long?  And high latency notification on Sat, 01 Feb 2014 09:59:48 GMT]]></title><description><![CDATA[<p dir="auto">hi Millerpaint,</p>
<p dir="auto">can you please help me to form the DCI for the node down. what to use in DCI Parameter and does it require any script.</p>
<p dir="auto">thank you</p>
]]></description><link>https://forum.netxms.org/post/12643</link><guid isPermaLink="true">https://forum.netxms.org/post/12643</guid><dc:creator><![CDATA[Percy]]></dc:creator><pubDate>Sat, 01 Feb 2014 09:59:48 GMT</pubDate></item><item><title><![CDATA[Reply to Node down - but for how long?  And high latency notification on Tue, 28 Jan 2014 08:08:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<ol>
<li>On SYS_NODE_DOWN event you can set some custom attribute for the node to current time, executing script like this:</li>
</ol>
<pre><code>SetCustomAttribute($node, "DowntimeStart", time());
</code></pre>
<p dir="auto">then, you can use macros which call script in notification on SYS_NODE_UP, like this: %[GetDowntimeText]</p>
<p dir="auto">and script (GetDowntimeText in our example) in script library like this:</p>
<pre><code>return SecondsToUptime(time() - GetCustomAttribute($node, "DowntimeStart"));
</code></pre>
<ol start="2">
<li>You can use PING subagent to do regular pings and set threshold for rtt &gt; 75. Ping subagents described here: <a href="http://wiki.netxms.org/wiki/Subagent:Ping" rel="nofollow ugc">http://wiki.netxms.org/wiki/Subagent:Ping</a>.</li>
</ol>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/12575</link><guid isPermaLink="true">https://forum.netxms.org/post/12575</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 28 Jan 2014 08:08:29 GMT</pubDate></item></channel></rss>