cacti安装报错php,centos6安装cacti0.8.8d插件weathermap0.98

一、安装weathermap0.98所需环境

1、系统环境

[root@cacti ~]# cat /etc/redhat-release

CentOS release 6.8 (Final)

2、cacti环境

cacti0.8.8d(前提是cacti可以正常使用)

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

保证cacti登陆用户可以看到Plugin Management(插件管理)选项

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

如果没有

console->User Management->admin在Plugin Management 前打挑

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

5、作为cacti插件安装文档:

二、安装weathermap插件

1、安装php-gd库(如果有就可以不安装)

[root@cacti ~]# yum install -y php-gd

[root@cacti ~]# service httpd restart

2、下载插件weathermap(下载到cacti下的plugin目录下)

[root@cacti ~]# cd /var/www/html/cacti/plugins

[root@cacti plugins]# wget https://github.com/howardjones/network-weathermap/archive/version-0.98.zip

##下载哪个都可以,只是解压方法不一样

[root@cacti plugins]# ls

index.php version-0.98.zip

[root@cacti plugins]# unzip version-0.98.zip

[root@cacti plugins]# mv network-weathermap-version-0.98/ weathermap

3、更改权限

[root@cacti plugins]# chown -R apache:apache weathermap/

[root@cacti plugins]# chmod 777 weathermap/configs/

[root@cacti plugins]# chmod 777 weathermap/output/

4、安装完成

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

Management里会有weathermap

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

如果没有weathermap

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

报错修改

1、如果修改图的时候提示

bcfe3d74b586?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

解决:

[root@cacti weathermap]# vim /var/www/html/cacti/plugins/weathermap/editor.php

$ENABLED=true;

2、如果点击修改图是报错:“ Required PHP extensions are not present in your mod_php/ISAPI PHP module. Please check your PHP setup to ensure you have the GD extension installed and enabled.”

解决:

没有安装php-gd

[root@cacti ~]# yum -y install php-gd

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值