刚开始学习ganglia监控,按照网的上教程安装了ganglia3.2.0,打开页面后,显示不了图片
求助大神!!
另外在Apache的日志里面 有错误
[Thu Jun 02 16:32:38 2016] [error] [client 172.31.30.40] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /opt/server/apache/web/header.php on line 79
[Thu Jun 02 16:32:38 2016] [error] [client 172.31.30.40] PHP Notice: Undefined index: in /opt/server/apache/web/meta_view.php on line 85
[Thu Jun 02 16:32:38 2016] [error] [client 172.31.30.40] PHP Notice: Undefined index: in /opt/server/apache/web/meta_view.php on line 115
[Thu Jun 02 16:32:38 2016] [error] [client 172.31.30.40] PHP Notice: Undefined index: in /opt/server/apache/web/meta_view.php on line 164
[Thu Jun 02 16:32:38 2016] [error] [client 172.31.30.40] PHP Notice: Undefined index: in /opt/server/apache/web/meta_view.php on line 165
[Thu Jun 02 16:32:38 2016] [error] [client 172.31.30.40] PHP Notice: Undefined variable: names in /opt/server/apache/web/meta_view.php on line 219
[Thu Jun 02 16:32:38 2016] [error] [client 172.31.30.40] PHP Notice: Undefined index: localtime in /var/lib/ganglia/dwoo/templates/default/meta_view.tpl.d17.php on line 85
ERROR: opening '/var/lib/ganglia/rrds/ /__SummaryInfo__/load_one.rrd': No such file or directory
ERROR: opening '/var/lib/ganglia/rrds/ /__SummaryInfo__/cpu_user.rrd': No such file or directory
ERROR: opening '/var/lib/ganglia/rrds/ /__SummaryInfo__/mem_total.rrd': No such file or directory
ERROR: opening '/var/lib/ganglia/rrds/ /__SummaryInfo__/bytes_in.rrd': No such file or directory
备注:
gmetad.conf的配置
data_source "cluster_name" localhost
setuid_username "nobody"
rrd_rootdir "/var/lib/ganglia/rrds/"
gmond.conf的配置
cluster {
name="cluster_name"
owner="nobody"
latlong="unspecified"
url="unspecified"
}
ganglia的web中conf.php配置
$gmetad_root = "/var/lib/ganglia";
$rrds = "$gmetad_root/rrds";
define("RRDTOOL", "/usr/local/rrdtool/bin/rrdtool");