4、Cacti插件安装
monitor插件,提供更简略、直观的设备状态图示;
thold插件,提供设备异常预警。
Settings插件,可以提供邮件提醒功能
由于安装的是0.8.7i基本版,而该版本没有配套的插件工具,所以只好升级这个版本
4.1下载最新的cacti版本
目前最新为0.8.8a版本,下载到本地。
Cd /
Mkdir download
Cd download
wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz
4.2备份原来的文件
Mv –rf /var/www/localhost/htdocs/cacti /var/www/localhost/htdocs/cactibackup
Mkdir /var/www/localhost/htdocs/cacti
4.3升级cacti到0.8.8a
Tar zxvf cacti-0.8.8a.tar.gz /var/www/localhost/htdocs/cacti/
4.4修改配置文件
cd /var/www/localhost/htdocs/cacti
vi include/config.php
$database_type = "mysql"; $database_default = "cactidb"; $database_hostname = "localhost"; $database_username = "cactiuser"; $database_password = "cactipass"; $database_port = "3306"; $database_ssl = false;
|
4.5登录cacti完成升级
完成升级安装,登录后可以看到多出一个“Plugin Management”选项,升级成功!
4.6插件的安装
Cd /download
Wget http://cactiusers.org/downloads/settings.tar.gz
Wgethttp://cactiusers.org/downloads/monitor.tar.gz
Wgethttp://cactiusers.org/downloads/thold.tar.gz
Tar zxvf monitor-v1.2-1.tgz –C /var/www/localhost/htdocs/cacti/plugins/
Tar zxvf thold-v0.4.9-2.tgz–C/var/www/localhost/htdocs/cacti/plugins/
Tar zxvf settings-v0.7-1.tgz-C/var/www/localhost/htdocs/cacti/plugins/
4.7登录到cacti,进入插件管理,如下图,
点击安装,开启,如下图安装完成
如下图monitor界面