Discussion:
FreeRadius tools to gather statistics
work vlpl
2018-10-17 06:35:12 UTC
Permalink
Hi,

From documentation/wiki I found two tools to gather statistics from
FreeRadius - radsniff and status server.
First show statistic for radius protocol packets.
Second can show counters for Access-Accept/Access-Reject response -
this is exactly what I need. But I have a little concern about it. If
radius server will stop working, counters will be reseted. And if for
example I query status server every 10 seconds, then statistics at
least for last 10 seconds may be lost - it is not big deal but it is
not desirable.

Are there any tools to gather statistics from FreeRadius? Excluding
log processing.
Maybe there is exists mechanism to save status server counter between
FreeRadius server restarts? For example like
iptables-save/iptables-restore can do.

And default configuration for status servers contains the next warning
"Due to internal limitations, the statistics might not be exactly up
to date. Do not expect all of the numbers to add up perfectly."

Does it means that statistic counters always are approximate values?
Or if FreeRadius will idle for some time the counters values will be
updated to actual values?

--
Vladimir
-
List info/subscribe/unsubscribe? See http://www.f
Alan DeKok
2018-10-17 10:45:59 UTC
Permalink
Post by work vlpl
From documentation/wiki I found two tools to gather statistics from
FreeRadius - radsniff and status server.
First show statistic for radius protocol packets.
Second can show counters for Access-Accept/Access-Reject response -
this is exactly what I need. But I have a little concern about it. If
radius server will stop working, counters will be reseted. And if for
example I query status server every 10 seconds, then statistics at
least for last 10 seconds may be lost - it is not big deal but it is
not desirable.
That's how statistics work. How do you suggest that the server keeps statistics when it's not running?
Post by work vlpl
Are there any tools to gather statistics from FreeRadius? Excluding
log processing.
See files in the "scripts/munin" directory. Or, "scripts/collectd". Those are both tools which collect and graph statistics.
Post by work vlpl
Maybe there is exists mechanism to save status server counter between
FreeRadius server restarts? For example like
iptables-save/iptables-restore can do.
No.
Post by work vlpl
And default configuration for status servers contains the next warning
"Due to internal limitations, the statistics might not be exactly up
to date. Do not expect all of the numbers to add up perfectly."
Does it means that statistic counters always are approximate values?
Or if FreeRadius will idle for some time the counters values will be
updated to actual values?
It means that if you're getting statistics once a second, then the statistics are only updated to that second.

Statistics in a running system aren't perfect. They're close to real-time, but not exact. That's how statistics works.

Alan DeKok.


-
List info/subscribe/unsu
work vlpl
2018-10-17 11:01:30 UTC
Permalink
Post by Alan DeKok
That's how statistics work. How do you suggest that the server keeps statistics when it's not running?
Something like WAL in databases or iptables-save/restore but use it
only in crash cases.
And you already answered on it, so this is no more a question.
Post by Alan DeKok
It means that if you're getting statistics once a second, then the statistics are only updated to that second.
Thank you for clarifying it, and other answers.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list
Loading...