-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heartbeating #448
Comments
Yes you are right |
@Lutzion
Also i found out another bug in rep-hb-dashboard.php Line 175 |
A few days ago, i installed daloradius.
As a last step, i tried to transfer the heartbeat-data by calling dalo-dashboard-update-openwrt.sh from time to time.
dalo-dashboard-update-openwrt.sh
In the file dalo-dashboard-update-openwrt.sh there is a line saying
# Do not edit past this point
In fact i had to edit, because my wan-device is not eth0.2, but simply wan.
So maybe it would be better to have a section with:
WAN_DEV=
LAN_DEV=
WLAN_DEV=
and then work with
... wan_ip=
ifconfig $WAN_DEV | awk '/inet addr/{print substr ($2,6)}'
...The variable firmware_revision is missing, so i added
firmware_revision=
cat /etc/os-release | awk '/OPENWRT_RELEASE/{print}' | sed "s/\"//g;s/ /%20/g;s/OPENWRT_RELEASE=//"
Replacing " and spaces is neccessary to not get error 400.
On the server side i had to edit heartbeat.php and db_open.php.
db_open.php:
with my php8.1
if not checked isset($_SESSION) before array_key_exists('location_name', $_SESSION), the function exits.
[Tue May 02 11:33:50.239350 2023] [php:error] [pid 1822951] [client 192.168.64.203:33148] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/daloradius/app/common/includes/db_open.php:39\nStack trace:\n#0 /var/www/html/daloradius/app/operators/heartbeat.php(67): require_once()\n#1 {main}\n thrown in /var/www/html/daloradius/app/common/includes/db_open.php on line 39
So change to
heartbeat.php
There are errors
[Mon May 01 17:15:36.408716 2023] [php:error] [pid 1572012] [client 192.168.64.217:57020] PHP Parse error: syntax error, unexpected token ";" in /var/www/html/daloradius/app/operators/heartbeat.php on line 29
The lines
are all missing a ) at the and, so change to
Seems that php8.1 complains a bit more about errors than previous versions.
Many thanks for your work
Lutz
The text was updated successfully, but these errors were encountered: