首页 | 资讯动态 | linux基础 | 系统管理 | 网络管理 | 编程开发 | linux数据库 | 服务器技术 | linux相关 | linux认证 | 嵌入式 | 下载中心 | 专题 | linux招聘 | 镜像站
OKLinux中文技术站
·设为首页
·加入收藏
·联系我们
系统管理: 中文环境 系统管理 桌面应用 内核技术 | Linux基础: 基础入门 安装配置 常用命令 经验技巧 软件应用 | Linux数据库: Mysql Postgre Oracle DB2 Sybase other
网络管理: 网络安全 网络应用 Linux服务器 环境配置 黑客安全 | 编程开发: PHP CC++ Python Perl Shell 嵌入式开发 java jsp | PHP技术: PHP基础 PHP技巧 PHP应用 PHP文摘
Linux资讯 Linux招聘 Linux专题 Apache | Linux相关: 硬件相关 Linux解决方案 Linux认证 企业应用 其它Unix | 相关下载: 资料下载 参考手册 开发工具 服务器类 软路由 其它
 技术搜索:
会员中心 注册会员 高级搜索  
  → 当前位置:首页>网络管理>网络应用>正文

如何在ISConfig服务器上安装Cacti

http://www.oklinux.cn  2006-11-27  来源: howtoforge howtoforge  会员收藏  游客收藏  【 】 

这篇教程将指导我们怎样一步一步地在ISPConfig服务器上安装Cacti监测工具。从标准安装好的ISPConfig服务器或者Apache中安装Cacti不是件麻烦人,很容易搞定。

Version: 1.1
Author: Vinicius Martins <vinicius [at] viniciusmartins [dot] eng [dot] br >
Last edited 11/16/2006

In this article I describe how to install and setup the Cacti in a ISPConfig Server. There aren't many differences from installing in other ISP Managers or standalone Apache installations. I tried many others solutions, but Cacti is very simple and fast to implement.

In Cacti website we find: "Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices."

I use a Ubuntu Edgy Eft (6.10), and followed the The Perfect Setup - Ubuntu 6.10 Server (Edgy Eft).

I will use as an example:
-          Domain Name: monitor.domain.br
-          MySQL Database Name: web1_db1
-          MySQL Username: web1_u1
-          MySQL User Password: mysqlpassword
-          Website Sytem Folder: /var/www/web1/web/
-          Cacti Version: 0.8.6i

Step 1 - Create a website and a database:

In ISPConfig, create a website via “New site” in the main menu.

On the tab called “Basis” use monitor for the hostname and domain.br for the domain name. Enable MySQL and PHP scripts for this website but disable PHP Safe Mode.

Go to your new website, in tab "Options", In Database click in the New button to create a database web1_db1 and user web1_u1.

Step 2 - Install Cacti dependencies:

To install Cacti, the easy and fast way is use apt-get. Using user with administrative permissions, run in the shell:

sudo apt-get install cacti

The Cacti is installed now, but not the last version. In Ubuntu/Debian respository have the 0.8.6c version, and in the Cacti website has newer version, 0.8.6i.

Now, I will remove only the older Cacti version, not your dependencies:

sudo dpkg -r cacti

To enable the snmp, I will install the snmpd packet:

sudo apt-get install snmpd

Step 3 - Install the new version of Cacti:

Now, I will download Cacti to our website folder:

cd /var/www/web1/web/
sudo wget http://www.cacti.net/downloads/cacti-0.8.6i.tar.gz

Extract Cacti with the command:

sudo tar xzvf cacti-0.8.6i.tar.gz
cd cacti-0.8.6i/
sudo mv * ../
cd ../
sudo rmdir cacti-0.8.6i

Remove the tar.gz files and .htaccess files:

sudo rm *.tar.gz
sudo rm .htaccess
sudo rm config/.htaccess

Step 4 - Setup the Cacti database:

Create the MySQL database (If you prefer, you can use the PHPMyAdmin):

sudo mysqladmin --user=web1_u1

Import the default cacti database:

sudo mysql web1_db1 < cacti.sql

Set up database:

sudo mysql --user=web1_u1 mysql
mysql> GRANT ALL ON web_db1.* TO web1_u1@localhost IDENTIFIED BY mysqlpassword;
mysql> flush privileges;

Step 5 - Configure Crontab and Privileges:

To run every five minutes, and get your system stats, we need to add one line in Crontab:

*/5 * * * * php /var/www/cacti/poller.php > /dev/null 2>&1

Set the appropriate permissions on cacti's directories for graph/log generation.

sudo chown -R www-data:www-data rra
sudo chown -R www-data:www-data logs

Step 6 - Plugin Architecture:

The Plugin Architecture for Cacti was designed to be both simple in nature and robust enough to allow freedom to do almost anything in Cacti. Cacti itself is designed nicely enough that integrating into it is fairly easy with very little modifications necessary. Eventually Cacti will come with a standard plugin architecture that will allow you to create addons without the need to modify your installation, but until that time comes (we are working on it) you will need to follow the directions below.

sudo wget http://download.cactiusers.org/downloads/cacti-plugin-arch.gzip
sudo tar xvzf cacti-plugin-arch.tar.gz

In the Architecture extracted folder, I will replace the original files with that new files:

sudo mv cacti-plugin-arch/files-0.8.6i /var/www/web1/web

Once this is done, you will have successfully completed installing the Plugin Architecture. It enable to use many plugins developed by others users.

See this link for information about this plugins: http://cactiusers.org/wiki/Homepage.

Step 7 - Configure Cacti:

In the same folder (/var/www/web1/web/):

editor include/config.php

Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.

$database_default = "web1_db1";
$database_hostname = "localhost";
$database_username = "web1_u1";
$database_password = "mysqlpassword";

Step 8 - First Access:

Go to http://monitor.domain.br, the login page will show.

Cacti Login

Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen.

Step 9 - The Cacti Environment:

Cacti Environment

Step 10 - More information:

To add more plugins to other things like: No-Break, MotherBoard Monitor, HD Monitor, Routers, Servers... Please visit:

Cacti - http://www.cacti.net

Cacti Forum - http://forum.cacti.net

Cacti Users - http://cactiusers.org

Cacti Users Forum - http://forum.cacti.org

Example:

http://www.viniciusmartins.eng.br/cacti/ - User and password: guest 

Specials thanks to:

Luciano Gomes , who wrote and published a nice how to in brazilian portuguese for setting up Cacti for Debian: http://www.vivaolinux.com.br/artigos/verArtigo.php?codigo=3917&pagina=5

原文链接:http://www.howtoforge.com/cacti_ispconfig


上一篇:FreeBSD Web Server架设实例过程   下一篇: simp server for unix 配置教程


收藏于收藏夹】 【评论】 【推荐】 【打印】 【关闭
相关文档
·FreeBSD Web Server架设实例过程
· simp server for unix 配置教程
·使用MRTG自动画虚拟主机流量图
·使用NetBSD构建基于iSCSI的小型SAN
·系统时间同步及ntp服务的提供
·Qmail邮件系统的安全分析和改进研究
·虚拟网卡 TUN/TAP 驱动程序设计原理
·集成VoIP和CRM功能的开源Tirxbox
·使用 ssh 进行安全的连接
·FreeBSD5.4 + pf + oops实现透明代理
·在 Linux 上构建网络路由器
·在 Linux 上构建 Web spider
·OpenBSD自带ftpd程序搭建ftp服务器
·FreeBSD如何通过代理上网更新
·在 Linux 上进行自动备份
·用Perl管理 Linux 配置文件
发表评论
密码: 匿名评论
评论内容:

(不超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)
 
  最新文档
·VMware下让Linux系统与真实主机共享上
·Linux系统下服务器的硬件检查和文件传
·在虚拟机Redhat Linux下安装Samba服务
·Linux操作系统下PPPOE拨号共享上网方法
·xManager连接Linux的配置方法
·Linux和Window系统远程桌面相互访问方
·Ubuntu下用手机连接蓝牙局域网pan/pand
·如何解决Xmanager不能登陆Linux系统问
·通过Amora用symbian手机控制Linux计算
·在Linux操作系统下单网卡实现双IP的设
·Linux下使用Openssh工具远程管理Solari
·VMware下Linux与真实主机共享上网的方
  阅读排行
·LVS集群学习笔记(NAT\DR\IP tunnel)
·Linux系统邮件服务器常见错误报告列表
·防火墙也能DIY----免费的专业级防火墙M
·linux下文件服务Vsftp详细介绍
· 快速架设apache/vsftpd/samba/sendmai
· Linux下Tomcat配置技巧详解分析
·如何利用集群技术实现Web服务器的负载
·Suse Linux下的samba设置用户说明
·Linux操作系统下SVN服务器的搭建详解
·RHEL5实现高可用HA集群+GFS+Enterprise
· Snort 用户手册
·使用 screen 管理你的远程会话
·Linux操作系统下的集群工作原理及实战
·用Xmanager远程管理LINUX,AIX等UNIX系
·在VMware的虚拟机平台上如何进行网络设
网摘收藏: