<?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[Translation Rule]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I´ve a Problem.<br />
I request a FAN Status from a cisco Switch an get a value from 1-4 back.<br />
The Datatype is an integer. I want to translate the value in a cleartext word like OK warning etc.<br />
Can someone tell me how I can do this ? I´ve a solution, but it works for one poll, after the next one<br />
I´ve get only 0.</p>
<p dir="auto">Many Thanks !!!</p>
]]></description><link>https://forum.netxms.org/topic/3393/translation-rule</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:49:49 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3393.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Oct 2014 21:35:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Translation Rule on Thu, 09 Oct 2014 21:50:18 GMT]]></title><description><![CDATA[<p dir="auto">You can make use transformation script on DCI to do that. Sample script:</p>
<pre><code>if ($1 == 0) { return "OK"; }
if ($1 == 1) { return "STATUS_1"; }
if ($1 == 2) { return "STATUS_2"; }
return "UNKNOWN (" . $1 . ")";
</code></pre>
]]></description><link>https://forum.netxms.org/post/14999</link><guid isPermaLink="true">https://forum.netxms.org/post/14999</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 09 Oct 2014 21:50:18 GMT</pubDate></item></channel></rss>