[mrtg] ethernet monitor

Bill Omer draven at distmirr.com
Sat Jun 30 13:02:28 MEST 2001


Hey all,
I'm trying to figure out a way to make mrtg monitor an ethernet card on a linux server.  I believe it will need the data
 from the /proc/net/dev file, however I'm having some big problems generating the data.

For one, I'm not sure what data mrtg needs (for example, does it only need the raw data (ie, bytes received and bytes 
sent?) and nothing else?), or how I would input this data in to mrtg.

Has this been done before?  Any suggestions or sample scripts that I can look at to get me going?

Thanks,
Bill Omer


ps:  just as a reference, a /proc/net/dev file looks like this:

[root at www doc]# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:169675522  156612    0    0    0     0          0         0 169675522  156612    0    0    0     0       0          0
  eth0:4184971461 97693491    1    0    0     0          0         0 1765144563 96529578    0    0  118     0       0          0
  


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list