<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Comic Sans MS" size=2>Greetings, all.</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>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></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>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></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT size=2>./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</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>which throws the following:</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT size=2>--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:<BR>SNMP
Error:<BR>no response received<BR>SNMPv1_Session (remote host: "10.10.63.6"
[10.10.63.6].161)<BR>
community:
"1.3.6.1.4.1.7564.22.6&1.3.6.1.4.1.7564.22.7:public"<BR>
request ID:
-1871658509<BR>
PDU bufsize: 8000
bytes<BR>
timeout:
2s<BR>
retries:
5<BR>
backoff: 1)<BR> at /usr/share/mrtg-2.15.1/bin/../lib/mrtg2/SNMP_util.pm
line 627<BR>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<BR> at
./bin/cfgmaker line 924<BR>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<BR><BR>--base: Writing
/private-1/www/array/cfg/vip_in_out_6.cfg<BR></FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2>However, using snmpwalk by itself seems
to work. This might be expected, too, since I'm using a third-party MIB
file.</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT size=2># snmpwalk -v 2c -c public -u array 10.10.63.6
1.3.6.1.4.1.7564.22.6<BR>CA-SNMP-MIB::totalIPBytesIn.0 = Counter32:
2111313468</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>To test another method, I then created my
own .cfg file, which looked like </FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS"><FONT size=2><FONT
face="Times New Roman">EnableIPv6:
no<BR>WorkDir:/private-1/www/array<BR>LoadMIBs:
/usr/share/snmp/mibs/CA-SNMP-MIB.txt<BR>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<BR>Options[_]:bits,growright<BR>MaxBytes[r1]:
8000<BR>Title[r1]: Bytes in and out 10.10.63.6<BR>PageTop[r1]: <h1>Bytes
in and out 10.10.63.6</h1></FONT><BR></FONT></FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2>This generated graphs with no data, which
again might be expected since it was breaking earlier. </FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2>Since there are several IP addresses
load-balanced by these machines, I've also tried </FONT></DIV>
<DIV><FONT size=2>Target[r1]:
CA-SNMP-MIB::totalIPBytesIn.10.10.63.102&CA-SNMP-MIB::totalIPBytesOut.10.10.63.102:public@10.10.63.6</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><FONT face="Comic Sans MS" size=2>The log for the last try says "Argument
'v4only' isn't numeric in int at ..."</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>Any ideas why this wouldn't work?
</FONT><FONT face="Comic Sans MS" size=2>Any help you can give me is greatly
appreciated.</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>Thanks</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>Ken</FONT></DIV>
<DIV><FONT face="Comic Sans MS" size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" size=2>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></DIV>
<DIV><FONT face="Comic Sans MS" size=2> </DIV>
<DIV><FONT face="Times New Roman" size=2>./bin/cfgmaker -global
'WorkDir:/private-1/www/array' --global 'Options[_]:bits,growright' --output
/private-1/www/array/cfg/mrtg.cfg <A
href="mailto:public@10.10.63.6">public@10.10.63.6</A></FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV>look great. </DIV></FONT></BODY></HTML>