一、安装weathermap0.98所需环境
1、系统环境
[root@cacti ~]# cat /etc/redhat-release
CentOS release 6.8 (Final)
2、cacti环境
cacti0.8.8d(前提是cacti可以正常使用)
保证cacti登陆用户可以看到Plugin Management(插件管理)选项
如果没有
console->User Management->admin在Plugin Management 前打挑
3、weathermap官网地址:https://network-weathermap.com
4、官方安装文档:http://network-weathermap.com/manual/0.98/pages/main.html#installation
5、作为cacti插件安装文档:
http://network-weathermap.com/manual/0.98/pages/install-cacti-editor.html
6、下载地址:https://github.com/howardjones/network-weathermap/releases/tag/version-0.98
7、其他版本下载地址:https://github.com/howardjones/network-weathermap/tags
二、安装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、安装完成
Management里会有weathermap
如果没有weathermap
报错修改
1、如果修改图的时候提示
解决:
[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
网友评论