Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite
-
Upload
pratima-singh -
Category
Technology
-
view
7.133 -
download
2
Transcript of Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite
![Page 1: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/1.jpg)
Automated and
Adaptive
Infrastructure
Monitoring
using Chef, Nagios
and Graphite.
- Pratima
Singh
![Page 2: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/2.jpg)
Automated?
... and Adaptive?
MO
NIT
OR
ING
…
![Page 3: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/3.jpg)
CO
MPO
NEN
TS…
![Page 4: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/4.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/5.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/6.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/7.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/8.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/9.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/10.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/11.jpg)
NA
GIO
S…
Tem
pla
tes
![Page 12: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/12.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/13.jpg)
NR
PE…
Sam
ple
Plu
gin
![Page 14: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/14.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/15.jpg)
NA
GIO
S…
Sam
ple
Config
![Page 16: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/16.jpg)
NA
GIO
S…
Sam
ple
Config
![Page 17: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/17.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/18.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/19.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/20.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/21.jpg)
CH
EF,
NA
GIO
S &G
RA
PH
ITE
![Page 22: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/22.jpg)
CH
EF,
NA
GIO
S &G
RA
PH
ITE
![Page 23: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/23.jpg)
![Page 24: Automated and Adaptive Infrastructure Monitoring using Chef, Nagios and Graphite](https://reader038.fdocuments.us/reader038/viewer/2022102805/55657f19d8b42a95028b52e9/html5/thumbnails/24.jpg)