mirror of
https://github.com/librenms/librenms-agent.git
synced 2024-05-09 09:54:52 +00:00
FreeRadius optional Configfile (#317)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CONFIGFILE=/etc/snmp/freeradius.conf
|
||||
|
||||
# Set 0 for SNMP extend; set to 1 for Check_MK agent
|
||||
AGENT=0
|
||||
|
||||
@@ -8,6 +10,10 @@ RADIUS_SERVER='localhost'
|
||||
RADIUS_PORT='18121'
|
||||
RADIUS_KEY='adminsecret'
|
||||
|
||||
if [ -f $CONFIGFILE ]; do
|
||||
. $CONFIGFILE
|
||||
done
|
||||
|
||||
# Default radclient access request, shouldn't need to be changed
|
||||
RADIUS_STATUS_CMD='Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 31, Response-Packet-Type = Access-Accept'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user