24
Automated and Adaptive I nfrastructure Monitoring using Chef, Nagios a nd Graphite. - Pratima Singh

Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

Embed Size (px)

Citation preview

Page 1: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

Automated and

Adaptive

Infrastructure

Monitoring

using Chef, Nagios

and Graphite.

- Pratima

Singh

Page 2: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

Automated?

... and Adaptive?

MO

NIT

OR

ING

Page 3: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CO

MPO

NEN

TS…

Page 4: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF…

Ove

rvie

w

Configuration Management Tool written

in RubyClient Server setupManage nodes using code

(Cookbooks)Perform specialized searches (search)

Create scalable infrastructure

Page 5: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

Central distribution point

for cookbooksManagement and authentication of nodes

Enabling searchComponentsAPI serviceManagement webui

(http://chef-server-fqdn:4040

)

Search indexerRequest queuing server

Datastore

CH

EF…

Chef-

Serv

er

Page 6: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF…

Chef-

Clie

nt

Nodes registered with the

Chef server.Compiles and executes

cookbooks set it its run list.

Node-name.json

Page 7: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF…

Cookb

ooks

Fundamental units of

distribution.Execute resources.Cookbooks containAttributesLibrariesFiles TemplatesRecipesMetadataDefinitions

Page 8: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF…

Role

s

Enable setting up nodes

based on functionality.

Consist of attributes and

run_list.run_list includes the cookbooks required to create

a node with the functionality

that the role is set to

achieve.

Page 9: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

NA

GIO

S…

Ove

rvie

w

Scalable infrastructure

monitoring.Consolidated, Central

Visibility via dashboard.

Outage detection based

on custom warning and

critical levels.Outage alerts.Problem acknowledgement.Alert Escalations.

Page 10: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

NA

GIO

S…

Configura

tion

Nagios reads its configuration

data from text files.These files are located in

/etc/nagios directory.The primary config file is the

nagios.cfg file.Specific configuration files are

located under /etc/nagios/objects which

include commands.cfg contacts.cfg hosts.cfg localhost.cfg services.cfg timeperiods.cfg templates.cfg

Page 11: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

NA

GIO

S…

Tem

pla

tes

Page 12: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

NA

GIO

S…

NR

PE

Nagios Remote Plugin Executor.

Retrieve status of remote

services.Consists of chef_nrpe plugin and

NRPE daemon.Config file is stored at /etc/nrpe

Page 13: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

NR

PE…

Sam

ple

Plu

gin

Page 14: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

NR

PE…

Plu

gin

Set

up

Nrpe.cfg

/etc/nrpe.d/custom.cfg

Page 15: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

NA

GIO

S…

Sam

ple

Config

Page 16: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

NA

GIO

S…

Sam

ple

Config

Page 17: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF

& N

AG

IOS…

SetU

p N

agio

s Serv

er

Default.rb

Hosts.cfg.erb

Page 18: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF

& N

AG

IOS…

SetU

p N

agio

s Serv

er

Services.cfg.erb

Page 19: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF

& N

AG

IOS…

SetU

p N

agio

s Serv

er

hosts.cfg

services.cfg

Page 20: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

Gra

phit

e…

Ove

rvie

w

Real-time graphing server.

Frontend : Webapp.Backend : Storage

application (Carbon).Carbon-agent.pyCarbon-cache.pyCarbon-persister.py

Page 21: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF,

NA

GIO

S &G

RA

PH

ITE

Page 22: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite

CH

EF,

NA

GIO

S &G

RA

PH

ITE

Page 23: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite
Page 24: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite