王学昌的笔记

Orioner.Wang

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size
学习笔记 nix-Server cacti0.8.7e安装php-weathermap0.97a

cacti0.8.7e安装php-weathermap0.97a

1、下载解压php-weathermap0.97a,下载地址http://www.network-weathermap.com/download
2、把解压出来的weathermap复制到cacti/plugins/目录下即可。
3、激活weathermap插件,修改cacti目录下的include/config.php的配置文件,在配置中查找/* Default session name - Session name must contain alpha characters */行,在此行下面加入:$plugins[] = 'weathermap';
注意:上面weathermap的名字必须与cacti/plugins/目录下插件目录的名字相同。
4、移除插件时只要修改cacti配置文件,注释掉与插件相关的行即可。
如: //$plugins[] = weathermap';
5、确认Cacti服务器已经安装php的GD库支持,若没有安装GD库,则在Editor的时候,会出现以下提示:
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.
6、确认图像的目录可写,否则会出现以下提示
The map config directory is not writable by the web server user.
查看/var/www/cacti/plugins/weathermap/editor.php
……
$mapdir='configs';
$cacti_base = '../../';
$cacti_url = '/';
……
可知图像目录为/var/www/cacti/plugins/weathermap/configs。赋权限chmod 777 weathermap/configs/
学习笔记 nix-Server cacti0.8.7e安装php-weathermap0.97a
内容的浏览数 : 276307