The program runs as a cron job and is therefore quite robust to system crashes. The data from the routers is acquired through an SNMP agent. Currently it supports snmpget from the cmu-snmp distribution, the snmp-get from the tricklet package by Delft University and the getone tool found preinstalled on some systems. The graphs are produced with ppmtogif from the netpbm package.
# Multi Router Traffic Grapher -- Configuration File ####################################################################### # General Configuration ############################################### ####################################################################### WorkDir: /usr/local/www/data/dept/admin/dld/lin/netcomm/traffic # how nice shall we be ? (0 is the fastest) nice: 10 # Currently the following 3 "snmpgets" are supported # cmu: from cmu-snmp # delft: SNMP distribution by tu-delft # getone: On some systems this is already installed snmpagent: cmu # The path to the "snmpget" utility snmpget: /home/oetiker/bin/snmpget # cmu-snmpget needs to know the path to mib.txt mibfile: /home/oetiker/etc/mib.txt # The ppm to gif converter from the netpbm package ppmtogif: /usr/local/bin/ppmtogif # Configuration for our CISCO Gateway ################################# ####################################################################### IP[jips]: 146.227.1.248 Community[jips]: public MaxBytes[jips]: 8000 Title[jips]: Traffic Analysis for DMU's Internet Gateway Comment[jips]: Our Internet link curently runs over a 64Kb X.25 Link. This gives a maximum throughput of 8 KBytes per Second. ifOut[jips]: interfaces.ifTable.ifEntry.ifOutOctets.6 ifIn[jips]: interfaces.ifTable.ifEntry.ifInOctets.6 # More routers can follow ..... ################################ IP[xyz]: 156.222.2.1 MaxBytes[xyz]: 100000 ... # Combined Statistic for several Routers ######################################## # You DON'T need to specify MaxBytes, ifOut, ifIn and Community ! # specify the aliases from all the routers you want to include in # the total. # # mrtg tries to make sure that you only use aliases which were # defined elsewhere in the config file. Now you may want to include # statistics generated by another mrtg. To do this, add a star (*) # after each external reference. IP[summ]: xyz,jips,extern1*,extern2* Comment[summ]: Combined Traffic off all our friends on the fddi ring ...