Freeradius2 + CP, how to redirect output of datacoutner script to portalauth.log
-
Hi,
I have the CP setup to limit users to x GBs of data with authenticate every minute enabled to kick them when the quota is over. The system tab of logs is flooded with output of datacoutner_auth.sh every minute.
How can I:
-
Redirect the out of datacoutner_auth.sh to the portalauth tab?
-
Change the re-authenticate time to maybe 10 minutes?
I changed log file in datacoutner_auth.sh script to portalauth.log like this
Quote
logger -f /var/log/system.log "FreeRADIUS: User $USERNAME has used $USEDOCTETSUSERNAMEMB MB of $MAXOCTETSUSERNAMEMB MB $TIMERANGE allotted traffic. The login request was accepted."
TO
Quote
logger -f /var/log/portalauth.log "FreeRADIUS: User $USERNAME has used $USEDOCTETSUSERNAMEMB MB of $MAXOCTETSUSERNAMEMB MB $TIMERANGE allotted traffic. The login request was accepted."
This has no effect at all. The messages still show up in system tab.
-
-
Bump. Anyone?
-
Bump. Still looking for a solution.
-
bump.
Edit: Eve: The issue persists after a reboot. It seems like I need to call the logportalauth which is used in php. How can i call that from shell script?