Cacti

Cacti是RRDTool的完整前端,它存储所有必要的信息来创建图形,并在MySQL数据库中填充数据。前端完全是PHP驱动的。(Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven.

Github星跟蹤圖

Cacti是RRDTool的完整前端,它存储所有必要的信息来创建图形,并在MySQL数据库中填充数据。前端完全是PHP驱动的。除了能够在数据库中维护图形,数据源和循环存档之外,cacti还处理数据收集。还有用于通过MRTG创建流量图的SNMP支持。

数据源

为了处理数据收集,你可以给cacti提供任何外部脚本/命令的路径以及用户需要“填充”的任何数据,cacti然后将这些数据收集在cron-job中并填充MySQL数据库/循环档案。

还可以创建数据源,它们对应于图表上的实际数据。例如,如果用户想要将ping时间映射到主机,则可以使用脚本创建数据源,该脚本ping主机并以毫秒为单位返回其值。在定义RRDTool的选项(例如如何存储数据)之后,您将能够定义数据输入源需要的任何其他信息,例如主机ping在这种情况下。创建数据源后,将每隔5分钟自动维护一次。

图表

一旦定义了一个或多个数据源,就可以使用数据创建RRDTool图。 Cacti允许您使用所有标准的RRDTool图类型和合并函数创建几乎任何想象的RRDTool图。颜色选择区域和自动文本填充功能还有助于创建图形,使过程更容易。

您不仅可以在cacti中创建基于RRDTool的图形,但有很多方法可以显示它们。除了标准的“列表视图”和“预览模式”,它类似于RRDTool前端14all,还有一个“树视图”,它允许你为了组织目的将图形放到层次树上。

用户管理

由于cacti的许多功能,内置了基于用户的管理工具,因此您可以添加用户并授予他们对cacti的某些区域的权限。这将允许某人创建一些可以更改图形参数的用户,而其他用户只能查看图形。每个用户在查看图形时还保持自己的设置。

模板

最后,cacti能够通过使用模板来扩展到大量的数据源和图表。这允许创建定义与其相关联的任何图形或数据源的单个图形或数据源模板。主机模板允许您定义主机的功能,以便cacti可以在添加新主机时轮询其信息。

概覽

名稱與所有者Cacti/cacti
主編程語言PHP
編程語言PHP (語言數: 9)
平台Linux, Windows
許可證GNU General Public License v2.0
發布數78
最新版本名稱release/1.2.26 (發布於 )
第一版名稱release/1.0.0 (發布於 2017-01-29 13:39:52)
創建於2015-01-19 05:36:15
推送於2024-04-21 15:22:37
最后一次提交2023-09-04 22:08:56
星數1.6k
關注者數120
派生數387
提交數14.1k
已啟用問題?
問題數4574
打開的問題數182
拉請求數872
打開的拉請求數1
關閉的拉請求數188
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Cacti ™

Build Status -
Develop
Project
Status
Translation
Status Average time to resolve an
issue Percentage of open
issues


Running Cacti from the develop Branch

IMPORTANT

When using source or by downloading the code directly from the repository, it is
important to run the database upgrade script if you experience any errors
referring to missing tables or columns in the database.

Changes to the database are committed to the cacti.sql file which is used for
new installations and committed to the installer database upgrade for existing
installations. Because the version number does not change until release in the
develop branch, which will result in the database upgrade not running, it is
important to either use the database upgrade script to force the current version
or update the version in the database.

Running Database Upgrade Script

sudo -u cacti php -q cli/upgrade_database.php --forcever=`cat include/cacti_version`

Updating Cacti Version in Database

update version set cacti = '1.1.38';

Note: Change the above version to the correct version or risk the
installer upgrading from a previous version.


About

Cacti is a complete network graphing solution designed to harness the power of
RRDtool's data storage and graphing functionality providing the following
features:

  • Remote and local data collectors

  • Device discovery

  • Automation of device and graph creation

  • Graph and device templating

  • Custom data collection methods

  • User, group and domain access controls

All of this is wrapped in an intuitive, easy to use interface that makes sense
for both LAN-sized installations and complex networks with thousands of devices.

Developed in the early 2000s by Ian Berry as a high school project, it has been
used by thousands of companies and enthusiasts to monitor and manage their
Enterprise Networks and Data Centers.

Requirements

Cacti should be able to run on any Linux, UNIX, or Windows based operating
system with the following requirements:

  • PHP 5.4+

  • MySQL 5.1+

  • RRDtool 1.3+, 1.5+ recommended

  • NET-SNMP 5.5+

  • Web Server with PHP support

PHP Must also be compiled as a standalone cgi or cli binary. This is required
for data gathering via cron.

php-snmp

We mark the php-snmp module as optional. So long as you are not using ipv6
devices, or using snmpv3 engine IDs or contexts, then using php-snmp should be
safe. Otherwise, you should consider uninstalling the php-snmp module as it
will create problems. We are aware of the problem with php-snmp and looking to
get involved in the php project to resolve these issues.

RRDtool

RRDtool is available in multiple versions and a majority of them are supported
by Cacti. Please remember to confirm your Cacti settings for the RRDtool version
if you having problem rendering graphs.

Documentation

Documentation is available with the Cacti releases and also available for
viewing on the Documentation
Repository
.

Contribute

Check out the main Cacti web site for downloads, change
logs, release notes and more!

Community forums

Given the large scope of Cacti, the forums tend to generate a respectable amount
of traffic. Doing your part in answering basic questions goes a long way since
we cannot be everywhere at once. Contribute to the Cacti community by
participating on the Cacti Community Forums.

GitHub Documentation

Get involved in creating and editing Cacti Documentation! Fork, change and
submit a pull request to help improve the documentation on
GitHub.

GitHub Development

Get involved in development of Cacti! Join the developers and community on
GitHub!


Functionality

Data Sources

Cacti handles the gathering of data through the concept of data sources. Data
sources utilize input methods to gather data from devices, hosts, databases,
scripts, etc... The possibilities are endless as to the nature of the data you
are able to collect. Data sources are the direct link to the underlying RRD
files; how data is stored within RRD files and how data is retrieved from RRD
files.

Graphs

Graphs, the heart and soul of Cacti, are created by RRDtool using the defined
data sources definition.

Templating

Bringing it all together, Cacti uses and extensive template system that allows
for the creation and consumption of portable templates. Graph, data source, and
RRA templates allow for the easy creation of graphs and data sources out of the
box. Along with the Cacti community support, templates have become the standard
way to support graphing any number of devices in use in today computing and
networking environments.

Data Collection (The Poller)

Local and remote data collection support with the ability to set collection
intervals. Check out Data Source Profile with in Cacti for more
information. Data Source Profiles can be applied to graphs at creation time or
at the data template level.

Remote data collection has been made easy through replication of resources to
remote data collectors. Even when connectivity to the main Cacti installation is
lost from remote data collector, it will store collected data until connectivity
is restored. Remote data collection only requires MySQL and HTTP/HTTPS access
back to the main Cacti installation location.

Network Discovery and Automation

Cacti provides administrators a series of network automation functionality in
order to reduce the time and effort it takes to setup and manage devices.

  • Multiple definable network discovery rules

  • Automation templates that specify how devices are configured

Plugin Framework

Cacti is more than a network monitoring system, it is an operations framework
that allows the extension and augmentation of Cacti functionality. The Cacti
Group continues to maintain an assortment of plugins. If you are looking to add
features to Cacti, there is quite a bit of reference material to choose from on
GitHub.

Dynamic Graph Viewing Experience

Cacti allows for many runtime augmentations while viewing graphs:

  • Dynamically loaded tree and graph view

  • Searching by string, graph and template types

  • Viewing augmentation

  • Simple time span adjustments

  • Convenient sliding time window buttons

  • Single click realtime graph option

  • Easy graph export to csv

  • RRA view with just a click

User, Groups and Permissions

Support for per user and per group permissions at a per realm (area of Cacti),
per graph, per graph tree, per device, etc... The permission model in Cacti is
role based access control (RBAC) to allow for flexible assignment of
permissions. Support for enforcement of password complexity, password age and
changing of expired passwords.

RRDtool Graph Options

Cacti supports most RRDtool graphing abilities including:

Graph Options

  • Full right axis

  • Shift

  • Dash and dash offset

  • Alt y-grid

  • No grid fit

  • Units length

  • Tab width

  • Dynamic labels

  • Rules legend

  • Legend position

Graph Items

  • VDEFs

  • Stacked lines

  • User definable line widths

  • Text alignment


Copyright (c) 2019 - The Cacti Group, Inc.

去到頂部