<?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[sample NXSL script that calculates the object status]]></title><description><![CDATA[<p dir="auto">Hi<br />
Can any one provide me sample NXSL script that calculates the object status as neede<br />
I need to change status of condition object based not only based on Active/Inactive status</p>
<p dir="auto">That is based on some value, I need to change status of conditional object status to Normal, Warning, Minor, Major, Critical</p>
<p dir="auto">Example<br />
if the value is &gt; 100 change stataus to normal<br />
         value is &lt; = 100 and &gt; 91 change status to Warning<br />
         value is 90 &lt;= and &gt;81 change status to Minor<br />
         --- etc<br />
Please provide sample script that I can refer to<br />
From net can see there is something like setStatusCalculation, but I could not get examples on using it<br />
Is it possible to use setStatusCalculation in condition object's status script ?</p>
]]></description><link>https://forum.netxms.org/topic/3878/sample-nxsl-script-that-calculates-the-object-status</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:11:10 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3878.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jul 2015 13:11:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to sample NXSL script that calculates the object status on Mon, 27 Jul 2015 11:42:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I need to change tooltip of object ( in my case node) that has been added to map<br />
I need to change tooltip based on status value of object.</p>
<p dir="auto">Regards<br />
Naga</p>
]]></description><link>https://forum.netxms.org/post/17377</link><guid isPermaLink="true">https://forum.netxms.org/post/17377</guid><dc:creator><![CDATA[Nagav]]></dc:creator><pubDate>Mon, 27 Jul 2015 11:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to sample NXSL script that calculates the object status on Mon, 27 Jul 2015 07:34:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">do you mean tooltips on network map?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/17372</link><guid isPermaLink="true">https://forum.netxms.org/post/17372</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 27 Jul 2015 07:34:59 GMT</pubDate></item><item><title><![CDATA[Reply to sample NXSL script that calculates the object status on Fri, 17 Jul 2015 07:27:01 GMT]]></title><description><![CDATA[<p dir="auto">Excellent, it is working<br />
Now I want some details to be displayed in tooltip based on status value, may I know how to do it ?<br />
Is there any NXSL function available which I use to set Node object's tooltip based on status value<br />
I tried to use Comments, but it is same for all status</p>
<p dir="auto">I have requirement to discribe the steps that the operator need to perform based on status of node</p>
<p dir="auto">Please help</p>
]]></description><link>https://forum.netxms.org/post/17339</link><guid isPermaLink="true">https://forum.netxms.org/post/17339</guid><dc:creator><![CDATA[Nagav]]></dc:creator><pubDate>Fri, 17 Jul 2015 07:27:01 GMT</pubDate></item><item><title><![CDATA[Reply to sample NXSL script that calculates the object status on Thu, 16 Jul 2015 15:03:37 GMT]]></title><description><![CDATA[<p dir="auto">I mean a bit different thing. Try to do the following:</p>
<ol>
<li>Create script in script library that will calculate status as you need it.</li>
<li>Create script source DCI, select your script as source, check "use for status calculation" option.</li>
<li>Don't forget to remove "use for status calculation" option from internal status DCI.</li>
</ol>
<p dir="auto">Best regards,<br />
Victor</p>
<p dir="auto">P.S. also, you should use address 0.0.0.0 to create node without IP address.</p>
]]></description><link>https://forum.netxms.org/post/17332</link><guid isPermaLink="true">https://forum.netxms.org/post/17332</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 16 Jul 2015 15:03:37 GMT</pubDate></item><item><title><![CDATA[Reply to sample NXSL script that calculates the object status on Thu, 16 Jul 2015 10:40:13 GMT]]></title><description><![CDATA[<p dir="auto">I did created note object/status DCI as suggested by you, however the status symbol is not changes based on status value<br />
I have attached screenshot of it for your reference, kindly advise me if I have make anyother changes to get appropriate status symbol<br />
Also I do not want tooltip to display default info (255.255.255.255...etc), is it possible to give my own comments based on status value.</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000002346-Node_and_its_property.docx">Node and its property.docx</a></p>
]]></description><link>https://forum.netxms.org/post/17331</link><guid isPermaLink="true">https://forum.netxms.org/post/17331</guid><dc:creator><![CDATA[Nagav]]></dc:creator><pubDate>Thu, 16 Jul 2015 10:40:13 GMT</pubDate></item><item><title><![CDATA[Reply to sample NXSL script that calculates the object status on Thu, 16 Jul 2015 09:51:40 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Victor for response, now I could create object with required status</p>
]]></description><link>https://forum.netxms.org/post/17330</link><guid isPermaLink="true">https://forum.netxms.org/post/17330</guid><dc:creator><![CDATA[Nagav]]></dc:creator><pubDate>Thu, 16 Jul 2015 09:51:40 GMT</pubDate></item><item><title><![CDATA[Reply to sample NXSL script that calculates the object status on Tue, 14 Jul 2015 18:12:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">condition object is limited to have only two possible statuses. However, you can create node object without IP address, then create script DCI on it that will return status as a number from 0 (normal) to 4 (critical) and mark this DCI as "status DCI". You'll have node with status based only on value provided by your script.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/17318</link><guid isPermaLink="true">https://forum.netxms.org/post/17318</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 14 Jul 2015 18:12:28 GMT</pubDate></item></channel></rss>