Projects / macwatch

macwatch

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.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  15 Jun 2002 21:24

    Release Notes: A minor bug introduced by a previous bugfix was fixed. The mac-address check now allows addresses to be specified as dash-delimited numbers instead of colon-delimited numbers.

    •  23 May 2002 21:56

      Release Notes: A crash bug and a data (config) corruption bug which in some cases led to it not working at all have been fixed. A minor file descriptor bug was also fixed.

      •  17 May 2002 22:48

        Release Notes: This release enables logging of multiple hosts without starting several processes. It can read MAC addresses and log filenames from both an argument list and by reading one or more files.

        •  07 Jan 2002 18:39

          No changes have been submitted for this release.

          Recent comments

          27 Feb 2004 01:32 torgeirhansen

          Re: SoS:I don't know how to use it

          > Excuse my english
          > I have installed this software
          > but , i don't know how to use it, it
          > give me a message
          > :You must specify one or more
          > address(es) to monitor


          You need to define a mac (ethernet)-address you want to monitor, if you are unsure what the address is you can e.g. ping the local ip-address you want to monitor and then use the arp command to figure out the mac-address.

          Then you want to start macwatch either with the -a parameter like this: 'macwatch -a 00:30:30:A8:F2:06,/var/log/macwatch/gwstat'
          or if you are going to monitor more than one mac-address on a interface I suggest you use a configuration-file, and start macwatch with the -f param, e.g. 'macwatch -f /etc/macwatch-eth0.conf'
          /etc/macwatch-eth0.conf should be one entry for each line in the format of "mac,statfile[,revert]" meaning that you can either use "mac,statfile" OR "mac,statfile,revert" if you want to revert the numbers (if your mrtg graf points the wrong way:)

          Good luck, hope you figure it out! If not, feel free to email me any questions you might have.

          25 Feb 2004 23:29 knivesguru

          SoS:I don't know how to use it
          Excuse my english
          I have installed this software
          but , i don't know how to use it, it give me a message
          :You must specify one or more address(es) to monitor

          So can someone help me ?
          thanks

          Screenshot

          Project Spotlight

          OpenStack4j

          A Fluent OpenStack client API for Java.

          Screenshot

          Project Spotlight

          TurnKey TWiki Appliance

          A TWiki appliance that is easy to use and lightweight.