Ganglia 监控 Grid Report timezone 默认时区 为 零时区 +0
现在要修改为 东八区 +8
具体操作如下
modify ganglia-web report timezone +0 --> +8
vim /apps/svr/httpd-2.4.48/htdocs/ganglia/header.php
// add timezone GMT+8
ini_set('date.timezone', 'PRC');
详细记录:
- before add
<?php
session_start();if (isset($_GET['date_only'])) {$d = date("r");echo $d;exit(0);
}
- after add
<?php
session_start();// add timezone GMT+8
ini_set('date.timezone', 'PRC');if (isset($_GET['date_only'])) {$d = date("r");echo $d;exit(0);
}
- then restart gmetad
[root@ganglia-oe-101 ~]# /apps/sh/gmetad restart
Shutting down GANGLIA gmetad: [ OK ]
Starting GANGLIA gmetad: [ OK ]
[root@ganglia-oe-101 ~]#