The Cacti Manual
Ian Berry
Tony Roman
Larry Adams
Copyright � 2005 The Cacti Group
This project is licensed under the terms of the GPL.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
All product names are property of their respective owners.
Such names are used for identification purposes only and are
not indicative of endorsement by or of any company,
organization, product, or platform.
_________________________________________________________
Table of Contents
I. Installation
1. Requirements
2. Installing Under Unix
3. Installing Under Windows
4. Upgrading Cacti
II. Basics
5. Graph Overview
6. How to Graph Your Network
Creating a Device
Creating the Graphs
7. Viewing Graphs
Graph Trees
8. User Management
Creating a New User
Realm Permissions
Graph Permissions
Graph Settings
III. Advanced Topics
9. Data Input Methods
Creating a Data Input Method
Making Your Scripts Work With Cacti
10. Data Queries
Creating a Data Query
SNMP Query XML Syntax
Script Query XML Syntax
11. Templates
Graph Templates
Data Templates
Host Templates
12. PHP Script Server
Using the Script Server
Upgrade Steps for the Example HostMib Data Queries
Migration of Existing PHP Scripts to Script Server
Testing Your Script in the Script Server
IV. Using Cacti
13. How To
Graph a Single SNMP OID
Simplest Method of Going from Script to Graph
(Walkthrough)
14. Frequently Asked Questions
V. Reference
15. Variables
Graph Variables
Host Variables
16. RRDTool Specific Features
GPRINT Presets
CDEFs
_________________________________________________________
Chapter 1. Requirements
Cacti requires that the following software is installed on
your system.
* RRDTool 1.0.49 or 1.2.x or greater
* MySQL 3.23 or greater, 4.0.20d or greater highly
recommended for advanced features
* PHP 4.1 or greater, 4.3.6 or greater highly recommended
for advanced features
Packages for RPM-based Operating Systems
* httpd
* php
* php-mysql
* php-snmp
* mysql
* mysql-server
* net-snmp
Ports for FreeBSD
* www/apache2
* net/rrdtool
* net/net-snmp
* www/php4-cgi
* lang/php4 (With MySQL and SNMP Support)
* databases/mysql323-server
_________________________________________________________
Chapter 2. Installing Under Unix
1. Extract the distribution tarball.
shell> tar xzvf cacti-version.tar.gz
2. Create the MySQL database:
shell> mysqladmin --user=root create cacti
3. Import the default cacti database:
shell> mysql cacti < cacti.sql
4. Optional: Create a MySQL username and password for Cacti.
shell> mysql --user=root mysql
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somep
assword';
mysql> flush privileges;
5. Edit include/config.php and specify the MySQL user,
password and database for your Cacti configuration.
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";
6. Set the appropriate permissions on cacti's directories for
graph/log generation. You should execute these commands
from inside cacti's directory to change the permissions.
shell> chown -R cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also
be used in the next step for data gathering.)
7. Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>
&1
Replace cactiuser with the valid user specified in the
previous step.
Replace /var/www/html/cacti/ with your full Cacti path.
8. Point your web browser to:
http://your-server/cacti/
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.
_________________________________________________________
Chapter 3. Installing Under Windows
Software Compoents Required
1. (Optional) Apache> - This software is optional if running
Windows Internet Information Server.
2. Cacti> - Install from the zip distribution and intstall in
the web root or your choice. Many choose to install into a
"Cacti" sub folder.
3. Cactid - Install from the zip distribution into the
c:\cacti directory. Make sure your cactid.conf.dist is
located in that directory as well.
4. RRDTool - Install from the Cacti website. Install it into
the c:\cacti directory.
5. PHP 4.3.6+ or 5.x - Install into the c:\php folder. If you
choose to install into c:\Program Files\php, you will have
to use 8.3 filenames to reference it's binaries in Cacti.
6. MySQL 4.x or MySQL 5.x - Install into the default
location. This is typically c:\Program Files\MySQL\MySQL
Server X.XX.
7. (Optional) Cygwin - Download and execute setup.exe from
the Cygwin website. Keep the setup.exe file for later use.
8. (Optional) Net-SNMP - Install to the c:\net-snmp
directory. If you choose to use c:\Program Files\net-snmp
you will have tu use 8.3 filenames to reference it's
binaries in Cacti.
Configure PHP
1. If using PHP 4, move the files in c:\php\dlls to c:\php
2. Add the following directory to the existing Windows System
PATH environment variable: c:\php. The Windows path can be
accessed via the Control Panel at: System | Advanced |
Environment Variables | System Variables.
3. Add the following directory to a new Windows System
environment variable called PHPRC: c:\php.
4. Add a new Windows System environment variable called
MIBDIRS. If using PHP 4, set it to c:\php\mibs. If using
PHP 5, set it to c:\php\extras\mibs
5. If using PHP 4.3.5 or less, create the following directory
c:\tmp.
6. Rename the file c:\php\php.ini.dist to php.ini, and make
the following changes to it:
If using PHP 4 add/uncomment the following lines.
extension_dir = c:\php\extensions
extension=php_snmp.dll
extension=php_sockets.dll
cgi.force_redirect = 0
If using PHP 5 uncomment the following lines.
extension_dir = c:\php\ext
extension=php_mysql.dll
extension=php_snmp.dll
extension=php_sockets.dll
cgi.force_redirect = 0
If using PHP 4.3.5 or less include the following line. If
using 4.3.6 or greater, you should remove this line if
present.
session.save_path=c:\tmp
7. In earlier installation guides to PHP, they recommended
moving certain DLL's to the c:\winnt\system32 directory.
If so, you will have to remove those files. Please review
the PHP installation documentation for instructions on
removing those files.
8. If you want to allow template importing, uncomment the
following line:
file_uploads = On
9. Give the user who will be running the scheduled task,
没有合适的资源?快使用搜索试试~ 我知道了~
cacti-0.8.6j.tar.gz
3星 · 超过75%的资源 需积分: 3 44 下载量 193 浏览量
2011-03-13
02:44:14
上传
评论
收藏 1.07MB GZ 举报
温馨提示
共397个文件
php:198个
gif:63个
js:50个
cacti-0.8.6j.tar.gz 老版本cacti
资源推荐
资源详情
资源评论
收起资源包目录
cacti-0.8.6j.tar.gz (397个子文件)
CHANGELOG 51KB
CONTRIB 4KB
main.css 7KB
manual.css 4KB
auth_deny.gif 21KB
auth_login.gif 21KB
cacti_about_logo.gif 8KB
cacti_backdrop.gif 7KB
cacti_logo.gif 6KB
cacti_backdrop2.gif 4KB
tab_settings_down.gif 2KB
tab_settings.gif 2KB
tab_graphs.gif 2KB
tab_console.gif 2KB
tab_cacti.gif 2KB
button_refresh.gif 2KB
button_import.gif 2KB
button_default.gif 2KB
button_export.gif 2KB
button_create.gif 2KB
button_cancel2.gif 2KB
button_view.gif 2KB
button_clear.gif 2KB
button_help.gif 2KB
button_save.gif 2KB
button_add.gif 2KB
button_purge.gif 2KB
tab_mode_preview_down.gif 2KB
tab_mode_preview.gif 2KB
tab_mode_list_down.gif 2KB
tab_mode_list.gif 2KB
tab_mode_tree_down.gif 2KB
tab_mode_tree.gif 2KB
button_yes.gif 2KB
button_no.gif 2KB
button_go.gif 1KB
button_expand_all.gif 1KB
button_colapse_all.gif 1KB
graph_properties.gif 1003B
graph_zoom.gif 999B
calendar.gif 927B
button_cancel.gif 581B
button_delete.gif 565B
install_next.gif 413B
install_finish.gif 353B
delete_icon.gif 178B
delete_icon_large.gif 170B
ftv2node.gif 147B
ftv2lastnode.gif 142B
ftv2vertline.gif 140B
ftv2blank.gif 135B
ftv2pnode.gif 133B
ftv2plastnode.gif 130B
ftv2mlastnode.gif 125B
ftv2mnode.gif 97B
shadow_gray.gif 90B
shadow.gif 90B
move_down.gif 75B
move_up.gif 74B
arrow.gif 73B
menu_line.gif 72B
menuarrow.gif 68B
show.gif 67B
reload_icon_small.gif 67B
hide.gif 64B
left_border.gif 58B
transparent_line.gif 55B
install_windows.html 23KB
templates.html 17KB
faq.html 16KB
variables.html 16KB
script_to_graph.html 15KB
data_templates.html 11KB
snmp_query_xml.html 11KB
data_queries.html 10KB
data_input_methods.html 9KB
script_query_xml.html 9KB
migration_php_scripts_to_script_server.html 8KB
graph_howto.html 7KB
user_management.html 7KB
how_to.html 7KB
index.html 7KB
upgrade.html 5KB
cdefs.html 5KB
making_scripts_work_with_cacti.html 5KB
install_unix.html 5KB
upgrade_using_hostmib_data_queries.html 5KB
new_graphs.html 5KB
php_script_server.html 4KB
graph_viewing.html 4KB
testing_script_in_script_server.html 4KB
graph_permissions.html 4KB
requirements.html 4KB
graph_overview.html 4KB
host_templates.html 4KB
host_variables.html 4KB
rrdtool_features.html 4KB
realm_permissions.html 3KB
graph_settings.html 3KB
advanced_topics.html 3KB
共 397 条
- 1
- 2
- 3
- 4
资源评论
- 苍山雪麓2012-06-30可以用,但要花时间研究安装、配置方法
- yulei76332014-01-06可以用,但要花时间研究安装、配置方法
NiPuSaGuoJiang
- 粉丝: 28
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功