conference on nagios: reinhard scheck on cacti

40
the complete rrdtool-based graphing solution the complete rrdtool-based graphing solution Cacti Cacti Cacti Open Source Performance Monitoring

Upload: wuerth-phoenix

Post on 19-May-2015

2.938 views

Category:

Technology


0 download

DESCRIPTION

NetEye Conference on Nagios: Reinhard Scheck explains Cacti Open Source Performance Monitoring.

TRANSCRIPT

Page 1: Conference on Nagios: Reinhard Scheck on Cacti

the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Cacti

Open Source Performance Monitoring

Page 2: Conference on Nagios: Reinhard Scheck on Cacti

2the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Why?

Page 3: Conference on Nagios: Reinhard Scheck on Cacti

3the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

The Theory

FCAPS ITILFault Service Support Incident, Problem MgmtConfiguration Service Support Configuration MgmtAccounting Service Delivery Financial MgmtPerformance Service Delivery Capacity, Service Level MgmtSecurity Service Delivery Security Mgmt

Cacti Core FunctionalityProvided via PluginsNot provided by Cacti

Page 4: Conference on Nagios: Reinhard Scheck on Cacti

4the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

The Goal

● FAULT management: “operations” must have

● SERVICE LEVEL management: “customer” must have

● PERFORMANCE management:“budget” must have

● no fault = no problem?

Page 5: Conference on Nagios: Reinhard Scheck on Cacti

5the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

An Example

measure itor

forget it!

Page 6: Conference on Nagios: Reinhard Scheck on Cacti

6the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

The Agenda

● Why?● Cacti Architecture● Templates● Plugins● The Future

Page 7: Conference on Nagios: Reinhard Scheck on Cacti

7the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Cacti Architecture: The Eco­System

Page 8: Conference on Nagios: Reinhard Scheck on Cacti

8the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Cacti

The Architecture

Browser Poller

Router

42   Application

Server

MySQL

42   

rrdrrdrrd

PBX

Page 9: Conference on Nagios: Reinhard Scheck on Cacti

9the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

The Architecture

CactiBrowser Poller

Router

42   Application

Server

MySQL

PBX

Page 10: Conference on Nagios: Reinhard Scheck on Cacti

10the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

The Features

● Single server setup, agent­less● Browser based for admin and user● Fast, extensible data collector● Template engine, template repository● Plugin Architecture, plugin repository● Scalable  400k data sources

Page 11: Conference on Nagios: Reinhard Scheck on Cacti

11the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

The User Interface

Page 12: Conference on Nagios: Reinhard Scheck on Cacti

12the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Templates

Page 13: Conference on Nagios: Reinhard Scheck on Cacti

13the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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

Page 14: Conference on Nagios: Reinhard Scheck on Cacti

14the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Network Traffic Template

Daily

Weekly

Monthly

Page 15: Conference on Nagios: Reinhard Scheck on Cacti

15the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Templates for Non­Network Systems

Fax ServerPrinter

Page 16: Conference on Nagios: Reinhard Scheck on Cacti

16the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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” forumhttp://forums.cacti.net/forum­12.html

and “Template Repository”http://docs.cacti.net/templates

● Download ... import ... GO!

Page 17: Conference on Nagios: Reinhard Scheck on Cacti

17the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Plugins

Page 18: Conference on Nagios: Reinhard Scheck on Cacti

18the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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!

Page 19: Conference on Nagios: Reinhard Scheck on Cacti

19the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

THOLD – Threshold Monitoring

Host status floatingthresholds

absolutethresholds

Page 20: Conference on Nagios: Reinhard Scheck on Cacti

20the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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

Page 21: Conference on Nagios: Reinhard Scheck on Cacti

21the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Autom8 – creates Graphs and Trees

● Rule based ­ flexible matching● One Click Administration

Page 22: Conference on Nagios: Reinhard Scheck on Cacti

22the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Weathermap

Custom backgrounds

Hoveringgraphs

Page 23: Conference on Nagios: Reinhard Scheck on Cacti

23the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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” forumhttp://forums.cacti.net/forum­19.html

and “Plugin Repository”http://docs.cacti.net/plugins

Page 24: Conference on Nagios: Reinhard Scheck on Cacti

24the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

The Future

Page 25: Conference on Nagios: Reinhard Scheck on Cacti

25the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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

Page 26: Conference on Nagios: Reinhard Scheck on Cacti

26the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Integration

● Built­in 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

Page 27: Conference on Nagios: Reinhard Scheck on Cacti

27the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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● Re­sizable menu and columns● new tree design

Page 28: Conference on Nagios: Reinhard Scheck on Cacti

28the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Internationalization

● Available now in● English, Bulgarian, French, German, Spanish, 

Swedish, Russian, Japanese, Trad. Chinese, unfortunately not yet in ItalianTranslators welcome!

● Automatic language detection● Time zone support

Page 29: Conference on Nagios: Reinhard Scheck on Cacti

29the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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, grid­fitting● Every colortag, full font support, watermarks, ...● Templated x­grid support (time axis)● Dash support, borders, font smoothing, 

pango markup● COMPUTE data source

Page 30: Conference on Nagios: Reinhard Scheck on Cacti

30the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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

Page 31: Conference on Nagios: Reinhard Scheck on Cacti

31the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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 ...

Page 32: Conference on Nagios: Reinhard Scheck on Cacti

32the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Vibrant User Community

Page 33: Conference on Nagios: Reinhard Scheck on Cacti

33the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Vibrant User Community

● ~ 60.000 Visitors/month● ~ 26.000 registered users● ~ 185.000 Posts● > 200 Doc Pages

Page 34: Conference on Nagios: Reinhard Scheck on Cacti

34the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

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/templatehttp://docs.cacti.net/plugins

● CactiEZ http://cactiuser.org/

Page 35: Conference on Nagios: Reinhard Scheck on Cacti

35the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

The TeamJ.P. Pasnak Larry J. Adams

Reinhard Scheck

Ian Berry Tony RomanJimmy Conner

Not shown:● Andreas Braun

● Chris Bell● Marlene Weiss

Page 36: Conference on Nagios: Reinhard Scheck on Cacti

36the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Questions, please!

Page 37: Conference on Nagios: Reinhard Scheck on Cacti

37the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Implement Custom Scripts

● protocols● e.g. wget, SOAP, 

telnet, ssh, ...● programming 

language● e.g. Shell, Perl, 

PHP, Java ...

Page 38: Conference on Nagios: Reinhard Scheck on Cacti

38the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Templates defined – The Data Template

● MIN, MAX acceptable value

● Interval size● type: 

GAUGE, COUNTER, ...

Page 39: Conference on Nagios: Reinhard Scheck on Cacti

39the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Templates defined – The Graph Template

● Title, x and y­axis

● Legends● Lines, areas, 

colors, horizontal rules

● ...

Page 40: Conference on Nagios: Reinhard Scheck on Cacti

40the complete rrdtool­based graphing solutionthe complete rrdtool­based graphing solutionCactiCacti

Templates defined – The Host Template

● Related Graph Templates

● Data Queries