munin-monitoring / contrib

Contributed stuff for munin (plugins, tools, etc...)
http://munin-monitoring.org
1.05k stars 679 forks source link

feat: add wireguard plugin #1418

Closed pimlie closed 4 months ago

pimlie commented 4 months ago

Added a plugin to monitor wireguard peer statistics, see the example_graphs.

The plugin is a wildcard plugin but can also be used directly like wireguard_, in that case it just monitors all existing wireguard interfaces. The plugin renders one graph that shows the peer count for each wireguard interface, And for each interface there is a graph that shows the traffic statistics of each peer.

A feature that could potentially be added in the future if there is sufficient interest, is a handshake timeout to mark a peer as disconnected. Cause afaik the only way to check if a peer is connected or not is by assuming its disconnect if the last handshake was 2+ minutes ago