macwatch is a small daemon that counts in- and outbytes from a given MAC-address and stores the result in a file for use with MRTG. It will write the file every 5 minutes by default, and uses libpcap to do all the work. I made it to monitor some servers on a DMZ and show how much bandwith is used with MRTG.
· A system that you can compile c-source on with libpcap on some flavour of unix.
· This has been tested on:
· Linux (2.x)
· Solaris (8)
· HP-UX (10.20)
· compiled, but not tested (no root) on:
· OpenBSD 2.8
· FreeBSD 4.4
What's New in This Release:
· minor update to readme and helpscreen and removed some headerchecks
· added chdir("/") to ensure that our files are created in the chrooted enviroment, if any!