[mrtg] newbie question

Ken Gibson ken.gibson at iapshop.com
Thu May 10 14:49:30 CEST 2007

Greetings, all.

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.

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 

./bin/cfgmaker -global 'WorkDir:/private-1/www/array' --global 'Options[_]:bits,growright' --output /private-1/www/array/cfg/vip_in_out_6.cfg\& at

which throws the following:

--base: Get Device Info on at
SNMP Error:
no response received
SNMPv1_Session (remote host: "" [].161)
                  community: ""
                 request ID: -1871658509
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/share/mrtg-2.15.1/bin/../lib/mrtg2/SNMP_util.pm line 627
SNMPWALK Problem for on at
 at ./bin/cfgmaker line 924
WARNING: Skipping at as no info could be retrieved

--base: Writing /private-1/www/array/cfg/vip_in_out_6.cfg

However, using snmpwalk by itself seems to work. This might be expected, too, since I'm using a third-party MIB file.

# snmpwalk -v 2c -c public -u array
CA-SNMP-MIB::totalIPBytesIn.0 = Counter32: 2111313468

To test another method, I then created my own .cfg file, which looked like 

EnableIPv6: no
LoadMIBs: /usr/share/snmp/mibs/CA-SNMP-MIB.txt
Target[r1]: at
MaxBytes[r1]: 8000
Title[r1]: Bytes in and out
PageTop[r1]: <h1>Bytes in and out</h1>

This generated graphs with no data, which again might be expected since it was breaking earlier. 
Since there are several IP addresses load-balanced by these machines, I've also tried 
Target[r1]: CA-SNMP-MIB::totalIPBytesIn. at

The log for the last try says "Argument 'v4only' isn't numeric in int at ..."

Any ideas why this wouldn't work? Any help you can give me is greatly appreciated.



PS - the default scripts from the examples on the site work just fine with these devices; i.e., the graphs generated by the command

./bin/cfgmaker -global 'WorkDir:/private-1/www/array' --global 'Options[_]:bits,growright' --output /private-1/www/array/cfg/mrtg.cfg  public at

look great. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070510/6a47fe62/attachment.html 

More information about the mrtg mailing list