SlideShare a Scribd company logo
1 of 50
Download to read offline
Configuring Nagios with Chef
              Bryan McLellan
              Technical Program Manager, Open Source
              btm@opscode.com / @btmspox




Tuesday, September 25, 12
Overview




                 •      Who am I?
                 •      Why automation
                 •      Introduction to Chef
                 •      Nagios Demo
                 •      Questions



Tuesday, September 25, 12
Who am I?



        •      Chef
               Early developer, user, pundit

        •      10+ years in Systems Administration
               Computer repair, ISPs, Corporate IT,
               Web operations

        •      Event Logistics Volunteer
               Traffic Control, Parking,
               Communications, Networking,
               Emergency Management

        •      Hacker-Operator
               Trucks, Bikes, Radios, Tractors

Tuesday, September 25, 12
How did we get here?



                     Bare Metal Deployment




Tuesday, September 25, 12
How did we get here?



                     Bare Metal Deployment
                       •    Purchasing




Tuesday, September 25, 12
How did we get here?



                     Bare Metal Deployment
                       •    Purchasing
                       •    Vendor build




Tuesday, September 25, 12
How did we get here?



                     Bare Metal Deployment
                       •    Purchasing
                       •    Vendor build
                       •    Delivery




Tuesday, September 25, 12
How did we get here?



                     Bare Metal Deployment
                       •    Purchasing
                       •    Vendor build
                       •    Delivery
                       •    Installation




Tuesday, September 25, 12
How did we get here?



                     Bare Metal Deployment
                       •    Purchasing
                       •    Vendor build
                       •    Delivery
                       •    Installation
                       •    OS deployment




Tuesday, September 25, 12
How did we get here?



                     Bare Metal Deployment
                       •    Purchasing
                       •    Vendor build
                       •    Delivery
                       •    Installation
                       •    OS deployment
                       •    Application deployment




Tuesday, September 25, 12
How did we get here?



                     Bare Metal Deployment
                       •    Purchasing
                       •    Vendor build
                       •    Delivery                 Weeks?
                       •    Installation
                       •    OS deployment
                       •    Application deployment




Tuesday, September 25, 12
How did we get here?



                     Cloud Deployment
                       •    Purchasing
                       •    Vendor build
                       •    Delivery                 Nearly immediate
                       •    Installation
                       •    OS deployment
                       •    Application deployment




Tuesday, September 25, 12
How did we get here?



                     Cloud Deployment
                       •    Purchasing
                       •    Vendor build
                       •    Delivery                 Nearly immediate
                       •    Installation
                       •    OS deployment
                       •    Application deployment
                                                          Must be fast




Tuesday, September 25, 12
Why automate?


              Good Reasons:
       •      More agility and faster scalability
       •      Improved infrastructure documentation
       •      Better disaster recovery




Tuesday, September 25, 12
Why automate?


              Good Reasons:
       •      More agility and faster scalability
       •      Improved infrastructure documentation
       •      Better disaster recovery


              Really Good Reasons:
       •      Spend less time on monotonous tasks
       •      Spend more time solving interesting problems




Tuesday, September 25, 12
Chef Principles




Tuesday, September 25, 12
Chef Principles



                 • Idempotent




Tuesday, September 25, 12
Chef Principles



                 • Idempotent
                 • Reasonable




Tuesday, September 25, 12
Chef Principles



                 • Idempotent
                 • Reasonable
                 • Primitives




Tuesday, September 25, 12
Chef Principles



                 • Idempotent
                 • Reasonable
                 • Primitives
                 • Scalable



Tuesday, September 25, 12
Chef Principles



                 • Idempotent
                 • Reasonable
                 • Primitives
                 • Scalable
                 • Hackable


Tuesday, September 25, 12
Chef Principles



                 • Idempotent
                 • Reasonable
                 • Primitives
                 • Scalable
                 • Hackable
                 • Shareable
Tuesday, September 25, 12
What is Chef?




                 •      Configuration management language

                 •      Systems integration framework

                 •      API for your infrastructure


                                    http://www.flickr.com/photos/morville/3220961040/




Tuesday, September 25, 12
Application Programming Interface


                            The Meatcloud Manifesto

                      Give me an API or give me death.
                               -- Andrew Clay Shafer (@littleidea)




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes
           Users and Nodes authenticate as Clients




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes
           Users and Nodes authenticate as Clients
           Cookbooks contain Recipes




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes
           Users and Nodes authenticate as Clients
           Cookbooks contain Recipes
           Each node has a Run List




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes
           Users and Nodes authenticate as Clients
           Cookbooks contain Recipes
           Each node has a Run List
           A Run List is a list of Recipes to run




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes
           Users and Nodes authenticate as Clients
           Cookbooks contain Recipes
           Each node has a Run List
           A Run List is a list of Recipes to run
           Recipes can be grouped in a Role




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes
           Users and Nodes authenticate as Clients
           Cookbooks contain Recipes
           Each node has a Run List
           A Run List is a list of Recipes to run
           Recipes can be grouped in a Role
           Roles can also be added to a Run List




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes
           Users and Nodes authenticate as Clients
           Cookbooks contain Recipes
           Each node has a Run List
           A Run List is a list of Recipes to run
           Recipes can be grouped in a Role
           Roles can also be added to a Run List
           Nodes can be in Environments




Tuesday, September 25, 12
Chef Basics



           Chef manages Nodes
           Nodes have Attributes
           Users and Nodes authenticate as Clients
           Cookbooks contain Recipes
           Each node has a Run List
           A Run List is a list of Recipes to run
           Recipes can be grouped in a Role
           Roles can also be added to a Run List
           Nodes can be in Environments
           Data bags are... bags of data.



Tuesday, September 25, 12
Chef Basics Visualized



                client: srv01               client: srv02                    client: srv03




             node: srv01                     node: srv02                     node: srv03
     run_list: “role[web_server]”    run_list: “role[web_server]”     run_list: “role[db_server]”




                 role: web_server                                  role: db_server
   run_list: [“recipe[apache2]”, “recipe[php]” ]     run_list: [ “recipe[mysql]”, “recipe[nfs]” ]




Tuesday, September 25, 12
Chef Stacks



        chef-client         knife     chef-shell      chef-solo




                                    API




           Open Source          Hosted Chef        Private Chef

Tuesday, September 25, 12
Chef 10 Open Source Architecture




                             Chef Expander




Tuesday, September 25, 12
Resources



                 •      A Resource is something you manage
                        service, package, file, user, execute, git




Tuesday, September 25, 12
Resources



                 •      A Resource is something you manage
                        service, package, file, user, execute, git

                 •      Resources have actions
                        start, install, create, deploy

                 •      Resources can notify of other resources




Tuesday, September 25, 12
Resources



                 •      A Resource is something you manage
                        service, package, file, user, execute, git

                 •      Resources have actions
                        start, install, create, deploy

                 •      Resources can notify of other resources


                            cookbook_file “/etc/apache2/apache2.conf” do
                              source “apache2.conf”
                              owner “root”
                              group “root”
                              mode 0644
                              notifies :restart, “service[apache2]”
                            end



Tuesday, September 25, 12
Providers



                 •      A Provider performs the actions specified by the resource




Tuesday, September 25, 12
Providers



                 •      A Provider performs the actions specified by the resource

                 •      Each Resource can have multiple providers
                        package: apt, yum, macports...
                        service: upstart, windows, systemd...




Tuesday, September 25, 12
Providers



                 •      A Provider performs the actions specified by the resource

                 •      Each Resource can have multiple providers
                        package: apt, yum, macports...
                        service: upstart, windows, systemd...

                 •      Each platform (OS) has default Providers that can be overridden


                            package “sudo” do
                              provider Chef::Provider::Package::Yum
                              action :install
                            end




Tuesday, September 25, 12
A basic recipe

                            package “apache2” do
                              action :install
                            end




Tuesday, September 25, 12
A basic recipe

                            package “apache2” do
                              action :install
                            end

                            service “apache2” do
                              action :enable
                            end




Tuesday, September 25, 12
A basic recipe

                            package “apache2” do
                              action :install
                            end

                            service “apache2” do
                              action :enable
                            end

                            cookbook_file “/etc/apache2/apache2.conf” do
                              source “apache2.conf”
                              owner “root”
                              group “root”
                              mode 0644
                            end




Tuesday, September 25, 12
A basic recipe

                            package “apache2” do
                              action :install
                            end

                            service “apache2” do
                              action :enable
                            end

                            cookbook_file “/etc/apache2/apache2.conf” do
                              source “apache2.conf”
                              owner “root”
                              group “root”
                              mode 0644
                            end

                            service “apache2” do
                             action :start
                            end



Tuesday, September 25, 12
A basic recipe

                            package “apache2” do
                              action :install
                            end

                            service “apache2” do
                              action :enable
                              supports [ :restart, :reload, :status ]
                            end

                            cookbook_file “/etc/apache2/apache2.conf” do
                              source “apache2.conf”
                              owner “root”
                              group “root”
                              mode 0644
                              notifies :restart, “service[apache2]”
                            end

                            service “apache2” do
                             action :start
                            end

Tuesday, September 25, 12
Nagios Demo
                            • Download server cookbooks
                            • Install server
                            • Create fake nodes
                            • Update server



Tuesday, September 25, 12
Questions?

                               There is lots more to
                               learn about Chef at
                            http://wiki.opscode.com


Tuesday, September 25, 12

More Related Content

Viewers also liked

ANALISIS DE INFORMACION
ANALISIS DE INFORMACIONANALISIS DE INFORMACION
ANALISIS DE INFORMACION
andreitaguzman
 
Esquema 6
Esquema 6Esquema 6
Esquema 6
marta88
 
Memorial Presentation in Honor of June Grace (Brown) MacArthur
Memorial Presentation in Honor of June Grace (Brown) MacArthurMemorial Presentation in Honor of June Grace (Brown) MacArthur
Memorial Presentation in Honor of June Grace (Brown) MacArthur
Lindsay Foster
 
98射擊成績
98射擊成績98射擊成績
98射擊成績
rainlan
 
Anti Depressants Drugs
Anti Depressants DrugsAnti Depressants Drugs
Anti Depressants Drugs
Ryan Calamba
 

Viewers also liked (20)

Trabajo Gbi
Trabajo GbiTrabajo Gbi
Trabajo Gbi
 
12 28 08 Weekly Prayer Sheet
12 28 08 Weekly Prayer Sheet12 28 08 Weekly Prayer Sheet
12 28 08 Weekly Prayer Sheet
 
India PR Wire May 15, 2009 Anxiety Grips Investors Ahead Of Election Verdict
India PR Wire May 15, 2009 Anxiety Grips Investors Ahead Of Election VerdictIndia PR Wire May 15, 2009 Anxiety Grips Investors Ahead Of Election Verdict
India PR Wire May 15, 2009 Anxiety Grips Investors Ahead Of Election Verdict
 
03 29 09 Prayer Sheet Dave
03 29 09 Prayer Sheet Dave03 29 09 Prayer Sheet Dave
03 29 09 Prayer Sheet Dave
 
Nagios Conference 2012 - Marcel Hecko - Importance of visual representation
Nagios Conference 2012 - Marcel Hecko - Importance of visual representationNagios Conference 2012 - Marcel Hecko - Importance of visual representation
Nagios Conference 2012 - Marcel Hecko - Importance of visual representation
 
ANALISIS DE INFORMACION
ANALISIS DE INFORMACIONANALISIS DE INFORMACION
ANALISIS DE INFORMACION
 
相關影片
相關影片相關影片
相關影片
 
Esquema 6
Esquema 6Esquema 6
Esquema 6
 
21st Century Airport Transportation Hubs
21st Century Airport Transportation Hubs21st Century Airport Transportation Hubs
21st Century Airport Transportation Hubs
 
Nagios Conference 2012 - Nicholas Scott - Advanced Data Analytics For Nagios
Nagios Conference 2012 - Nicholas Scott - Advanced Data Analytics For NagiosNagios Conference 2012 - Nicholas Scott - Advanced Data Analytics For Nagios
Nagios Conference 2012 - Nicholas Scott - Advanced Data Analytics For Nagios
 
3plantilla
3plantilla3plantilla
3plantilla
 
Memorial Presentation in Honor of June Grace (Brown) MacArthur
Memorial Presentation in Honor of June Grace (Brown) MacArthurMemorial Presentation in Honor of June Grace (Brown) MacArthur
Memorial Presentation in Honor of June Grace (Brown) MacArthur
 
Manzana
ManzanaManzana
Manzana
 
Umicore interview
Umicore interviewUmicore interview
Umicore interview
 
98射擊成績
98射擊成績98射擊成績
98射擊成績
 
Nagios Conference 2013 - Avleen Vig - Nagios at Etsy
Nagios Conference 2013 - Avleen Vig - Nagios at EtsyNagios Conference 2013 - Avleen Vig - Nagios at Etsy
Nagios Conference 2013 - Avleen Vig - Nagios at Etsy
 
Technicle analesis
Technicle analesis Technicle analesis
Technicle analesis
 
TYVM (Trailblazers 2012)
TYVM (Trailblazers 2012)TYVM (Trailblazers 2012)
TYVM (Trailblazers 2012)
 
Anti Depressants Drugs
Anti Depressants DrugsAnti Depressants Drugs
Anti Depressants Drugs
 
Nagios Conference 2012 - John Sellens - Nagios Indirection
Nagios Conference 2012 - John Sellens - Nagios IndirectionNagios Conference 2012 - John Sellens - Nagios Indirection
Nagios Conference 2012 - John Sellens - Nagios Indirection
 

Similar to Nagios Conference 2012 - Bryan McLellan - Using Nagios With Chef

Being agile while standing in a waterfall
Being agile while standing in a waterfallBeing agile while standing in a waterfall
Being agile while standing in a waterfall
Mike Edwards
 
Building Cordova plugins for iOS
Building Cordova plugins for iOSBuilding Cordova plugins for iOS
Building Cordova plugins for iOS
Grgur Grisogono
 
PFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP AppsPFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP Apps
Pablo Godel
 
Kostentreiber bei der iOS-Entwicklung
Kostentreiber bei der iOS-EntwicklungKostentreiber bei der iOS-Entwicklung
Kostentreiber bei der iOS-Entwicklung
xrb
 
Cloud computing presentation
Cloud computing presentationCloud computing presentation
Cloud computing presentation
larryphelps2003
 

Similar to Nagios Conference 2012 - Bryan McLellan - Using Nagios With Chef (20)

Workshop: Introduction to the Disruptor
Workshop: Introduction to the DisruptorWorkshop: Introduction to the Disruptor
Workshop: Introduction to the Disruptor
 
Being agile while standing in a waterfall
Being agile while standing in a waterfallBeing agile while standing in a waterfall
Being agile while standing in a waterfall
 
Content Ops is Tops!
Content Ops is Tops!Content Ops is Tops!
Content Ops is Tops!
 
Alex Watson, Dennis Publishing
Alex Watson, Dennis PublishingAlex Watson, Dennis Publishing
Alex Watson, Dennis Publishing
 
NoSql _ MongoDB - Italian Market copy
NoSql _ MongoDB - Italian Market copyNoSql _ MongoDB - Italian Market copy
NoSql _ MongoDB - Italian Market copy
 
Sharpen your axe drupal concph 2010
Sharpen your axe drupal concph 2010Sharpen your axe drupal concph 2010
Sharpen your axe drupal concph 2010
 
import continuous.delivery.*
import continuous.delivery.*import continuous.delivery.*
import continuous.delivery.*
 
Agile V2
Agile V2Agile V2
Agile V2
 
Berlin.JS Meetup
Berlin.JS MeetupBerlin.JS Meetup
Berlin.JS Meetup
 
Building Cordova plugins for iOS
Building Cordova plugins for iOSBuilding Cordova plugins for iOS
Building Cordova plugins for iOS
 
Agile Methods - An Overview - Marc Bless - 2009
Agile Methods - An Overview - Marc Bless - 2009Agile Methods - An Overview - Marc Bless - 2009
Agile Methods - An Overview - Marc Bless - 2009
 
PFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP AppsPFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP Apps
 
REST & Hypermedia: the missing links and why you need them - Ruby Hoedown 2012
REST & Hypermedia: the missing links and why you need them - Ruby Hoedown 2012REST & Hypermedia: the missing links and why you need them - Ruby Hoedown 2012
REST & Hypermedia: the missing links and why you need them - Ruby Hoedown 2012
 
eXo Software Factory Overview
eXo Software Factory OvervieweXo Software Factory Overview
eXo Software Factory Overview
 
Selenium Basics
Selenium BasicsSelenium Basics
Selenium Basics
 
HH.JS - State of the Automation
HH.JS - State of the AutomationHH.JS - State of the Automation
HH.JS - State of the Automation
 
Kostentreiber bei der iOS Entwicklung
Kostentreiber bei der iOS EntwicklungKostentreiber bei der iOS Entwicklung
Kostentreiber bei der iOS Entwicklung
 
Kostentreiber bei der iOS-Entwicklung
Kostentreiber bei der iOS-EntwicklungKostentreiber bei der iOS-Entwicklung
Kostentreiber bei der iOS-Entwicklung
 
Cloud computing presentation
Cloud computing presentationCloud computing presentation
Cloud computing presentation
 
Nuget
NugetNuget
Nuget
 

More from Nagios

More from Nagios (20)

Nagios XI Best Practices
Nagios XI Best PracticesNagios XI Best Practices
Nagios XI Best Practices
 
Jesse Olson - Nagios Log Server Architecture Overview
Jesse Olson - Nagios Log Server Architecture OverviewJesse Olson - Nagios Log Server Architecture Overview
Jesse Olson - Nagios Log Server Architecture Overview
 
Trevor McDonald - Nagios XI Under The Hood
Trevor McDonald  - Nagios XI Under The HoodTrevor McDonald  - Nagios XI Under The Hood
Trevor McDonald - Nagios XI Under The Hood
 
Sean Falzon - Nagios - Resilient Notifications
Sean Falzon - Nagios - Resilient NotificationsSean Falzon - Nagios - Resilient Notifications
Sean Falzon - Nagios - Resilient Notifications
 
Marcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise Edition
Marcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise EditionMarcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise Edition
Marcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise Edition
 
Janice Singh - Writing Custom Nagios Plugins
Janice Singh - Writing Custom Nagios PluginsJanice Singh - Writing Custom Nagios Plugins
Janice Singh - Writing Custom Nagios Plugins
 
Dave Williams - Nagios Log Server - Practical Experience
Dave Williams - Nagios Log Server - Practical ExperienceDave Williams - Nagios Log Server - Practical Experience
Dave Williams - Nagios Log Server - Practical Experience
 
Mike Weber - Nagios and Group Deployment of Service Checks
Mike Weber - Nagios and Group Deployment of Service ChecksMike Weber - Nagios and Group Deployment of Service Checks
Mike Weber - Nagios and Group Deployment of Service Checks
 
Mike Guthrie - Revamping Your 10 Year Old Nagios Installation
Mike Guthrie - Revamping Your 10 Year Old Nagios InstallationMike Guthrie - Revamping Your 10 Year Old Nagios Installation
Mike Guthrie - Revamping Your 10 Year Old Nagios Installation
 
Bryan Heden - Agile Networks - Using Nagios XI as the platform for Monitoring...
Bryan Heden - Agile Networks - Using Nagios XI as the platform for Monitoring...Bryan Heden - Agile Networks - Using Nagios XI as the platform for Monitoring...
Bryan Heden - Agile Networks - Using Nagios XI as the platform for Monitoring...
 
Matt Bruzek - Monitoring Your Public Cloud With Nagios
Matt Bruzek - Monitoring Your Public Cloud With NagiosMatt Bruzek - Monitoring Your Public Cloud With Nagios
Matt Bruzek - Monitoring Your Public Cloud With Nagios
 
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
 
Eric Loyd - Fractal Nagios
Eric Loyd - Fractal NagiosEric Loyd - Fractal Nagios
Eric Loyd - Fractal Nagios
 
Marcelo Perazolo, Lead Software Architect, IBM Corporation - Monitoring a Pow...
Marcelo Perazolo, Lead Software Architect, IBM Corporation - Monitoring a Pow...Marcelo Perazolo, Lead Software Architect, IBM Corporation - Monitoring a Pow...
Marcelo Perazolo, Lead Software Architect, IBM Corporation - Monitoring a Pow...
 
Thomas Schmainda - Tracking Boeing Satellites With Nagios - Nagios World Conf...
Thomas Schmainda - Tracking Boeing Satellites With Nagios - Nagios World Conf...Thomas Schmainda - Tracking Boeing Satellites With Nagios - Nagios World Conf...
Thomas Schmainda - Tracking Boeing Satellites With Nagios - Nagios World Conf...
 
Nagios World Conference 2015 - Scott Wilkerson Opening
Nagios World Conference 2015 - Scott Wilkerson OpeningNagios World Conference 2015 - Scott Wilkerson Opening
Nagios World Conference 2015 - Scott Wilkerson Opening
 
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios CoreNrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
 
Nagios Log Server - Features
Nagios Log Server - FeaturesNagios Log Server - Features
Nagios Log Server - Features
 
Nagios Network Analyzer - Features
Nagios Network Analyzer - FeaturesNagios Network Analyzer - Features
Nagios Network Analyzer - Features
 
Nagios Conference 2014 - Dorance Martinez Cortes - Customizing Nagios
Nagios Conference 2014 - Dorance Martinez Cortes - Customizing NagiosNagios Conference 2014 - Dorance Martinez Cortes - Customizing Nagios
Nagios Conference 2014 - Dorance Martinez Cortes - Customizing Nagios
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

Nagios Conference 2012 - Bryan McLellan - Using Nagios With Chef

  • 1. Configuring Nagios with Chef Bryan McLellan Technical Program Manager, Open Source btm@opscode.com / @btmspox Tuesday, September 25, 12
  • 2. Overview • Who am I? • Why automation • Introduction to Chef • Nagios Demo • Questions Tuesday, September 25, 12
  • 3. Who am I? • Chef Early developer, user, pundit • 10+ years in Systems Administration Computer repair, ISPs, Corporate IT, Web operations • Event Logistics Volunteer Traffic Control, Parking, Communications, Networking, Emergency Management • Hacker-Operator Trucks, Bikes, Radios, Tractors Tuesday, September 25, 12
  • 4. How did we get here? Bare Metal Deployment Tuesday, September 25, 12
  • 5. How did we get here? Bare Metal Deployment • Purchasing Tuesday, September 25, 12
  • 6. How did we get here? Bare Metal Deployment • Purchasing • Vendor build Tuesday, September 25, 12
  • 7. How did we get here? Bare Metal Deployment • Purchasing • Vendor build • Delivery Tuesday, September 25, 12
  • 8. How did we get here? Bare Metal Deployment • Purchasing • Vendor build • Delivery • Installation Tuesday, September 25, 12
  • 9. How did we get here? Bare Metal Deployment • Purchasing • Vendor build • Delivery • Installation • OS deployment Tuesday, September 25, 12
  • 10. How did we get here? Bare Metal Deployment • Purchasing • Vendor build • Delivery • Installation • OS deployment • Application deployment Tuesday, September 25, 12
  • 11. How did we get here? Bare Metal Deployment • Purchasing • Vendor build • Delivery Weeks? • Installation • OS deployment • Application deployment Tuesday, September 25, 12
  • 12. How did we get here? Cloud Deployment • Purchasing • Vendor build • Delivery Nearly immediate • Installation • OS deployment • Application deployment Tuesday, September 25, 12
  • 13. How did we get here? Cloud Deployment • Purchasing • Vendor build • Delivery Nearly immediate • Installation • OS deployment • Application deployment Must be fast Tuesday, September 25, 12
  • 14. Why automate? Good Reasons: • More agility and faster scalability • Improved infrastructure documentation • Better disaster recovery Tuesday, September 25, 12
  • 15. Why automate? Good Reasons: • More agility and faster scalability • Improved infrastructure documentation • Better disaster recovery Really Good Reasons: • Spend less time on monotonous tasks • Spend more time solving interesting problems Tuesday, September 25, 12
  • 17. Chef Principles • Idempotent Tuesday, September 25, 12
  • 18. Chef Principles • Idempotent • Reasonable Tuesday, September 25, 12
  • 19. Chef Principles • Idempotent • Reasonable • Primitives Tuesday, September 25, 12
  • 20. Chef Principles • Idempotent • Reasonable • Primitives • Scalable Tuesday, September 25, 12
  • 21. Chef Principles • Idempotent • Reasonable • Primitives • Scalable • Hackable Tuesday, September 25, 12
  • 22. Chef Principles • Idempotent • Reasonable • Primitives • Scalable • Hackable • Shareable Tuesday, September 25, 12
  • 23. What is Chef? • Configuration management language • Systems integration framework • API for your infrastructure http://www.flickr.com/photos/morville/3220961040/ Tuesday, September 25, 12
  • 24. Application Programming Interface The Meatcloud Manifesto Give me an API or give me death. -- Andrew Clay Shafer (@littleidea) Tuesday, September 25, 12
  • 25. Chef Basics Chef manages Nodes Tuesday, September 25, 12
  • 26. Chef Basics Chef manages Nodes Nodes have Attributes Tuesday, September 25, 12
  • 27. Chef Basics Chef manages Nodes Nodes have Attributes Users and Nodes authenticate as Clients Tuesday, September 25, 12
  • 28. Chef Basics Chef manages Nodes Nodes have Attributes Users and Nodes authenticate as Clients Cookbooks contain Recipes Tuesday, September 25, 12
  • 29. Chef Basics Chef manages Nodes Nodes have Attributes Users and Nodes authenticate as Clients Cookbooks contain Recipes Each node has a Run List Tuesday, September 25, 12
  • 30. Chef Basics Chef manages Nodes Nodes have Attributes Users and Nodes authenticate as Clients Cookbooks contain Recipes Each node has a Run List A Run List is a list of Recipes to run Tuesday, September 25, 12
  • 31. Chef Basics Chef manages Nodes Nodes have Attributes Users and Nodes authenticate as Clients Cookbooks contain Recipes Each node has a Run List A Run List is a list of Recipes to run Recipes can be grouped in a Role Tuesday, September 25, 12
  • 32. Chef Basics Chef manages Nodes Nodes have Attributes Users and Nodes authenticate as Clients Cookbooks contain Recipes Each node has a Run List A Run List is a list of Recipes to run Recipes can be grouped in a Role Roles can also be added to a Run List Tuesday, September 25, 12
  • 33. Chef Basics Chef manages Nodes Nodes have Attributes Users and Nodes authenticate as Clients Cookbooks contain Recipes Each node has a Run List A Run List is a list of Recipes to run Recipes can be grouped in a Role Roles can also be added to a Run List Nodes can be in Environments Tuesday, September 25, 12
  • 34. Chef Basics Chef manages Nodes Nodes have Attributes Users and Nodes authenticate as Clients Cookbooks contain Recipes Each node has a Run List A Run List is a list of Recipes to run Recipes can be grouped in a Role Roles can also be added to a Run List Nodes can be in Environments Data bags are... bags of data. Tuesday, September 25, 12
  • 35. Chef Basics Visualized client: srv01 client: srv02 client: srv03 node: srv01 node: srv02 node: srv03 run_list: “role[web_server]” run_list: “role[web_server]” run_list: “role[db_server]” role: web_server role: db_server run_list: [“recipe[apache2]”, “recipe[php]” ] run_list: [ “recipe[mysql]”, “recipe[nfs]” ] Tuesday, September 25, 12
  • 36. Chef Stacks chef-client knife chef-shell chef-solo API Open Source Hosted Chef Private Chef Tuesday, September 25, 12
  • 37. Chef 10 Open Source Architecture Chef Expander Tuesday, September 25, 12
  • 38. Resources • A Resource is something you manage service, package, file, user, execute, git Tuesday, September 25, 12
  • 39. Resources • A Resource is something you manage service, package, file, user, execute, git • Resources have actions start, install, create, deploy • Resources can notify of other resources Tuesday, September 25, 12
  • 40. Resources • A Resource is something you manage service, package, file, user, execute, git • Resources have actions start, install, create, deploy • Resources can notify of other resources cookbook_file “/etc/apache2/apache2.conf” do source “apache2.conf” owner “root” group “root” mode 0644 notifies :restart, “service[apache2]” end Tuesday, September 25, 12
  • 41. Providers • A Provider performs the actions specified by the resource Tuesday, September 25, 12
  • 42. Providers • A Provider performs the actions specified by the resource • Each Resource can have multiple providers package: apt, yum, macports... service: upstart, windows, systemd... Tuesday, September 25, 12
  • 43. Providers • A Provider performs the actions specified by the resource • Each Resource can have multiple providers package: apt, yum, macports... service: upstart, windows, systemd... • Each platform (OS) has default Providers that can be overridden package “sudo” do provider Chef::Provider::Package::Yum action :install end Tuesday, September 25, 12
  • 44. A basic recipe package “apache2” do action :install end Tuesday, September 25, 12
  • 45. A basic recipe package “apache2” do action :install end service “apache2” do action :enable end Tuesday, September 25, 12
  • 46. A basic recipe package “apache2” do action :install end service “apache2” do action :enable end cookbook_file “/etc/apache2/apache2.conf” do source “apache2.conf” owner “root” group “root” mode 0644 end Tuesday, September 25, 12
  • 47. A basic recipe package “apache2” do action :install end service “apache2” do action :enable end cookbook_file “/etc/apache2/apache2.conf” do source “apache2.conf” owner “root” group “root” mode 0644 end service “apache2” do action :start end Tuesday, September 25, 12
  • 48. A basic recipe package “apache2” do action :install end service “apache2” do action :enable supports [ :restart, :reload, :status ] end cookbook_file “/etc/apache2/apache2.conf” do source “apache2.conf” owner “root” group “root” mode 0644 notifies :restart, “service[apache2]” end service “apache2” do action :start end Tuesday, September 25, 12
  • 49. Nagios Demo • Download server cookbooks • Install server • Create fake nodes • Update server Tuesday, September 25, 12
  • 50. Questions? There is lots more to learn about Chef at http://wiki.opscode.com Tuesday, September 25, 12