<?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[Adding memory use alarm to NetXms]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I would like to add new alarm node to Netxms.<br />
Alarm shoud alert me when router have high percentage of memory.</p>
<p dir="auto">I found three OIDs that i probalby use:</p>
<p dir="auto">para1 = memTotalReal.0 .1.3.6.1.4.1.2021.4.3<br />
para2 = 2memAvailReal.0 .1.3.6.1.4.1.2021.4.6<br />
para3 = memCached.0 .1.3.6.1.4.1.2021.4.15</p>
<p dir="auto">static:<br />
max_ram_value = 0.9</p>
<p dir="auto">My function shoud work when:<br />
if<br />
(para2 + para3) / para1 &gt;= max_ram_value<br />
then<br />
SEND_ALERT</p>
<p dir="auto">How to implemet tomething like that in Netxms?</p>
<p dir="auto">Thx in advance!</p>
]]></description><link>https://forum.netxms.org/topic/3299/adding-memory-use-alarm-to-netxms</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:58:26 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3299.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Aug 2014 10:45:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Wed, 20 Aug 2014 11:44:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi again.</p>
<p dir="auto">I have mess in my configuration, can't be for 100?% sure in what order i create things.<br />
I setup repeating in threshold and it works great.</p>
<p dir="auto">I fix my configuration using your advice and it works!<br />
Problem SOLVED.</p>
<p dir="auto">Thx Victor!</p>
]]></description><link>https://forum.netxms.org/post/14747</link><guid isPermaLink="true">https://forum.netxms.org/post/14747</guid><dc:creator><![CDATA[Gray]]></dc:creator><pubDate>Wed, 20 Aug 2014 11:44:05 GMT</pubDate></item><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Thu, 14 Aug 2014 11:12:28 GMT]]></title><description><![CDATA[<p dir="auto">There are error in configuration, but it should not prevent alarm generation.</p>
<p dir="auto">Can it be that you define threshold for DCI and only after define rule in event processing policy? In that case threshold violation event might be created before you define handling rule. You can check this by setting repeat interval in threshold - then it will repeat threshold violation event.</p>
<p dir="auto">As for error I mention - you probably want to resolve existing alarm by "normal" event? If yes, then it will not work that way <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /> Problem is with alarm keys - resolve find alarm to resolve by key, but you specify different key in resolve rule than in alarm creation rule. This could be reduced to two rules:</p>
<ol>
<li>
<p dir="auto">Generate alarm from events CPU_LOAD_WARNING or CPU_LOAD_CRITICAL, with severity "from event" and key "CPU_LOAD_%i_%5".</p>
</li>
<li>
<p dir="auto">Resolve alarm from event CPU_LOAD_NORMAL by key "CPU_LOAD_%i_%3".</p>
</li>
</ol>
<p dir="auto">Notice difference in key - %5 vs %3 - for historical reasons DCI ID is parameter number 3 for threshold rearm events and number 5 for threshold violation event.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/14681</link><guid isPermaLink="true">https://forum.netxms.org/post/14681</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 14 Aug 2014 11:12:28 GMT</pubDate></item><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Thu, 14 Aug 2014 11:05:20 GMT]]></title><description><![CDATA[<p dir="auto">Part two.</p>
<p dir="auto">I hope that helps.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001926-Netxms6.png" alt="Netxms6.png" class="img-markdown  img-fluid" width="1407" height="27" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001928-Netxms7.png" alt="Netxms7.png" class="img-markdown  img-fluid" width="709" height="709" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001930-Netxms8.png" alt="Netxms8.png" class="img-markdown  img-fluid" width="608" height="713" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001932-Netxms9.png" alt="Netxms9.png" class="img-markdown  img-fluid" width="467" height="450" /></p>
]]></description><link>https://forum.netxms.org/post/14680</link><guid isPermaLink="true">https://forum.netxms.org/post/14680</guid><dc:creator><![CDATA[Gray]]></dc:creator><pubDate>Thu, 14 Aug 2014 11:05:20 GMT</pubDate></item><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Thu, 14 Aug 2014 11:04:26 GMT]]></title><description><![CDATA[<p dir="auto">First 5 screens.</p>
<p dir="auto">I try do it in order.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001916-Netxms1.png" alt="Netxms1.png" class="img-markdown  img-fluid" width="1069" height="77" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001918-Netxms2.png" alt="Netxms2.png" class="img-markdown  img-fluid" width="471" height="447" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001920-Netxms3.png" alt="Netxms3.png" class="img-markdown  img-fluid" width="1501" height="405" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001922-Netxms4.png" alt="Netxms4.png" class="img-markdown  img-fluid" width="616" height="553" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001924-Netxms5.png" alt="Netxms5.png" class="img-markdown  img-fluid" width="621" height="553" /></p>
]]></description><link>https://forum.netxms.org/post/14679</link><guid isPermaLink="true">https://forum.netxms.org/post/14679</guid><dc:creator><![CDATA[Gray]]></dc:creator><pubDate>Thu, 14 Aug 2014 11:04:26 GMT</pubDate></item><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Thu, 14 Aug 2014 10:40:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Likely some sobtle error in configuration. By description everything looks correct. Can you share screenshot of exact configuration - maybe I'll spot the problem.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/14676</link><guid isPermaLink="true">https://forum.netxms.org/post/14676</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 14 Aug 2014 10:40:27 GMT</pubDate></item><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Thu, 14 Aug 2014 10:29:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">There is my working process:</p>
<ol>
<li>Create 3 events - normal/warning/critical</li>
<li>Creating 3 event processing policys - normal/warning/critical and linked they with event. Policys have structure: IF my_event THEN Action generate/resolve alarm.</li>
<li>On nodes Data Collector Configuration in Threshold section i create two Thresholds - iIF my_value THEN my_event.</li>
</ol>
<p dir="auto">When i check node Last Value i see that my_value is greater that threshold, so alarm should generate.<br />
Yesterday those alarm didn't work, but today suddenly alarmed me. I don't do anything (i think so).</p>
<p dir="auto">Today i create new DCC parameter, same way as described above and setup values to generate alarms.<br />
I see event exceeds my_value but don't generate alarms.</p>
<p dir="auto">What i do wrong?</p>
<p dir="auto">Thx!</p>
]]></description><link>https://forum.netxms.org/post/14674</link><guid isPermaLink="true">https://forum.netxms.org/post/14674</guid><dc:creator><![CDATA[Gray]]></dc:creator><pubDate>Thu, 14 Aug 2014 10:29:03 GMT</pubDate></item><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Thu, 07 Aug 2014 14:15:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Did you add a rule to generate alarm? Having threshold will only generate you an event - you have to add a rule to event processing policy to make alarm from it. See <a href="https://www.netxms.org/documentation/adminguide/event-processing.html" rel="nofollow ugc">Event Processing</a> section in user manual for more information.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/14620</link><guid isPermaLink="true">https://forum.netxms.org/post/14620</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 07 Aug 2014 14:15:25 GMT</pubDate></item><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Thu, 07 Aug 2014 08:38:54 GMT]]></title><description><![CDATA[<p dir="auto">Thx Victor!</p>
<p dir="auto">I setup DCI origin and script with you instruction.<br />
I run test script and get value about 0.25.</p>
<p dir="auto">Then i setup  threshold:<br />
Last pooled value: 1<br />
&gt; greater then: 0.2</p>
<p dir="auto">Activation event:<br />
SYS_THRESHOLD_REACHED</p>
<p dir="auto">And apply changes.<br />
But this settings don't generate alarm to me.<br />
What i do wrong?</p>
<p dir="auto">Thx!</p>
<p dir="auto">EDIT:<br />
I looked in into DCI history and all values are 0, how to "insert" value from script?<br />
SOLVED: I changed Data type on Floating Point Number <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";-)" alt="😉" /></p>
<p dir="auto">EDIT TWO:<br />
In Object Details of chosen node i see that threshold is exceed my value, but alarm is not generated.</p>
]]></description><link>https://forum.netxms.org/post/14619</link><guid isPermaLink="true">https://forum.netxms.org/post/14619</guid><dc:creator><![CDATA[Gray]]></dc:creator><pubDate>Thu, 07 Aug 2014 08:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Adding memory use alarm to NetXms on Sat, 02 Aug 2014 07:56:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">there are different ways to implement this. One could be to create DCI with origin "Internal" and parameter name "Dummy" (it will just generate 0 at given intervals), give it meaningful description like "Memory usage", and in transformation script read necessary SNMP values and do the computation. Transformation script cold look like following:</p>
<pre><code>snmp = CreateSNMPTransport($node);
total = SNMPGetValue(snmp, ".1.3.6.1.4.1.2021.4.3");
avail = SNMPGetValue(snmp, ".1.3.6.1.4.1.2021.4.6");
cached = SNMPGetValue(snmp, ".1.3.6.1.4.1.2021.4.15");
return (avail + cached) / total;
</code></pre>
<p dir="auto">Then you can add threshold "more then 0.9" or any other as usual.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/14589</link><guid isPermaLink="true">https://forum.netxms.org/post/14589</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sat, 02 Aug 2014 07:56:38 GMT</pubDate></item></channel></rss>