The Complete RRDTool-based Graphing Solution Part I

2008/06/14 01:03
시스템 모니터링 툴로 MRTG를 대체하는 RRDTool이 있고, 이것을 많이 사용하고 있다. 초보인 나로서는 RRDTool을 설치하고, 설정하여 그래핑하는 일은 쉬운일이 아니다.
이런 일련의 일을 보다 쉽게 시스템 상황을 그래프화 할 수 있는 cacti툴은 Apache, PHP, MySQL, NET-SNMP 기반으로 동작하며, MySQL을 이용한 데이터 소스 관리, RRDTool을 이용한 그래프 생성, 사용자 관리등을 지원한다. 특히 템플릿을 통한 데이터소스 및 그래프 지원은 cacti를 무한히 확장할 수 있도록 도와준다.

What is cacti
cacti
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. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. There is also SNMP support for those used to creating traffic graphs with MRTG.


Data Sources
To handle data gathering, you can feed cacti the paths to any external script/command along with any data that the user will need to "fill in", cacti will then gather this data in a cron-job and populate a MySQL database/the round robin archives.

Data Sources can also be created, which correspond to actual data on the graph. For instance, if a user would want to graph the ping times to a host, you could create a data source utilizing a script that pings a host and returns it's value in milliseconds. After defining options for RRDTool such as how to store the data you will be able to define any additional information that the data input source requires, such as a host to ping in this case. Once a data source is created, it is automatically maintained at 5 minute intervals.

Graphs
Once one or more data sources are defined, an RRDTool graph can be created using the data. Cacti allows you to create almost any imaginable RRDTool graph using all of the standard RRDTool graph types and consolidation functions. A color selection area and automatic text padding function also aid in the creation of graphs to make the process easier.

Not only can you create RRDTool based graphs in cacti, but there are many ways to display them. Along with a standard "list view" and a "preview mode", which resembles the RRDTool frontend 14all, there is a "tree view", which allows you to put graphs onto a hierarchical tree for organizational purposes.

User Management
Due to the many functions of cacti, a user based management tool is built in so you can add users and give them rights to certain areas of cacti. This would allow someone to create some users that can change graph parameters, while others can only view graphs. Each user also maintains their own settings when it comes to viewing graphs.

Templating
Lastly, cacti is able to scale to a large number of data sources and graphs through the use of templates. This allows the creation of a single graph or data source template which defines any graph or data source associated with it. Host templates enable you to define the capabilities of a host so cacti can poll it for information upon the addition of a new host.


이올린에 북마크하기(0) 이올린에 추천하기(0)

happyness Server Management ,

2008/06/14 01:03 2008/06/14 01:03
Trackback Address:http://blog.htdocs.kr/trackback/103
[로그인][오픈아이디란?]