<div>Hello,</div><div><br></div><div>I'm trying to make a custom SNMP graph with extend command and MRTG</div><div>I'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="'courier new', monospace">[user@foobar ~] snmpwalk -v 2c -c public somehost 'NET-SNMP-EXTEND-MIB::nsExtendOutputFull."testshell"'</font></div>
<div><div><font face="'courier new', monospace">NET-SNMP-EXTEND-MIB::nsExtendOutputFull."testshell" = STRING: 1</font></div><div><font face="'courier new', monospace">2</font></div>
<div><font face="'courier new', monospace">custom 1</font></div><div><font face="'courier new', monospace">custom 2</font></div></div><div><font face="'courier new', 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="'courier new', monospace">Target[testshell]: `NET-SNMP-EXTEND-MIB::nsExtendOutputFull."testshell"`:public@somehost:::::2</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">Title[testshell]: Test Shell</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">MaxBytes[testshell]: 5</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">PageTop[testshell]: <H1>Test Shell</H1></font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', monospace">YLegend[testshell]: Test Shell</font></div></div><div><div><font class="Apple-style-span" face="'courier new', monospace">ShortLegend[testshell]: &nbsp;</font></div>
</div><div><div><font class="Apple-style-span" face="'courier new', 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="'courier new', monospace">sh: NET-SNMP-EXTEND-MIB::nsExtendOutputFull.testshell: command not found</font></div></div><div><div><font face="'courier new', monospace">2010-09-04 01:17:21: WARNING: Could not get any data from external command 'NET-SNMP-EXTEND-MIB::nsExtendOutputFull."testshell"'</font></div>
</div><div><div><font face="'courier new', monospace">Maybe the external command did not even start. (Illegal seek)</font></div></div><div><div><font face="'courier new', monospace"><br>
</font></div></div><div><div><font face="'courier new', monospace">2010-09-04 01:17:21: WARNING: Problem with External get 'NET-SNMP-EXTEND-MIB::nsExtendOutputFull."testshell"':</font></div>
</div><div><div><font face="'courier new', monospace"> Expected a Number for 'in' but nothing'</font></div></div><div><div><font face="'courier new', monospace"><br>
</font></div></div><div><div><font face="'courier new', monospace">2010-09-04 01:17:21: WARNING: Problem with External get 'NET-SNMP-EXTEND-MIB::nsExtendOutputFull."testshell"':</font></div>
</div><div><div><font face="'courier new', monospace"> Expected a Number for 'out' but nothing'</font></div></div><div><div><font face="'courier new', monospace"><br>
</font></div></div><div><div><font face="'courier new', monospace">2010-09-04 01:17:21: ERROR: Target[testshell][_IN_] ' $target->[5]{$mode} :public@somehost:::::2' (eval): syntax error at (eval 23) line 1, near "} :"</font></div>
</div><div><div><font face="'courier new', monospace"><br></font></div></div><div><div><font face="'courier new', monospace">2010-09-04 01:17:21: ERROR: Target[testshell][_OUT_] ' $target->[5]{$mode} :public@somehost:::::2' (eval): syntax error at (eval 24) line 1, near "} :"</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>