Home
Softono
pmacct

pmacct

Open source C
1.2K
Stars
277
Forks
50
Issues
55
Watchers
1 month
Last Commit

About pmacct

pmacct is a suite of passive network monitoring tools that collect, store, and analyze traffic data through multiple protocols and data sources. It supports NetFlow, IPFIX, sFlow, libpcap, BGP, BMP, RPKI, IGP, and Streaming Telemetry, allowing it to aggregate accounting and reconnaissance information from routers, switches, and probes. The toolkit includes several daemons such as pmacctd, nfacctd, sfacctd, and uacctd, each tailored to a specific input method or data format. Collected data can be exported to databases like MySQL, PostgreSQL, SQLite, and MongoDB, or to messaging systems such as Kafka, AMQP, and NSQ for real-time processing. pmacct is commonly used by ISPs, data centers, and enterprises for traffic accounting, network forensics, capacity planning, billing, and security analysis. It is open source, distributed under a BSD-style license, and available as official Docker images for streamlined deployment.

Platforms

Web Self-hosted

Languages

C

Build status

DOCUMENTATION

  • Online:

  • Distribution tarball:

    • ChangeLog: History of features version by version
    • CONFIG-KEYS: Available configuration directives explained
    • QUICKSTART: Examples, command-lines, quickstart guides
    • FAQS: FAQ document
    • docs/: Miscellaneous internals, UNIX signals, SQL triggers documents
    • examples/: Sample configs, maps, AMQP/Kafka consumers, clients
    • sql/: SQL documentation, default SQL schemas and customization tips

DOCKER IMAGES

Official pmacct docker images can be found in docker hub. To use them, simply (e.g. sfacctd):

 ~# docker pull pmacct/sfacctd:latest
 ~# docker run -v /path/to/sfacctd.conf:/etc/pmacct/sfacctd.conf pmacct/sfacctd

For more details, options and troubleshooting please read the Docker documentation section

BUILDING

Resolve dependencies, ie.:

  • apt-get install libpcap-dev pkg-config libtool autoconf automake make bash libstdc++-dev g++ for [Debian/Ubuntu]
  • yum install libpcap-devel pkgconfig libtool autoconf automake make bash libstdc++-devel gcc-c++ for [CentOS/RHEL]

Build GitHub code:

 ~# git clone https://github.com/pmacct/pmacct.git
 ~# cd pmacct
 ~# ./autogen.sh
 ~# ./configure #check-out available configure knobs via ./configure --help
 ~# make
 ~# make install #with super-user permission

RELICENSE INITIATIVE

The pmacct project is looking to make its code base available under a more permissive BSD-style license. More information about the motivation and process can be found in this announcement.

CONTRIBUTING