cacti install on ubuntu

安装cacti需要的软件需要

nginx + php + mysql + rrdtool + cacti + snmp

1.nginx 安装配置

首先按照如下命令安装,明显是马虎不细心
./configure --prefix=/app/web/nginx --with-http_stub_status_module --with-http_ssl_module --without-http_rewrite_module --without-http_fastcgi_module --without-http_gzip_module
执行后,显示
nginx: [emerg] using regex "\.php$" requires PCRE library in /app/web/nginx/conf/nginx.conf:65

执行过程中报错:xml2-config not found install libxml2
需要安装libxml2-dev

错,应该如下:
./configure --prefix=/app/web/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre
针对上面的错需要添加:--with-pcre

 

2.php安装配置

php安装
./configure --prefix=/app/web/php --enable-fastcgi --enable-fpm

3.mysql 安装

apt-get install mysql-client mysql-server

4.rrdtool 安装

apt-get install rrdtool

5.安装snmp

apt-get install snmp snmpd

6.下载cacti

wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz  
wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8a.tar.gz

 

相应的配置包含了很多,需要写几篇来完善:

1.nginx

2.php

3.snmp配置

4.cacti创建监控设备

其中3,4属于重点

 
posted @ 2013-11-05 17:43  silence.li  阅读(509)  评论(0编辑  收藏  举报