<?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[SNMP get temperature]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I need some help with netxms bluecoat configuration , so i have 5 different proxys and all of them are on one template , but they are using 2 different versions of bluecoat , so one of them uses this .1.3.6.1.4.1.3417.2.1.1.1.1.1.5.5 oid to monitor CPU temp and others this .1.3.6.1.4.1.3417.2.1.1.1.1.1.5.20 oid to monitor CPU temperature.</p>
<p dir="auto">I want to add object which determines what proxy it is , and then add oid which one is needed.</p>
<p dir="auto">Here is what i did:</p>
<p dir="auto">Created new object that is looking for proxy name (for example: <a href="http://proxy1.dmd.lv" rel="nofollow ugc">proxy1.dmd.lv</a>, <a href="http://proxy2.dmd.lv" rel="nofollow ugc">proxy2.dmd.lv</a> and so on).<br />
Then i added few lines in object -&gt; proporties -&gt; transformation</p>
<p dir="auto">if ($1 == <a href="http://proxy1.dmd.lv" rel="nofollow ugc">proxy1.dmd.lv</a>)<br />
{<br />
    value = SNMPGetValue(CPU temperature, ".1.3.6.1.4.1.3417.2.1.1.1.1.1.5.5");<br />
    return (value);<br />
}<br />
else<br />
{<br />
    value = SNMPGetValue(CPU temperature, ".1.3.6.1.4.1.3417.2.1.1.1.1.1.5.20");<br />
    return (value);<br />
}</p>
<p dir="auto">but this script wasnt working for me , so could someone help me fix it?</p>
]]></description><link>https://forum.netxms.org/topic/5517/snmp-get-temperature</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:47:21 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5517.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Mar 2018 13:03:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SNMP get temperature on Tue, 03 Apr 2018 06:28:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Based on what I can see at <a href="http://www.oidview.com/mibs/3417/SENSOR-MIB.html" rel="nofollow ugc">http://www.oidview.com/mibs/3417/SENSOR-MIB.html</a>, the value you are trying to poll is part of a table.<br />
That means you should probably create a single template using Instance Discovery using .1.3.6.1.4.1.3417.2.1.1.1.1.1.1 as Base SNMP OID, instead of creating two different templates. You could probably also poll 1.3.6.1.4.1.3417.2.1.1.1.1.1.9 as part of your Instance Discovery script to return the name of the sensor for the DCI.</p>
<p dir="auto">The filter script would look similar to this:</p>
<pre><code>transport = CreateSNMPTransport($node);
if (transport == null) return null;
sensorName = SNMPGetValue(transport, ".1.3.6.1.4.1.3417.2.1.1.1.1.1.9." . $1);
if (sensorName == null) return false;
return %(true,$1,sensorName);
</code></pre>
<p dir="auto">I have no idea if the sensor name will always exist on this device or not. The code above will not create a DCI if a name does not exist. In fact, it will remove it if it can't find a name.</p>
<p dir="auto">You can then reference the sensor name in your DCI description as {instance-name} and the instance itself in the DCI parameter as {instance}.<br />
The parameter should therefore look like this:</p>
<pre><code>.1.3.6.1.4.1.3417.2.1.1.1.1.1.5.{instance}
</code></pre>
<p dir="auto">The description could be this:</p>
<pre><code>Bluecoat Temperature Sensor ({instance-name})
</code></pre>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netxms.org/post/24088</link><guid isPermaLink="true">https://forum.netxms.org/post/24088</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Tue, 03 Apr 2018 06:28:49 GMT</pubDate></item></channel></rss>