<div dir="ltr"><div>Mike, i rewrite a bit your code and now it works for me :<br><br></div>(i use ^CLUSTER1^ instead of \&quot;CLUSTER1\&quot;)<div><br>#!/usr/bin/perl<br><br>use strict;<br><br>my $var = $ARGV[0];<br>my $tmp;<br>
&nbsp;&nbsp;&nbsp; while ($var =~ /\^([^\^]+)\^/) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $tmp = join(&#39;.&#39;, map(ord, split(&#39;&#39;, $1)));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $length = length $1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $var =~ s/\^$1\^/$length.$tmp/;<br>&nbsp;&nbsp;&nbsp; }<br><br>print &quot;$var\n&quot;;<br>
<br># perl <a href="http://test.pl">test.pl</a> &quot;1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.^CLUSTER1^&amp;1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.^CLUSTER1_PREDICTOR^&quot;<br>1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.8.67.76.85.83.84.69.82.49&amp;1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.18.67.76.85.83.84.69.82.49.95.80.82.69.68.73.67.84.79.82<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-20 22:16 GMT+01:00 Steve Shipway <span dir="ltr">&lt;<a href="mailto:s.shipway@auckland.ac.nz" target="_blank">s.shipway@auckland.ac.nz</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-NZ"><div><div class=""><p class="MsoNormal">Target[cluster1_test_failedconnections]: 1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.&quot;CLUSTER1&quot;&amp;1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.&quot;CLUSTER1_PREDICTOR&quot;:snmppub@10.0.99.161:::::2 <br>
<br><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">MRTG doesn&rsquo;t do implicit table lookups or string expansion like this version of snmpwalk does.&nbsp; You will need to give the OID explicitly in the Target definition.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">While you can use certain suffixes to an OID to append the implicit index of an *<b>interface</b>* you cannot do this generally for any table.&nbsp; The backstroke you&rsquo;re using is implying a following interface description to MRTG, which is causing the problems.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Steve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Steve Shipway<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><a href="mailto:s.shipway@auckland.ac.nz" target="_blank">s.shipway@auckland.ac.nz</a><u></u><u></u></span></p>
<div><div><p class="MsoNormal"><u></u>&nbsp;<u></u></p></div></div></div></div></blockquote></div><br></div>