#munin #statistics #daemon #munin-plugin

app munin-if1sec

munin interface graph plugin, 1second resolution

2 releases

0.2.1 Jun 5, 2022
0.2.0 May 23, 2022

#471 in Science


157 lines


A munin plugin to collect interface traffic data once every second.


The plugin uses the /sys filesystem and reads TX/RX statistics from there. Statistics are read once per second and written to a cachefile, whenever munin asks for the data, the content of the cachefile is send.


Compile (or load a released binary, if one is there) and put the binary somewhere. Then link it into the munin plugins dir, with a name that ends in _INTERFACE, like if1sec_eth0 to create graphs of the eth0 interface.

When first called without arguments, if1sec will spawn itself into the background to gather data. This can also be triggered by calling it with the acquire parameter.

Local build

Use cargo build as usual. Note that the release build contains much less logging code than the debug build, so if you want to find out, why something does not work as planned, ensure to use a debug build (cargo build instead of cargo build --release).


Note that I build using musl, as I want fully static binaries. "Normal" rust link against libc, and that may carry symbols that aren't available everywhere (older versions). If you do not have that requirement, not using musl will be fine.


Note that they do not live up to distribution quality, but they do work for an easy install.

Debian package

A minimal Debian package can be build using cargo deb, provided that you installed this feature (cargo install cargo-deb).

RPM package

A minimal package for RPM based systems can be build using cargo generate-rpm, provided that you installed this feature (cargo install cargo-generate-rpm)


~103K SLoC