<?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[netxms 1.2.16 getavgdcivalue not working]]></title><description><![CDATA[<p dir="auto">Hi There!</p>
<p dir="auto">I am trying to use NetXMS on routers' bandwidth usage statistics and trying to see if any saturation is happening on my network.</p>
<p dir="auto">For this, I am trying to use getavgdcivalue command on scripting but i am sure that command is not returning true result.</p>
<p dir="auto">I had a look at code, and did not see any error.<br />
Itried to use sql statement as described other posts about this command, and sql command is working properly but getavgdcivalue command is not working.</p>
<p dir="auto">I Tried to use GetminDCIValue, it is working.<br />
I tried to use GetMaxDCIValue, it is working.</p>
<p dir="auto">I tried to use GetSumDCIValue, it is NOT Working properly.<br />
I tried to use GetAVGDCIValur, it is NOT working properly.</p>
<p dir="auto">Getsumdcivalue and getavgdcivalue is returning integers that smaller than 10.</p>
<p dir="auto">By the way, i am using netxms on linux mint machine and mysql.</p>
<p dir="auto">Can anybody help me to solve this problem, please?</p>
]]></description><link>https://forum.netxms.org/topic/3379/netxms-1.2.16-getavgdcivalue-not-working</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 20:48:13 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3379.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Sep 2014 21:41:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to netxms 1.2.16 getavgdcivalue not working on Wed, 15 Oct 2014 19:57:19 GMT]]></title><description><![CDATA[<p dir="auto">All Information about DCI values and script as follows:</p>
<p dir="auto">DCI Values :<br />
"Timestamp","Value"<br />
"15.10.2014 22:48:51","5192"<br />
"15.10.2014 22:48:41","7360"<br />
"15.10.2014 22:48:31","8624"<br />
"15.10.2014 22:48:21","160"<br />
"15.10.2014 22:48:11","2952"<br />
"15.10.2014 22:48:01","160"<br />
"15.10.2014 22:47:51","160"<br />
"15.10.2014 22:47:41","160"<br />
"15.10.2014 22:47:31","160"<br />
"15.10.2014 22:47:21","160"<br />
"15.10.2014 22:47:11","160"<br />
"15.10.2014 22:47:01","2952"<br />
(Got these with export to csv)</p>
<p dir="auto">my sample script is :</p>
<p dir="auto">node=FindNodeObject(null,11298);<br />
nodedci2=FindDCIByDescription(node,"inbound_12");<br />
nodedci=GetDCIObject(node,nodedci2);<br />
saturesure=GetCustomAttribute(node,"saturesure");<br />
btime=time();<br />
avgdci=GetAvgDCIValue(node,nodedci-&gt;id,btime-saturesure,btime);<br />
sumdci=GetSumDCIValue(node,nodedci-&gt;id,btime-saturesure,btime);<br />
println "avgdci     : ".avgdci;<br />
println "sumdci     : ".sumdci;<br />
println "saturesure : ".saturesure;</p>
<p dir="auto">inboundsondakka=GetDCIValues(node,nodedci-&gt;id,btime-saturesure,btime);<br />
ib=0;<br />
ic=0;<br />
foreach (ia:inboundsondakka)<br />
{<br />
ib++;<br />
ic=ic+ia;<br />
println ib.".th record :".ia;<br />
}</p>
<p dir="auto">ic=ic/ib;<br />
println "recordcount :".ib;<br />
println "avgdcivalue :".ic;</p>
<p dir="auto">return false;</p>
<p dir="auto">(11298 my node id)</p>
<p dir="auto">and console output is :</p>
<p dir="auto">avgdci : 2.00000<br />
sumdci : 3.00000<br />
saturesure : 120<br />
1th record : 5192<br />
.<br />
.<br />
.<br />
<a href="http://12.th" rel="nofollow ugc">12.th</a> record : 2952<br />
recordcount : 12<br />
avgdcivalue : 2350.00000</p>
<p dir="auto">NETXMS version : 1.2.16. Compiled from source, and i am using mysql 5.5.38-0 and Operating System is : linux mint 17</p>
]]></description><link>https://forum.netxms.org/post/15040</link><guid isPermaLink="true">https://forum.netxms.org/post/15040</guid><dc:creator><![CDATA[mkemerci]]></dc:creator><pubDate>Wed, 15 Oct 2014 19:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to netxms 1.2.16 getavgdcivalue not working on Fri, 03 Oct 2014 19:30:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">that's very strange, because as you probably see in the code, all four functions share common implementation and only change SQL aggregate function. Can you please share exact data - actual DCI values, result of  GetAvgDCIValue and GetMaxDCIValue, and results of appropriate SQL queries?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/14974</link><guid isPermaLink="true">https://forum.netxms.org/post/14974</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 03 Oct 2014 19:30:06 GMT</pubDate></item><item><title><![CDATA[Reply to netxms 1.2.16 getavgdcivalue not working on Sat, 27 Sep 2014 16:45:32 GMT]]></title><description><![CDATA[<p dir="auto">I had a look into code and saw a new command : GetDCIValues . With this command, i can read all records between timestamp as an array.<br />
i can calculate an average value by:</p>
<p dir="auto">GetDCIValues between timestamps, Sum them and divide to record count between timestamps  (because both GetAvgDCIValue and GetSumDCIValue are not working properly and returning meanless integers between 1..10)</p>
<p dir="auto">so i can calculate avg. But If there is an other way, can anybody tell me, please ?</p>
]]></description><link>https://forum.netxms.org/post/14950</link><guid isPermaLink="true">https://forum.netxms.org/post/14950</guid><dc:creator><![CDATA[mkemerci]]></dc:creator><pubDate>Sat, 27 Sep 2014 16:45:32 GMT</pubDate></item></channel></rss>