FreeRADIUS
The FreeRADIUS application extension requires that status_server be enabled in your FreeRADIUS config. For more information see: https://wiki.freeradius.org/config/Status
A status request increments the FreeRADIUS request statistics. The LibreNMS polls therefore appear in your stats/charts.
-
Go to your FreeRADIUS configuration directory (usually /etc/raddb or /etc/freeradius).
-
cd sites-enabled -
ln -s ../sites-available/status status -
Restart FreeRADIUS.
-
Test with radclient:
echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 31, Response-Packet-Type = Access-Accept" | \
radclient -x localhost:18121 status adminsecret
Note that adminsecret is the default secret key in status_server. Change this value after a modification.
-
Copy the freeradius shell script, to the desired host.
wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/freeradius.sh -O /etc/snmp/freeradius.sh -
Make the script executable.
chmod +x /etc/snmp/freeradius.sh -
If you've made any changes to the FreeRADIUS status_server config such as the secret key and the port, edit freeradius.sh and adjust the config variable accordingly.
-
Edit your
snmpd.conffile and add:extend freeradius /etc/snmp/freeradius.sh -
Restart snmpd on the host in question.
LibreNMS discovers the application automatically, as described at the top of the page. If the discovery fails, do the steps under the SNMP Extend heading at the top of the page.
- Install the script to your agent
wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/freeradius.sh -O /usr/lib/check_mk_agent/local/freeradius.sh`
- Make the script executable.
chmod +x /usr/lib/check_mk_agent/local/freeradius.sh
-
If you've made any changes to the FreeRADIUS status_server config such as the secret key and the port, edit freeradius.sh and adjust the config variable accordingly.
-
Edit the freeradius.sh script and set the variable 'AGENT' to '1' in the config.