packetfence icon indicating copy to clipboard operation
packetfence copied to clipboard

"chart not found on url" in cluster dashboard.

Open BrettMerrick opened this issue 4 months ago • 2 comments

Describe the bug Charts are not available on the dashboard in a cluster installation

To Reproduce Steps to reproduce the behavior:

  1. Install a 3 node cluster as per the guide.
  2. Visit the dashboard

Screenshots Screenshot 2024-10-17 at 11 03 46 AM

Expected behavior Charts to display

Version PacketFence-ZEN-v14.0.0

Additional context Seems to only affect charts where the mode is COMBINED and hosts is a comma separated list: https://github.com/inverse-inc/packetfence/blob/a4e19c976c558114ad1609eb33b0fdb622be3a7c/html/pfappserver/root/src/views/Status/dashboard/_components/TheView.vue#L167-L175

The dev console shows a "Failed to load resource: the server responded with a status of 400 (Bad Request)" because the page is trying to load: https://172.20.13.70:1443/netdata/172.20.13.72,/netdata/172.20.13.71,/netdata/172.20.13.73/api/v1/chart?chart=system.cpu&_=1729112364987

instead of three separate data sources: https://172.20.13.70:1443/netdata/172.20.13.72/api/v1/chart?chart=system.cpu&=1729112364987 https://172.20.13.70:1443/netdata/172.20.13.71/api/v1/chart?chart=system.cpu&=1729112364987 https://172.20.13.70:1443/netdata/172.20.13.73/api/v1/chart?chart=system.cpu&_=1729112364987

BrettMerrick avatar Oct 16 '24 22:10 BrettMerrick