cluster report not displayed

Bug #1822048 reported by Paul Jähne
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ganglia-web (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When you open the ganglia webfrontend in a browser there is nothing displayed in the cluster report. The host views work. There should be an overview of the cluster.

/var/log/apache2/error.log:
PHP Fatal error: Uncaught Error: [] operator not supported for strings in /usr/share/ganglia-webfrontend/cluster_view.php:34\nStack trace:\n#0 /usr/share/ganglia-webfrontend/cluster_view.php(757): get_picker_metrics(Array, Array, '/usr/share/gang...', 'rrdtool')\n#1 /usr/share/ganglia-webfrontend/index.php(51): include_once('/usr/share/gang...')\n#2 {main}\n thrown in /usr/share/ganglia-webfrontend/cluster_view.php on line 34, referer: https://monitoring/ganglia/

Description: Ubuntu 18.04.2 LTS
Release: 18.04
ganglia-webfrontend:
  Installed: 3.6.1-3
  Candidate: 3.6.1-3
  Version table:
 *** 3.6.1-3 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
        100 /var/lib/dpkg/status

Tags: patch
Revision history for this message
Paul Jähne (sethosii) wrote :

Removing the array operator seems to fix the problem.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "cluster_view.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Paul Jähne (sethosii) wrote :

The previous patch had a problem on updating (and probably for multiple clusters). This one doesn't and this is what is in the upstream repo: https://github.com/ganglia/ganglia-web/blob/master/cluster_view.php#L25.

Revision history for this message
Martin Gabelmann (m-gabelmann) wrote :

Can confirm, applying the upstream patch fixes it. So, updating to the latest ganglia-web version would be nice.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ganglia-web (Ubuntu):
status: New → Confirmed
Revision history for this message
Rene Meier (meier.rene) wrote :

I have the same issue and the upstream patch fixes it.

Revision history for this message
trautenberg (trautenberg) wrote :

I had the same problem. The upstream patch fixes it just partially. The view is not the way it should be.

Revision history for this message
trautenberg (trautenberg) wrote :

The problem was finally easy to be fixed. As stated above, the problem is in cluster_view.php, line34. Just going to line 26 and substituting

  $context_metrics = "";

with

  $context_metrics = array();

fixes the whole problem! The solution was found at https://github.com/ganglia/ganglia-web/issues/324.

Revision history for this message
Sam Morrison (sorrison) wrote :

The affects Ubuntu 20.04 too

Revision history for this message
papamoose (papam0ose) wrote :

+1 for 20.04. Please patch this. I've wasted so much time thinking this was a configuration issue on my end.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.