<br><font size=2 face="sans-serif">From your snmpwalk it appears you are
using snmp v2 but you aren't in your cfgmaker statement. Try adding
--snmp-options=:::::2 to your cfgmaker statement.</font>
<br><font size=2 face="sans-serif">This is from the cfgmaker on-line documentation:
(</font><font size=3><tt>--snmp-options=:[<port>][:[<tmout>][:[<retr>][:[<backoff>][:<ver>]]]]</tt></font><font size=2 face="sans-serif">)</font>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.<br>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Ken Gibson"
<ken.gibson@iapshop.com></b> </font>
<br><font size=1 face="sans-serif">Sent by: mrtg-bounces@lists.oetiker.ch</font>
<p><font size=1 face="sans-serif">05/10/2007 08:49 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif"><mrtg@lists.oetiker.ch></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[mrtg] newbie question</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br><font size=1 face="Comic Sans MS">Greetings, all.</font>
<br><font size=2><tt> </tt></font>
<br><font size=1 face="Comic Sans MS">Before I get to my question let me
say MRTG is the greatest thing since sliced bread. I'm very new to
SNMP, however, so please be gentle.</font>
<br><font size=2><tt> </tt></font>
<br><font size=1 face="Comic Sans MS">Like the question asked earlier by
another list member, I'd like to use explicit OIDs to monitor
bytes in and out on Array Network machines from Fedora Core5. The
command I'm using is </font>
<br><font size=2><tt> </tt></font>
<br><font size=1><tt>./bin/cfgmaker -global 'WorkDir:/private-1/www/array'
--global 'Options[_]:bits,growright' --output /private-1/www/array/cfg/vip_in_out_6.cfg
1.3.6.1.4.1.7564.22.6\&1.3.6.1.4.1.7564.22.7:public@10.10.63.6</tt></font>
<br><font size=2><tt> </tt></font>
<br><font size=1 face="Comic Sans MS">which throws the following:</font>
<br><font size=2><tt> </tt></font>
<br><font size=1><tt>--base: Get Device Info on 1.3.6.1.4.1.7564.22.6&1.3.6.1.4.1.7564.22.7:public@10.10.63.6:</tt></font>
<br><font size=1><tt>SNMP Error:</tt></font>
<br><font size=1><tt>no response received</tt></font>
<br><font size=1><tt>SNMPv1_Session (remote host: "10.10.63.6"
[10.10.63.6].161)</tt></font>
<br><font size=1><tt>
community: "1.3.6.1.4.1.7564.22.6&1.3.6.1.4.1.7564.22.7:public"</tt></font>
<br><font size=1><tt>
request ID: -1871658509</tt></font>
<br><font size=1><tt>
PDU bufsize: 8000 bytes</tt></font>
<br><font size=1><tt>
timeout: 2s</tt></font>
<br><font size=1><tt>
retries: 5</tt></font>
<br><font size=1><tt>
backoff: 1)</tt></font>
<br><font size=1><tt> at /usr/share/mrtg-2.15.1/bin/../lib/mrtg2/SNMP_util.pm
line 627</tt></font>
<br><font size=1><tt>SNMPWALK Problem for 1.3.6.1.2.1.1 on 1.3.6.1.4.1.7564.22.6&1.3.6.1.4.1.7564.22.7:public@10.10.63.6:::::v4only</tt></font>
<br><font size=1><tt> at ./bin/cfgmaker line 924</tt></font>
<br><font size=1><tt>WARNING: Skipping 1.3.6.1.4.1.7564.22.6&1.3.6.1.4.1.7564.22.7:public@10.10.63.6:
as no info could be retrieved</tt></font>
<br>
<br><font size=1><tt>--base: Writing /private-1/www/array/cfg/vip_in_out_6.cfg</tt></font>
<br>
<br><font size=1 face="Comic Sans MS">However, using snmpwalk by itself
seems to work. This might be expected, too, since I'm using a third-party
MIB file.</font>
<br><font size=2><tt> </tt></font>
<br><font size=1><tt># snmpwalk -v 2c -c public -u array 10.10.63.6 1.3.6.1.4.1.7564.22.6</tt></font>
<br><font size=1><tt>CA-SNMP-MIB::totalIPBytesIn.0 = Counter32: 2111313468</tt></font>
<br><font size=2><tt> </tt></font>
<br><font size=1 face="Comic Sans MS">To test another method, I then created
my own .cfg file, which looked like </font>
<br><font size=2><tt> </tt></font>
<br><font size=2 face="Times New Roman">EnableIPv6: no</font>
<br><font size=2 face="Times New Roman">WorkDir:/private-1/www/array</font>
<br><font size=2 face="Times New Roman">LoadMIBs: /usr/share/snmp/mibs/CA-SNMP-MIB.txt</font>
<br><font size=2 face="Times New Roman">Target[r1]: 1.3.6.1.4.1.7564.22.6&1.3.6.1.4.1.7564.22.7:public@10.10.63.6</font>
<br><font size=2 face="Times New Roman">Options[_]:bits,growright</font>
<br><font size=2 face="Times New Roman">MaxBytes[r1]: 8000</font>
<br><font size=2 face="Times New Roman">Title[r1]: Bytes in and out 10.10.63.6</font>
<br><font size=2 face="Times New Roman">PageTop[r1]: <h1>Bytes in
and out 10.10.63.6</h1></font>
<br>
<br><font size=1 face="Comic Sans MS">This generated graphs with no data,
which again might be expected since it was breaking earlier. </font>
<br><font size=1 face="Comic Sans MS">Since there are several IP addresses
load-balanced by these machines, I've also tried </font>
<br><font size=1><tt>Target[r1]: CA-SNMP-MIB::totalIPBytesIn.10.10.63.102&CA-SNMP-MIB::totalIPBytesOut.10.10.63.102:public@10.10.63.6</tt></font>
<br><font size=1 face="Comic Sans MS">The log for the last try says "Argument
'v4only' isn't numeric in int at ..."</font>
<br><font size=2><tt> </tt></font>
<br><font size=1 face="Comic Sans MS">Any ideas why this wouldn't work?
Any help you can give me is greatly appreciated.</font>
<br><font size=2><tt> </tt></font>
<br><font size=1 face="Comic Sans MS">Thanks</font>
<br><font size=2><tt> </tt></font>
<br><font size=1 face="Comic Sans MS">Ken</font>
<br><font size=2><tt> </tt></font>
<br><font size=1 face="Comic Sans MS">PS - the default scripts from the
examples on the site work just fine with these devices; i.e., the
graphs generated by the command</font>
<br><font size=1 face="Comic Sans MS"> </font>
<br><font size=1 face="Times New Roman">./bin/cfgmaker -global 'WorkDir:/private-1/www/array'
--global 'Options[_]:bits,growright' --output /private-1/www/array/cfg/mrtg.cfg
</font><a href=mailto:public@10.10.63.6><font size=1 color=blue face="Times New Roman"><u>public@10.10.63.6</u></font></a>
<br><font size=1 face="Comic Sans MS"> </font>
<br><font size=1 face="Comic Sans MS">look great. </font>
<br><font size=2><tt>_______________________________________________<br>
mrtg mailing list<br>
mrtg@lists.oetiker.ch<br>
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</tt></font>
<br>
<br>