1
0
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:
SourceDoctor
2020-07-04 13:13:32 +02:00
committed by GitHub
parent e022601f32
commit a6f943fc83

View File

@@ -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'