成功安装好weathermap0.97a-基于本博客的cacti安装成功后 (cacti-Version 0.8.8b) 以及备份

简介:

建weathermap过程

cd /usr/share/cacti/plugins

wget http://network-weathermap.com/files/php-weathermap-0.97a.zip

unzip php-weathermap-0.97a.zip

chown -R apache:apache weathermap/

chmod -R 777 weathermap/configs/

chmod -R 777 weathermap/output/

vi weathermap/editor.php

$ENABLED=false; 改为 $ENABLED=true;

vi /etc/selinux/config

将SELINUX=enforcing改为SELINUX=disabled

shutdown -R now 重启设备

然后就成功了,安装使用教程参考如下:

http://www.cactifans.org/cacti/867.html

备份weathermap数据从旧服务器到一台新服务器重建cacti过程:

1-从旧服务器上先备份好mysql数据库,参见cacti备份过程那样子先备份好cacti先,

安装cacti setting thold weatermap0.97a

恢复cacti mysql数据库,--参见本blog第一篇文章的cacti恢复法就可以了。

2-a先在旧服务器备份weathermap拓扑图文件

进入旧的服务器 cd /usr/share/cacti/plugins/weathermap/configs

ls 然后就看到如下的:

找到类像这样的文件:

customer.conf HK-SZ_GIA_backbone_CE.conf MPLS.conf simple.conf

这四个文件就是你的旧服务器的拓扑图文件,用xshell 4.0 绿色的新建文件传输,cd /usr/share/cacti/plugins/weathermap/configs 然后一个个从旧服务器下载到本地,例如:get customer.conf .......

b-在新服务器恢复备份weathermap拓扑文件

在新的服务器 ,用xshell 4.0 绿色的新建文件传输

cd /usr/share/cacti/plugins/weathermap/configs

一个个从本地上传到新服务器,例如:put customer.conf .......

这个时候 你再登陆你的cacti新服务器,你就会看到你的weathermap备份成功了,心情大好呀!哈哈!^^

附加的:怎样让背景图变大一些,可以画更加多的内容

cd /usr/share/cacti/plugins/weathermap/images

在这个目录下找到自己喜欢的图,那个全黑的原版图是挺好的,用PS改分辨率为1600*1000 或者更大,上传到这个目录下 在map属性下加一个背景图就成功了 done 。

PS:如果添加node 或者link 出错导致没有办法编辑weathermap,可以cd /usr/share/cacti/plugins/weathermap/configs 找到对应的文件 导出来用文本文件notepad delete去掉对应的添加的node或link 然后再放回服务器去 就又可以用的了。

成功的---

传上服务的文件 如果不能编辑 添加node 就 chmod -R 777 对应文件名 就可以编辑了

相关文章
|
监控 关系型数据库 Linux
|
Web App开发 关系型数据库 PHP
CentOS 6.x + Apache+ PHP + MySQL + EduSoho[文档]
版权声明:转载请注明出处:http://blog.csdn.net/dajitui2024 https://blog.csdn.net/dajitui2024/article/details/79396619 ...
1967 0
|
Web App开发 Ubuntu 关系型数据库
|
Web App开发 存储 关系型数据库
|
存储 PHP 关系型数据库
|
Web App开发 监控 关系型数据库
|
Web App开发 监控 关系型数据库