Bug #4077
closedGateways Status Widget status column does not update
100%
Description
On the Dashboard, Gateways Status widget, the RTT and Loss columns update every 10 seconds. But the Status column does not update. I have been taking WANs down and up and noticed this. If you refresh the whole dahsboard page then it gives current status.
The problem is that the "id=gatewayn" for the status column box got lost in gateways.widget.php some time ago. So the script that updates each box does not find a matching gatewayn for the Status column.
Updated by Phillip Davis about 11 years ago
Pull request: https://github.com/pfsense/pfsense/pull/1366
After this the status updates - pull the cable out of a WAN, it changes from Online to Offline.
The background color of the text "Offline" changes to pink. But the rest of the box stays light green. I had a look in /usr/local/www/includes/functions.inc.php get_gatewaystats() where it sends a whole bunch of html targeted for that Status box. I messed about a bit putting things in and out but could not make it change the color of the whole box. If someone cares and knows how to fix that bit also, then go ahead - I'm sure it will be simple!
Updated by Renato Botelho about 11 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Merged
Updated by Phillip Davis almost 11 years ago
I think it was this commit that fixed the status background color updating: https://github.com/pfsense/pfsense/commit/6404148cf3d8a81fcd6333a923fe41dd91ae78d2
In 2.2-RELEASE the background color, text and everything of the Gateways Status Widget status column is updating.
Updated by Phillip Davis over 10 years ago
So I believe this can be marked Resolved in 2.2
Updated by Renato Botelho over 10 years ago
- Status changed from Feedback to Resolved