BSD Ports

net-mgmt/pmacct 1.7.9 FreeBSD

Accounting and aggregation tool for IPv4 and IPv6 traffic

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
5257c02573
License
GPLv2
Categories
net-mgmt
Package size
1110.0 KiB, 9499.8 KiB installed

Description

pmacct is a set of network tools to gather IP traffic informations (bytes counter and number of packets); aggregation of statistics is done using simple primitives (MAC addresses, source host, destination host, ports and ip protocols) that can be used alone or combined together to form complex aggregation methods; counters are either global or historical (broken at fixed timeslots). Data is either stored in a memory table, pulled to stdout or in a SQL database (MySQL or PostgreSQL). Gathering packets off the wire is done either using pcap library (and promiscuous mode of the listening interface) or reading Netflow packets coming from the network.

In the other systems

SystemPortVersion
FreeBSDnet-mgmt/pmacct1.7.9
OpenBSDnet/pmacct1.7.9
NetBSDwip/pmacct1.5.1
DragonFlynet-mgmt/pmacct1.7.8_1
HardenedBSDnet-mgmt/pmacct1.7.9
GhostBSDnet-mgmt/pmacct1.7.9

Install

Binary package:

pkg install pmacct

From the ports tree:

cd /usr/ports/net-mgmt/pmacct/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	pmacct>0:net-mgmt/pmacct

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.7.91.7.9--1.7.9
FreeBSD:14:quarterly1.7.91.7.9n/a-1.7.9
FreeBSD:15:latest1.7.91.7.9n/a1.7.8_11.7.8_1
FreeBSD:15:quarterly1.7.91.7.9n/an/an/a
FreeBSD:16:latest1.7.91.7.9n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Library 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 8

No port depends on this one.

Configuration

Options name: net-mgmt_pmacct

OptionDefaultDescription
AVROoffEnable avro support
DEBUGoffBuild with debugging support
DOCSoffBuild and/or install documentation
EXAMPLESoffBuild and/or install examples
GEOIP2offEnable GeoIPv2 (libmaxminddb) support
KAFKAoffEnable Kafka support
LAYER2onEnable Layer-2 support: MAC addresses and VLANs
MYSQLoffMySQL database support
PGSQLoffPostgreSQL database support (broken)
RABBITMQoffEnable RabbitMQ/AMQP support
REDISoffEnable Redis support
SQLITE3offEnable SQLite3 support
USES
gmake libtool pkgconfig localbase autoreconf
Service scripts
pmacctd, nfacctd, sfacctd

Message after installing

Please note that this port requires configuration before it will function

Add these to /etc/rc.conf:
pmacctd_enable="YES"
pmacctd_interfaces="em0 em1"

Configuration examples are located in /usr/local/share/examples/pmacct.

You should copy one of these to /usr/local/etc/pmacct/<interface>
and adapt them for your environment.

Database-related files/information can be found in /usr/local/share/pmacct.

Additional documentation is available at:
WWW: http://wiki.pmacct.net/

Files

pkg-plist 163
  • bin/pmacct
  • lib/pmacct/examples/lg/pmbgp
  • sbin/nfacctd
  • sbin/pmacctd
  • sbin/pmbgpd
  • sbin/pmbmpd
  • sbin/pmtelemetryd
  • sbin/sfacctd
  • share/doc/pmacct/AUTHORS
  • share/doc/pmacct/BGP_BMP_METRICS.md
  • share/doc/pmacct/CONFIG-KEYS
  • share/doc/pmacct/COPYING
  • share/doc/pmacct/ChangeLog
  • share/doc/pmacct/DOCKER.md
  • share/doc/pmacct/FAQS
  • share/doc/pmacct/FLOW_AUGMENTATION_PROCESS_DESCRIPTION.md
  • share/doc/pmacct/INSTALL
  • share/doc/pmacct/INTERNALS
  • share/doc/pmacct/IPFIX
  • share/doc/pmacct/LOOKING_GLASS_FORMAT
  • share/doc/pmacct/MSGLOG_DUMP_FORMATS
  • share/doc/pmacct/PLUGINS
  • share/doc/pmacct/QUICKSTART
  • share/doc/pmacct/README.telemetry
  • share/doc/pmacct/README_BGP_BMP_HA.md
  • share/doc/pmacct/SIGNALS
  • share/doc/pmacct/TRIGGER_VARS
  • share/doc/pmacct/UPGRADE
  • share/examples/pmacct/allow.lst.example
  • share/examples/pmacct/amqp/amqp_receiver.py
  • share/examples/pmacct/avro/avro_file_decoder.py
  • share/examples/pmacct/bgp_agent.map.example
  • share/examples/pmacct/bgp_md5.lst.example
  • share/examples/pmacct/bgp_xconnects.map.example
  • share/examples/pmacct/custom/.deps/libcustom_la-libcustom.Plo
  • share/examples/pmacct/custom/.libs/libcustom.a
  • share/examples/pmacct/custom/.libs/libcustom_la-libcustom.o
  • share/examples/pmacct/custom/Makefile
  • share/examples/pmacct/custom/Makefile.am
  • share/examples/pmacct/custom/Makefile.in
  • share/examples/pmacct/custom/libcustom.c
  • share/examples/pmacct/custom/libcustom.h
  • share/examples/pmacct/custom/libcustom_la-libcustom.lo
  • share/examples/pmacct/custom/libcustom_la-libcustom.o
  • share/examples/pmacct/custom/nfacctd-custom.conf.example
  • share/examples/pmacct/flow_to_rd.map.example
  • share/examples/pmacct/kafka/kafka_consumer.py
  • share/examples/pmacct/lg/.deps/pmbgp-pmbgp.Po
  • share/examples/pmacct/lg/Makefile
  • share/examples/pmacct/lg/Makefile.am
  • share/examples/pmacct/lg/Makefile.in
  • share/examples/pmacct/lg/pmbgp
  • share/examples/pmacct/lg/pmbgp-pmbgp.o
  • share/examples/pmacct/lg/pmbgp.c
  • share/examples/pmacct/lg/pmbgp.h
  • share/examples/pmacct/lg/pmbgp.py
  • share/examples/pmacct/lpref.map.example
  • share/examples/pmacct/med.map.example
  • share/examples/pmacct/misc/gnuplot-example.sh
  • share/examples/pmacct/misc/gnuplot.script.example
  • share/examples/pmacct/misc/mrtg-example.sh
  • share/examples/pmacct/misc/mrtg.conf.example
  • share/examples/pmacct/misc/rrdtool-example.sh
  • share/examples/pmacct/networks.lst.example
  • share/examples/pmacct/nfacctd-print.conf.example
  • share/examples/pmacct/nfacctd-sql.conf.example
  • share/examples/pmacct/pcap_interfaces.map.example
  • share/examples/pmacct/peers.map.example
  • share/examples/pmacct/pmacctd-imt.conf.example
  • share/examples/pmacct/pmacctd-multiple-plugins.conf.example
  • share/examples/pmacct/pmacctd-sql.conf.example
  • share/examples/pmacct/pmacctd-sqlite3.conf.example
  • share/examples/pmacct/ports.lst.example
  • share/examples/pmacct/pretag.map.example
  • share/examples/pmacct/primitives.lst.example
  • share/examples/pmacct/probe_netflow.conf.example
  • share/examples/pmacct/probe_sflow.conf.example
  • share/examples/pmacct/sampling.map.example
  • share/examples/pmacct/systemd/systemd_service_file.md
  • share/examples/pmacct/tee_receivers.lst.example
  • share/pmacct/CONFIG-KEYS
  • share/pmacct/FAQS
  • share/pmacct/QUICKSTART
  • share/pmacct/README.GeoIP
  • share/pmacct/README.cos
  • share/pmacct/README.custom_primitives
  • share/pmacct/README.etype
  • share/pmacct/README.export_proto
  • share/pmacct/README.iface
  • share/pmacct/README.label
  • share/pmacct/README.mask
  • share/pmacct/README.mpls
  • share/pmacct/README.mysql
  • share/pmacct/README.nat
  • share/pmacct/README.pgsql
  • share/pmacct/README.sampling
  • share/pmacct/README.sqlite3
  • share/pmacct/README.tag2
  • share/pmacct/README.timestamp
  • share/pmacct/README.tunnel

The first 100 are listed.

distinfo 1
FileSizeSHA256
pmacct-1.7.9.tar.gz2.132268e+0694185c33d659772035c63be0a82601bb9eb064fb4be1d68ba279b47204b2750a
Master sites 1
  • http://www.pmacct.net/

Commit history 4

DateCommitCreditsLog message
5257c02573 Piotr Kubaj net-mgmt/pmacct: fix build on big-endian architectures
1. pmacct.h redefines the system byte-order macros, which fails because of -Werror=macro-redefined. 2. POWER passes configure's unaligned test, but then Assign16(a,b) a=b truncates a 16-bit ethertype into a 1-byte lvalue. Force byte-copy Assign macros to fix it.
d6250b82ec Olivier Cochard Revert "sysutils/edk2: fix network boot on bhyve"
This reverts commit 3fcead9dc69a1fb01bf4200ce3b079e942b57f39. Wrongly added non-related files to previous commit.
3fcead9dc6 Olivier Cochard sysutils/edk2: fix network boot on bhyve
NetworkPkg's DxeNetLib needs EFI_RNG_PROTOCOL, and the Bhyve build's only producer is VirtioRngDxe, which never binds since bhyve has no virtio-rng device. RngDxe uses RDRAND instead and needs no device. TcpDxe depexes gEfiHash2ServiceBindingProtocolGuid, so add Hash2DxeCrypto too; without TcpDxe there is no HttpServiceBinding. Also enable HTTP boot. PR: 298499 Approved by: manu Sponsored by: Netflix
d8c2989dee Kurt Jaeger net-mgmt/pmacct: update 1.7.8 -> 1.7.9
- Note: PGSQL option is broken - fixes build problem with libcdada PR: 298037 Reported-by: [email protected] Reported-by: olivier