ganglia / ganglia-web

Ganglia Web Frontend
BSD 3-Clause "New" or "Revised" License
316 stars 168 forks source link

Cluster View Exception: [] operator not supported for strings #324

Closed riboseyim closed 7 years ago

riboseyim commented 7 years ago

version : ganglia-web-3.7.2

HostView,NodeView,GridView is works. cluster_view.php have this exception.

conf.php just change : $conf['gweb_confdir'] $conf['gmetad_root']

-bash-4.1$ more gmetad.conf | grep -v '#'
data_source "ClusterGDDX" localhost
-bash-4.1$ more gmond.conf | grep -v '#'

cluster {
  name = "ClusterGDDX"
  owner = "unspecified"
  latlong = "unspecified"
  url = "unspecified"
}

udp_send_channel {
        host = 172.31.0.8
        port = 8666
        ttl = 1
}

Fatal error: Uncaught Error: [] operator not supported for strings in /usr/local/apache2/htdocs/ganglia/cluster_view.php:34 Stack trace: #0 /usr/local/apache2/htdocs/ganglia/cluster_view.php(772): get_picker_metrics(Array, Array, '/usr/local/apac...', 'rrdtool') #1 /usr/local/apache2/htdocs/ganglia/index.php(51): include_once('/usr/local/apac...') #2 {main} thrown in /usr/local/apache2/htdocs/ganglia/cluster_view.php on line 34

clusterview_error
riboseyim commented 7 years ago

It's already fixed,haha.

cluster_view.php :: context_metrics is array master (#309) 1 parent 2d3b10a commit 13d426bcf66fb0f27d44847154ba2180884edcd6 @adriansev adriansev committed on 20 Sep 2016 Unified Split Showing 1 changed file with 1 addition and 1 deletion. View 2 cluster_view.php @@ -22,7 +22,7 @@ }

function get_picker_metrics($metrics, $reports, $gweb_root, $graph_engine) {