lirantal / daloradius

daloRADIUS is an advanced RADIUS web management application for managing hotspots and general-purpose ISP deployments. It features user management, graphical reporting, accounting, a billing engine, and integrates with OpenStreetMap for geolocation. The system is based on FreeRADIUS with which it shares access to the backend database.
http://www.daloradius.com
GNU General Public License v2.0
654 stars 335 forks source link

Accounting information not being updated #515

Open lwbnet opened 5 months ago

lwbnet commented 5 months ago

Hi,

I've got PPPoE users authenticating from an LNS/NAS. Upload/Download/usage figures get updated upon start/stop, however these values don't update at all until a disconnect/reconnect happens. My NAS is sending regular Interim-Update

Acct-Status-Type = Interim-Update Acct-Input-Octets = 846643444 Acct-Output-Octets = 3378767493 Acct-Input-Packets = 96192173 Acct-Output-Packets = 131810242

Am I missing something simple to get this automatically updating?

lwbnet commented 5 months ago

Actually, this appears to be an issue with the Accounting part of the operators section, accounting figures are being updated under Reports > Online users

The issue looks to be with php and when browsing to acct-username.php?username=blah

From the Apache2 logs:

[php:error] [pid 1345] [client 185.x.x.x:43179] PHP Fatal error: Uncaught ArgumentCountError: 4 arguments are required, 3 given in /var/www/daloradius/app/operators/include/management/pages_common.php:377\nStack trace:\n#0 /var/www/daloradius/app/operators/include/management/pages_common.php(377): sprintf()\n#1 /var/www/daloradius/app/operators/acct-username.php(157): printTableHead()\n#2 {main}\n thrown in /var/www/daloradius/app/operators/include/management/pages_common.php on line 377, referer: http://x.x.x.x/mng-list-all.php

lwbnet commented 5 months ago

Any clues on this one?