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
You should note that status requests increment the FreeRADIUS request stats. So LibreNMS polls will ultimately be reflected 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.
-
You should be able to test with the radclient as follows...
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 if you've modified this.
-
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 (secret key, port, etc.) edit freeradius.sh and adjust the config variable accordingly.
-
Edit your snmpd.conf file and add:
extend freeradius /etc/snmp/freeradius.sh
-
Restart snmpd on the host in question.
The application should be auto-discovered as described at the top of the page. If it is not, please follow the steps set out under SNMP Extend
heading top of 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 (secret key, port, etc.) edit freeradius.sh and adjust the config variable accordingly.
-
Edit the freeradius.sh script and set the variable 'AGENT' to '1' in the config.