Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Conference on Nagios: Reinhard Scheck on Cacti
1. Cacti
Open Source Performance Monitoring
Cacti the complete rrdtoolbased graphing solution
2. Why?
Cacti the complete rrdtoolbased graphing solution 2
3. The Theory
FCAPS ITIL
Fault Service Support Incident, Problem Mgmt
Configuration Service Support Configuration Mgmt
Accounting Service Delivery Financial Mgmt
Performance Service Delivery Capacity, Service Level Mgmt
Security Service Delivery Security Mgmt
Cacti Core Functionality
Provided via Plugins
Not provided by Cacti
Cacti the complete rrdtoolbased graphing solution 3
4. The Goal
●
FAULT management:
“operations” must have
●
SERVICE LEVEL management:
“customer” must have
●
PERFORMANCE management:
“budget” must have
●
no fault = no problem?
Cacti the complete rrdtoolbased graphing solution 4
5. An Example
measure it
or
forget it!
Cacti the complete rrdtoolbased graphing solution 5
6. The Agenda
●
Why?
●
Cacti Architecture
●
Templates
●
Plugins
●
The Future
Cacti the complete rrdtoolbased graphing solution 6
8. The Architecture
Router
PBX
Browser Cacti Poller
Server
42
42 Application
rrd
rrd
MySQL rrd
Cacti the complete rrdtoolbased graphing solution 8
9. The Architecture
Router
PBX
Browser Cacti Poller
Server
42
Application
MySQL
Cacti the complete rrdtoolbased graphing solution 9
10. The Features
●
Single server setup, agentless
●
Browser based for admin and user
●
Fast, extensible data collector
●
Template engine, template repository
●
Plugin Architecture, plugin repository
● Scalable 400k data sources
Cacti the complete rrdtoolbased graphing solution 10
12. Templates
Cacti the complete rrdtoolbased graphing solution 12
13. Templates why?
●
easily handle multiple devices of same type
●
Router, Switch, Firewall, Loadbalancer, ...
●
File Server, Filer, NAS, SAN, ...
●
DNS, DHCP, Web Server, ...
●
don't repeat administrative tasks
over and over again
●
define global properties as a single template
●
propagate changes to all targets
in one click
Cacti the complete rrdtoolbased graphing solution 13
16. Templates – where to get them
●
hundreds of templates available, e.g.
●
DNS, DHCP, Radius, httpd, squid, Tomcat, ...
●
Router, Switches, Load Balancers, Filers, ...
●
Temperature, Weather Sensors, ...
●
Cacti “Scripts and Templates” forum
http://forums.cacti.net/forum12.html
and “Template Repository”
http://docs.cacti.net/templates
●
Download ... import ... GO!
Cacti the complete rrdtoolbased graphing solution 16
17. Plugins
Cacti the complete rrdtoolbased graphing solution 17
18. The Plugin Architecture
●
defines hooks
●
embedding into menu structure
●
allows access to Cacti SQL tables
●
hooks into the poller
●
extends Cacti to suite your needs
●
Download ... enable ... GO!
Cacti the complete rrdtoolbased graphing solution 18
19. THOLD – Threshold Monitoring
absolute
thresholds
Host status floating
thresholds
Cacti the complete rrdtoolbased graphing solution 19
20. Reportit – report tabular data
●
Tabular representation; daily, weekly, quarterly ...
●
Custom calculations, multiple sort options
●
Multitude of Charts available
●
Scales up to thousands of data sources
Cacti the complete rrdtoolbased graphing solution 20
21. Autom8 – creates Graphs and Trees
●
Rule based flexible matching
●
One Click Administration
Cacti the complete rrdtoolbased graphing solution 21
23. Plugins – where to get them
●
The Cacti Community shares dozens of plugins
●
MacTrack – tracks MAC and IP addresses
●
Nectar – emails your favorite graphs
●
QuickTree – a shopping basket for graphs
●
Syslog – centralized logging
●
...
●
Cacti “Plugin Announcement” forum
http://forums.cacti.net/forum19.html
and “Plugin Repository”
http://docs.cacti.net/plugins
Cacti the complete rrdtoolbased graphing solution 23
24. The Future
Cacti the complete rrdtoolbased graphing solution 24
25. Large Scale Installations
●
Cacti goes (extremely) large scale
●
Multiple installations > 100,000 data sources
●
Biggest known > 400,000 data sources
●
Polling interval = 5 minutes!
●
required resources:
●
BOOST plugin, predecessor of rrdcached
fast bulk rrd updates
(disk performance!)
●
Use of MySQL memory tables
Cacti the complete rrdtoolbased graphing solution 25
26. Integration
●
Builtin Plugin Architecture, finally!
●
Command Line Interface
●
Completely rewritten CLI support
to e.g. allow interfacing a CMDB
●
Works on Data queries, Devices, Graphs, Trees
●
User and permission support
●
Template Import
Cacti the complete rrdtoolbased graphing solution 26
27. Web 2.0 – AJAX and CSS
●
Cacti 0.8.8 uses jQuery
●
e.g. colorpicker
●
Improved admin performance
●
Autocomplete fields
to avoid loading e.g. 100s devices in a dropdown
●
Drag n' drop item reordering
●
Tabbed views
●
Resizable menu and columns
●
new tree design
Cacti the complete rrdtoolbased graphing solution 27
28. Internationalization
●
Available now in
●
English, Bulgarian, French, German, Spanish,
Swedish, Russian, Japanese, Trad. Chinese,
unfortunately not yet in Italian
Translators welcome!
●
Automatic language detection
●
Time zone support
Cacti the complete rrdtoolbased graphing solution 28
29. Full RRDTool Support
●
Goal: support almost any available RRDTool
feature with next major Cacti release
●
Cacti 0.8.8 will support e.g.
●
Right axis, manual/automatic scaling, gridfitting
●
Every colortag, full font support, watermarks, ...
●
Templated xgrid support (time axis)
●
Dash support, borders, font smoothing,
pango markup
●
COMPUTE data source
Cacti the complete rrdtoolbased graphing solution 29
30. Roadmap Cacti 0.8.9
●
Full support for multiple polling intervals
●
RRA templates/grouping (still designing)
●
Online Repository/Warehouse
●
Template packages
●
More data query XML resources into the database
●
Import scripts along with templates in one go
●
Support author information and version checking
Cacti the complete rrdtoolbased graphing solution 30
31. Roadmap Cacti 0.9.0
●
Integration of Boost into base code
●
Event management sub system
●
Logging to database
●
Introduce the site concept
●
Distributed polling
●
More to come, stay tuned ...
Cacti the complete rrdtoolbased graphing solution 31
33. Vibrant User Community
●
~ 60.000 Visitors/month
●
~ 26.000 registered users
●
~ 185.000 Posts
●
> 200 Doc Pages
Cacti the complete rrdtoolbased graphing solution 33
34. Links
●
Main Site http://www.cacti.net
●
Documentation http://docs.cacti.net
●
Forum http://forums.cacti.net
●
Bug Tracker http://bugs.cacti.net
●
Resources http://docs.cacti.net/template
http://docs.cacti.net/plugins
●
CactiEZ http://cactiuser.org/
Cacti the complete rrdtoolbased graphing solution 34
35. The Team
Larry J. Adams
J.P. Pasnak
Reinhard Scheck
Ian Berry Tony Roman
Jimmy Conner
Not shown: ●
Chris Bell
●
Andreas Braun ●
Marlene Weiss
Cacti the complete rrdtoolbased graphing solution 35
36. Questions,
please!
Cacti the complete rrdtoolbased graphing solution 36
37. Implement Custom Scripts
●
protocols
●
e.g. wget, SOAP ,
telnet, ssh, ...
●
programming
language
●
e.g. Shell, Perl,
PHP , Java ...
Cacti the complete rrdtoolbased graphing solution 37
38. Templates defined – The Data Template
●
MIN, MAX
acceptable value
●
Interval size
●
type:
GAUGE,
COUNTER, ...
Cacti the complete rrdtoolbased graphing solution 38
39. Templates defined – The Graph Template
●
Title,
x and yaxis
●
Legends
●
Lines, areas,
colors,
horizontal rules
●
...
Cacti the complete rrdtoolbased graphing solution 39