zabbix安装zatree 实现图形树状化

官网:https://github.com/spide4k/zatree

[root@SERVER-ZABBIX ~]# yum install git
[root@SERVER-ZABBIX ~]# git clone https://github.com/spide4k/zatree.git zatree
[root@SERVER-ZABBIX ~]# ZABBIX_PATH=/var/www/html/zabbix
[root@SERVER-ZABBIX ~]# cp -rf zatree/zabbix-2.2.x $ZABBIX_PATH/zatree
[root@SERVER-ZABBIX ~]# cd $ZABBIX_PATH/zatree/addfile
[root@SERVER-ZABBIX addfile]# cp -f CLineGraphDraw_Zabbix.php CGraphDraw_Zabbix.php CImageTextTable_Zabbix.php $ZABBIX_PATH/include/classes/graphdraw/
[root@SERVER-ZABBIX addfile]# cp -f zabbix.php zabbix_chart.php $ZABBIX_PATH/
[root@SERVER-ZABBIX addfile]# cp -f CItemValue.php $ZABBIX_PATH/api/classes/
[root@SERVER-ZABBIX addfile]# cp -f menu.inc.php $ZABBIX_PATH/include/
cp:是否覆盖"/var/www/html/zabbix/include/menu.inc.php"? y
[root@SERVER-ZABBIX addfile]# cp -f main.js $ZABBIX_PATH/js/
cp:是否覆盖"/var/www/html/zabbix/js/main.js"? y
[root@SERVER-ZABBIX addfile]# cp -f API.php $ZABBIX_PATH/include/classes/api/
cp:是否覆盖"/var/www/html/zabbix/include/classes/api/API.php"? y
[root@SERVER-ZABBIX addfile]#vi  $ZABBIX_PATH/zatree/zabbix_config.php
<?php
global $zabbix_api_config;

$zabbix_api_config=array(
 'api_url'=>'api_jsonrpc.php',
 'user'=>'admin', //web登陆的用户名
 'passowrd'=>'zabbix', //web登陆的密码
 'graph_url'=>'zabbix_chart.php',
);

?>

 

你可能感兴趣的:(下载文件,classes,include)