<div>Hello,</div><div><br></div><div>I&#39;m trying to make a custom SNMP graph with extend command and MRTG</div><div>I&#39;ve manage to get results from snmpwalk. The command and result looks like this:</div><div><br></div>

<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="&#39;courier new&#39;, monospace">[user@foobar ~] snmpwalk -v 2c -c public somehost &#39;NET-SNMP-EXTEND-MIB::nsExtendOutputFull.&quot;testshell&quot;&#39;</font></div>

<div><div><font face="&#39;courier new&#39;, monospace">NET-SNMP-EXTEND-MIB::nsExtendOutputFull.&quot;testshell&quot; = STRING: 1</font></div><div><font face="&#39;courier new&#39;, monospace">2</font></div>
<div><font face="&#39;courier new&#39;, monospace">custom 1</font></div><div><font face="&#39;courier new&#39;, monospace">custom 2</font></div></div><div><font face="&#39;courier new&#39;, monospace"><br>
</font></div></blockquote>I then try to get these figures with MRTG. My config looks like this:<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Target[testshell]: `NET-SNMP-EXTEND-MIB::nsExtendOutputFull.&quot;testshell&quot;`:public@somehost:::::2</font></div></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Title[testshell]: Test Shell</font></div>
</div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">MaxBytes[testshell]: 5</font></div></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">PageTop[testshell]: &lt;H1&gt;Test Shell&lt;/H1&gt;</font></div>
</div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">YLegend[testshell]: Test Shell</font></div></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">ShortLegend[testshell]: &amp;nbsp;</font></div>
</div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">
Options[testshell]: nopercent, gauge</font></div></div></blockquote><div>
<div><br></div></div><div>Then when I run MRTG, the following error appears:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div><font face="&#39;courier new&#39;, monospace">sh: NET-SNMP-EXTEND-MIB::nsExtendOutputFull.testshell: command not found</font></div></div><div><div><font face="&#39;courier new&#39;, monospace">2010-09-04 01:17:21: WARNING: Could not get any data from external command &#39;NET-SNMP-EXTEND-MIB::nsExtendOutputFull.&quot;testshell&quot;&#39;</font></div>

</div><div><div><font face="&#39;courier new&#39;, monospace">Maybe the external command did not even start. (Illegal seek)</font></div></div><div><div><font face="&#39;courier new&#39;, monospace"><br>
</font></div></div><div><div><font face="&#39;courier new&#39;, monospace">2010-09-04 01:17:21: WARNING: Problem with External get &#39;NET-SNMP-EXTEND-MIB::nsExtendOutputFull.&quot;testshell&quot;&#39;:</font></div>
</div><div><div><font face="&#39;courier new&#39;, monospace">   Expected a Number for &#39;in&#39; but nothing&#39;</font></div></div><div><div><font face="&#39;courier new&#39;, monospace"><br>
</font></div></div><div><div><font face="&#39;courier new&#39;, monospace">2010-09-04 01:17:21: WARNING: Problem with External get &#39;NET-SNMP-EXTEND-MIB::nsExtendOutputFull.&quot;testshell&quot;&#39;:</font></div>
</div><div><div><font face="&#39;courier new&#39;, monospace">   Expected a Number for &#39;out&#39; but nothing&#39;</font></div></div><div><div><font face="&#39;courier new&#39;, monospace"><br>
</font></div></div><div><div><font face="&#39;courier new&#39;, monospace">2010-09-04 01:17:21: ERROR: Target[testshell][_IN_] &#39; $target-&gt;[5]{$mode} :public@somehost:::::2&#39; (eval): syntax error at (eval 23) line 1, near &quot;} :&quot;</font></div>

</div><div><div><font face="&#39;courier new&#39;, monospace"><br></font></div></div><div><div><font face="&#39;courier new&#39;, monospace">2010-09-04 01:17:21: ERROR: Target[testshell][_OUT_] &#39; $target-&gt;[5]{$mode} :public@somehost:::::2&#39; (eval): syntax error at (eval 24) line 1, near &quot;} :&quot;</font></div>

</div></blockquote><div><br></div><div><br></div><div>What could be the problem? Any suggestion?</div><div><br></div><div>Thanks!</div><div><br></div>