Automatic baseline calculation for FastNetMon

Please be careful, this code is experimental new feature, please do not use it without proper and very detailed testing.

You can download current version here.

SHA for file: 8493660f95d34cc86762e91195bca8d7d6f1c4de Please validate it before using.

Known restrictions:

  • Removes all existing non global host groups
  • IPv4 only
  • Support /32-/19 networks only due to Clickhouse restrictions for query size
  • Does not reload FastNetMon automatically


  • Metric (per host bandwidth) export to Clickhouse
  • API access to FastNetMon and you need to enable API

Threshold calculation tool has following configuration file at /etc/fastnetmon/baseline_magician.conf:

All fields with expression suffix keep math expressions to calculate threshold/baseline value from average value of particular threshold from Clickhouse (calculated over last 7 days).

This tool can create host group for each your network according to thresholds configured according to average bandwidth usage from Clickhouse.

NB! This tool removes all your existing host groups and keeps only global host group. Be very careful!

It does not restart FastNetMon to apply changes. You need to do it manually.
In case of any issues, please report them to our support team.