Reporting on active users using radwho
Djerk Geurts
djerk at maizymoo.com
Thu May 12 11:00:00 UTC 2022
Over the last week, I’ve spent some time getting radsniff telemetry into Grafana via Collectd and Telegraf. Sadly radsniff direct to Telegraf doesn’t work, but that’s another story.
Wanting to graph online users I then scripted a rough little bit of bash to take the output of `radwho -r -n` and output the number of active users in influx format to Telegraf. However I’ve noticed that at midnight the reported online users drop to 0 to then slowly ramp up again. This may well be normal behaviour for what I should expect from rad who output, but it’s not what I’d like to see in my graph, it’s worrying to see the number of active xDSL subscribers drop to 0. I’d rather avoid having to state such a caveat.
Is there a better way to track active users using the data available from FreeRADIUS server, its tools or directly from the (MySQL) database?
—
Thanks,
Djerk Geurts
More information about the Freeradius-Users
mailing list