The Cacti Manual
Ian Berry
Tony Roman
Larry Adams
J.P. Pasnak
Jimmy Conner
Reinhard Scheck
Copyright � 2008 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
Required Packages for RPM-based Operating Systems
Ports for FreeBSD
Configure PHP
Configure the Webserver (Apache)
Configure MySQL
Install and Configure Cacti
(Optional) Install and Configure Spine
Apply Patches
3. Installing Under Windows
4. Upgrading Cacti
II. Basics
5. Principles of Operation
Data Retrieval
Data Storage
Data Presentation
6. Graph Overview
7. How to Graph Your Network
Creating a Device
Creating the Graphs
8. Viewing Graphs
Graph Trees
9. User Management
Editing an existing User
Creating a New User
Copying a user
Enable/Disable Users
Batch Copy Users
Delete Users
Guest (Anonymous) Access
III. Advanced Topics
10. Graph a Single SNMP OID
11. Data Input Methods
Creating a Data Input Method
Making Your Scripts Work With Cacti
12. Data Queries
Creating a Data Query
SNMP Query XML Syntax
Script Query XML Syntax
13. Templates
Data Templates
Graph Templates
Host Templates
Import Templates
Export Templates
14. 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
15. Spine
IV. Help
16. How To
Simplest Method of Going from Script to Graph
(Walkthrough)
17. Frequently Asked Questions
V. Reference
18. Variables
Graph Variables
Host Variables
19. RRDTool Specific Features
GPRINT Presets
CDEFs
20. Command Line Scripts
Rebuild Poller Cache
Re-Index Hosts
Empty Poller Output Table
Reapply Suggested Names to Graphs
Copy Local Cacti Users
Add a New Device
Associate a Data Query to an existing Host
Associate a Graph Template to an existing Host
Add a New Graph
Add Items to a Tree
Add Graph Permissions
21. Debugging
Check Cacti Log File
Check Basic Data Gathering
Check cacti's poller
Check MySQL updating
Check rrd file updating
Check rrd file ownership
Check rrd file numbers
Check rrdtool graph statement
Miscellaneous
RPM Installation?
Not NaN, but 0 (zero) values?
__________________________________________________________
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 4.1.x or 5.x or greater
* PHP 4.3.6 or greater, 5.x greater highly recommended for
advanced features
* A Web Server e.g. Apache or IIS
__________________________________________________________
Chapter 2. Installing Under Unix
Please make sure, the following packages are installed
according to your operating systems requirements. Verify, that
httpd and mysqld are started at system startup.
__________________________________________________________
Required 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
__________________________________________________________
Configure PHP
Please ensure, that PHP support is either builtin or installed
for the following PHP extension modules:
* mysql (For configuration, see note below)
* SNMP (For configuration, see note below)
* XML
* Session
* Sockets
* LDAP (Required only when using LDAP authentication)
* GD (Required only for some Plugins)
You may run the following command to get the list of all
available PHP modules
php -m
Please verify, that the modules are installed and configured
correctly. There are several ways to do so, please consult PHP
configuration instructions for a complete description.
We will continue using the most recommended way of configuring
php extension modules. Please find the file /etc/php.ini and
make the following changes to it:
extension_dir = /etc/php.d
This will enable PHP to find more configuration directives in
that very directory. Other distros point to
/usr/lib/php/modules instead. In each case, you should locate
e.g. mysql.so in that directory.
Activate the MySQL extension via /etc/php.d/mysql.ini
; Enable mysql extension module
extension=mysql.so
Activate the SNMP extension via /etc/php.d/snmp.ini
; Enable snmp extension module
extension=snmp.so
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=/tmp
If you want to allow template importing, uncomment the
following line:
file_uploads = On
__________________________________________________________
Configure the Webserver (Apache)
If you are using Apache 1.3.x, installation of PHP 5 is not
recommended.
Please find the file /etc/httpd/conf/httpd.conf or equivalent
and make the following changes to it:
# Load config files from the config directory "/etc/httpd/conf.d".
Include conf.d/*.conf
Now, please locate the PHP configuration file at
/etc/httpd/conf.d/php.conf
If using PHP 5, then add the following lines.
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
LoadModule php5_module modules/libphp5.so
#
# Cause the PHP interpreter to handle files with a .php extension.
AddHandler php5-script .php
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
DirectoryIndex index.php
__________________________
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Cacti-for-Windows-v0.8.7d.rar_Cacti_windows 8 (477个子文件)
CHANGELOG 74KB
CONTRIB 4KB
main.css 7KB
manual.css 4KB
auth_deny.gif 21KB
auth_login.gif 21KB
auth_logout.gif 20KB
cacti_about_logo.gif 8KB
cacti_backdrop.gif 7KB
cacti_logo.gif 6KB
cacti_backdrop2.gif 4KB
tab_console.gif 2KB
tab_settings.gif 2KB
tab_cacti.gif 2KB
tab_graphs_down.gif 2KB
tab_graphs.gif 2KB
tab_console_down.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
tab_settings_down.gif 2KB
button_view.gif 2KB
button_help.gif 2KB
button_clear.gif 2KB
button_save.gif 2KB
button_add.gif 2KB
button_purge.gif 2KB
button_yes.gif 2KB
button_no.gif 2KB
tab_mode_tree.gif 1KB
tab_mode_preview.gif 1KB
tab_mode_list.gif 1KB
tab_mode_list_down.gif 1KB
tab_mode_preview_down.gif 1KB
tab_mode_tree_down.gif 1KB
button_go.gif 1KB
button_expand_all.gif 1KB
button_colapse_all.gif 1KB
graph_page_top.gif 1013B
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.gif 90B
shadow_gray.gif 90B
move_right.gif 86B
move_left.gif 85B
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
.htaccess 33B
.htaccess 33B
cdefs.html 38KB
install_windows.html 22KB
graph_howto.html 19KB
graph_templates.html 18KB
faq.html 16KB
variables.html 15KB
how_to.html 14KB
templates.html 14KB
cli_add_graphs.html 13KB
cli_add_tree.html 12KB
user_management.html 11KB
snmp_query_xml.html 10KB
data_queries.html 10KB
cli_add_perms.html 9KB
index.html 8KB
data_input_methods.html 8KB
migration_php_scripts_to_script_server.html 8KB
cli_add_device.html 8KB
cli_poller_reindex_hosts.html 8KB
script_query_xml.html 8KB
scripts.html 8KB
graph_snmp_oid.html 6KB
cli_add_data_query.html 6KB
graph_viewing.html 6KB
using_spine.html 5KB
共 477 条
- 1
- 2
- 3
- 4
- 5
资源评论
JonSco
- 粉丝: 88
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功