SlideShare a Scribd company logo
Monitoring with
First of all...
First of all...
Why we (me) don’t like Nagios?
• No active-active cluster
Why we (me) don’t like Nagios?
• No active-active cluster (nor easy active-passive one)
Why we (me) don’t like Nagios?
• No active-active cluster (nor easy active-passive one)
Why we (me) don’t like Nagios?
• No active-active cluster (nor easy active-passive one)
• Restart after adding a host (auto-scaling
anyone??)
Why we (me) don’t like Nagios?
• No active-active cluster (nor easy active-passive one)
• Restart after adding a host (auto-scaling
anyone??)
• (Really) difficult to hack on
Why we (me) don’t like Nagios?
• The master executes the checks (all of them!)
Why we (me) don’t like Nagios?
• The master executes the checks (all of them!)
• Painful config reloads if using slaves
Why we (me) don’t like Nagios?
• The master executes the checks (all of them!)
• Painful config reloads if using slaves
• (Quite) hard to configure
Why we (me) don’t like Nagios?
• First release: March 14, 1999
Why we (me) don’t like Nagios?
• First release: March 14, 1999
Monitoring with sensu
What’s Sensu?
• A monitoring framework
• They say “monitoring router”
• It takes results of checks and passes them to
handlers
Sensu facts
• Active-active cluster
Sensu facts
• Active-active cluster
• Hosts automagically registered when agent
starts
Sensu facts
• Active-active cluster
• Hosts automagically registered when agent
starts
• Written in Ruby
Sensu facts
• Clients execute all the checks (all of them!)
Sensu facts
• Clients execute all the checks (all of them!)
• No need to have slaves (but you can if you
want to)
Sensu facts
• Clients execute all the checks (all of them!)
• No need to have slaves (but you can if you
want to)
• Configured with small JSON files
Sensu facts
• Clients execute all the checks (all of them!)
• No need to have slaves (but you can if you
want to)
• Configured with small JSON files
• Compatible with Nagios plugins!
Sensu facts
• IT’S 2014
Sensu facts
• IT’S 2014
What does Sensu provide?
• Agent (client) to gather check results
• Server to take actions (or not) on these results
• REST API to query the state
• Optional dashboard to query the API
What does Sensu NOT provide?
• Storage for the results history
• Notifications
• Graphing
Architecture overview
Two modes of operation
Subscription
subscription messages
Subscription
check request
Subscription
check results
Standalone
Standalone
check results
• Modes can be mixed
• The client also listens for results in a socket
– Throw JSON to it from your application
Monitoring with sensu
Handlers
• Each check can have its own handler
• Sensu considers only results flagged as
“metrics” and not-ok’s
Handler types
• Pipe: the server executes a script and throws
the event as JSON to the standard input
• TPC and UDP: the server connects to a host
and port and delivers the event
• AMQP: the event can be reinjected in the
broker for further routing
Monitoring with sensu
Handling events selectively
• What if you don’t want to handle some
events?
• REST API to the rescue
Stashes
• A stash is associated with an ID (a “path”)
• You can store here as much shit as you want
• Put a “silence” in the stash, and make your
handlers check for it.
Mutators
• A filter to modify event data before passing it
to a handler.
• Example: manipulate events to make them
suitable for graphite before passing them to a
TCP handler
Extensions
• Mutators and Handlers running in the same
process than Sensu
• They must be written also in Ruby
• Run in the same event loop
Monitoring with sensu
Things missing / rant
• You can’t monitor something if you can’t
install an agent on it.
– There’s a ticket open since more than one year
ago...
– Some patches, but still not a solution
• As with nagios, the state is decided by the
plugins.
Further research
• http://sensuapp.org/docs/0.12
• https://github.com/sensu
• http://sensuapp.org/support/
• https://metacpan.org/pod/Sensu::API::Client

More Related Content

PDF
Sensu @ Yelp!: A Guided Tour
PDF
How Yelp Uses Sensu to Monitor Services in a SOA World
PPTX
WTF is Sensu and Monitoring
PDF
Sensu and Sensibility - Puppetconf 2014
PDF
PDF
Stop using Nagios (so it can die peacefully)
PPTX
Open Source Monitoring Tools
ODP
Sensu at brightpearl
Sensu @ Yelp!: A Guided Tour
How Yelp Uses Sensu to Monitor Services in a SOA World
WTF is Sensu and Monitoring
Sensu and Sensibility - Puppetconf 2014
Stop using Nagios (so it can die peacefully)
Open Source Monitoring Tools
Sensu at brightpearl

What's hot (20)

PDF
Puppet Camp NYC 2014: Build a Modern Infrastructure in 45 min!
PDF
Performance Tuning Your Puppet Infrastructure - PuppetConf 2014
PDF
Chasing AMI - Building Amazon machine images with Puppet, Packer and Jenkins
PPTX
Grafana and MySQL - Benefits and Challenges
PDF
infra-as-code
PDF
Embedded software development using BDD
PPTX
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
PDF
Ansible Case Studies
PDF
Chef at WebMD
PPTX
Coolblue - Behind the Scenes Continuous Integration & Deployment
PPTX
Test-Driven Infrastructure with Puppet, Test Kitchen, Serverspec and RSpec
PPTX
Developing and Testing with Enhanced Oscar
PDF
Puppet Camp Denver 2015: Developing and Testing with Enhanced Oscar
PDF
Puppet Camp Paris 2015: Continuous Integration of Puppet Code (Intermediate)
PDF
The Puppet Master on the JVM - PuppetConf 2014
PDF
Getting Started with Ansible
PPT
Getting to push_button_deploys
PDF
A quick intro to Ansible
PPTX
Ansible module development 101
PDF
Zabbix Console
Puppet Camp NYC 2014: Build a Modern Infrastructure in 45 min!
Performance Tuning Your Puppet Infrastructure - PuppetConf 2014
Chasing AMI - Building Amazon machine images with Puppet, Packer and Jenkins
Grafana and MySQL - Benefits and Challenges
infra-as-code
Embedded software development using BDD
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
Ansible Case Studies
Chef at WebMD
Coolblue - Behind the Scenes Continuous Integration & Deployment
Test-Driven Infrastructure with Puppet, Test Kitchen, Serverspec and RSpec
Developing and Testing with Enhanced Oscar
Puppet Camp Denver 2015: Developing and Testing with Enhanced Oscar
Puppet Camp Paris 2015: Continuous Integration of Puppet Code (Intermediate)
The Puppet Master on the JVM - PuppetConf 2014
Getting Started with Ansible
Getting to push_button_deploys
A quick intro to Ansible
Ansible module development 101
Zabbix Console
Ad

Viewers also liked (18)

PDF
An Introduction to Sensu by Bethany Erskine
PDF
Sense and Sensu-bility: Painless Metrics And Monitoring In The Cloud with Sensu
PDF
PDF
Sensu -The Next Generateion Monitoring Framework-
PPTX
Centralized monitoring station for it computing and network infrastructure
PDF
“Sensu and Sensibility” - The Story of a Journey From #monitoringsucks to #mo...
PPTX
Cf summit-2016-monitoring-cf-sensu-graphite
PPTX
Sensu Monitoring
PPTX
The ultimate container monitoring bake-off - Rancher Online Meetup October 2016
PDF
Understanding PHP memory
PDF
PuppetConf 2016: Watching the Puppet Show – Sean Porter, Heavy Water Operations
PPTX
Volta: Logging, Metrics, and Monitoring as a Service
PPTX
Serverspec and Sensu - Testing and Monitoring collide
PPTX
Introduction to Kubernetes
PDF
Scaling Docker with Kubernetes
PPTX
Go Faster with Ansible (AWS meetup)
PDF
An Introduction to Kubernetes
PDF
SXSW 2016 takeaways
An Introduction to Sensu by Bethany Erskine
Sense and Sensu-bility: Painless Metrics And Monitoring In The Cloud with Sensu
Sensu -The Next Generateion Monitoring Framework-
Centralized monitoring station for it computing and network infrastructure
“Sensu and Sensibility” - The Story of a Journey From #monitoringsucks to #mo...
Cf summit-2016-monitoring-cf-sensu-graphite
Sensu Monitoring
The ultimate container monitoring bake-off - Rancher Online Meetup October 2016
Understanding PHP memory
PuppetConf 2016: Watching the Puppet Show – Sean Porter, Heavy Water Operations
Volta: Logging, Metrics, and Monitoring as a Service
Serverspec and Sensu - Testing and Monitoring collide
Introduction to Kubernetes
Scaling Docker with Kubernetes
Go Faster with Ansible (AWS meetup)
An Introduction to Kubernetes
SXSW 2016 takeaways
Ad

Similar to Monitoring with sensu (20)

PDF
OSMC 2014 | Monitoring Love with Sensu by Jochen Lillich
PDF
Superb Supervision of Short-lived Servers with Sensu
PDF
OSMC 2014: MonitoringLove with Sensu | Jochen Lillich
PDF
Sensu at nycdevops Meetup
PPTX
Sonian, Open Source and Sensu
PDF
Open source monitoring systems
PDF
Keynote: Sensu as a multi-cloud monitoring control plane
ODP
Nagios Conference 2014 - Eric Mislivec - Getting Started With Nagios Core
PDF
Reimagining Sensu
PDF
Lesson_08_Continuous_Monitoring.pdf
PDF
OSMC 2014 | Time to say goodbye to your Nagios based setup? by Oliver Jan
PDF
Handout: 'Open Source Tools & Resources'
ODP
Monitoring shootout loadays
PPTX
The Box.com success story: migrating 350K Nagios objects to Sensu
ODP
Open Source Monitoring Tools Shootout
PPTX
Time to say goodbye to your Nagios based setup
PDF
OSMC 2014: Time to say goodbye to your Nagios setup | Oliver Jan
PPT
Nagios
ODP
opensource Monitoring Tool , an overview
PDF
Monitoring in the cloud with Puppet
OSMC 2014 | Monitoring Love with Sensu by Jochen Lillich
Superb Supervision of Short-lived Servers with Sensu
OSMC 2014: MonitoringLove with Sensu | Jochen Lillich
Sensu at nycdevops Meetup
Sonian, Open Source and Sensu
Open source monitoring systems
Keynote: Sensu as a multi-cloud monitoring control plane
Nagios Conference 2014 - Eric Mislivec - Getting Started With Nagios Core
Reimagining Sensu
Lesson_08_Continuous_Monitoring.pdf
OSMC 2014 | Time to say goodbye to your Nagios based setup? by Oliver Jan
Handout: 'Open Source Tools & Resources'
Monitoring shootout loadays
The Box.com success story: migrating 350K Nagios objects to Sensu
Open Source Monitoring Tools Shootout
Time to say goodbye to your Nagios based setup
OSMC 2014: Time to say goodbye to your Nagios setup | Oliver Jan
Nagios
opensource Monitoring Tool , an overview
Monitoring in the cloud with Puppet

Recently uploaded (20)

PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
assetexplorer- product-overview - presentation
PDF
Digital Strategies for Manufacturing Companies
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
top salesforce developer skills in 2025.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
L1 - Introduction to python Backend.pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Transform Your Business with a Software ERP System
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Cost to Outsource Software Development in 2025
Operating system designcfffgfgggggggvggggggggg
Why Generative AI is the Future of Content, Code & Creativity?
Navsoft: AI-Powered Business Solutions & Custom Software Development
Internet Downloader Manager (IDM) Crack 6.42 Build 41
assetexplorer- product-overview - presentation
Digital Strategies for Manufacturing Companies
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
top salesforce developer skills in 2025.pdf
Design an Analysis of Algorithms I-SECS-1021-03
L1 - Introduction to python Backend.pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Transform Your Business with a Software ERP System
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Odoo POS Development Services by CandidRoot Solutions
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
How to Choose the Right IT Partner for Your Business in Malaysia
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Cost to Outsource Software Development in 2025

Monitoring with sensu

Editor's Notes

  • #10: Checks NRPE también son ejecutados por el master Lo que además implica tener “algo” escuchando hacia afuera en las máquinas a monitorizar O poder acceder por VPN
  • #13: Hace más de 15 años
  • #14: Hace más de 15 años. Ha servido durante mucho tiempo y lo ha hecho bien. Pero no me malinterpretéis. Herramienta equivocada.
  • #26: Sensu es un framework. Esto es lo único que da
  • #30: suscripcion a uno o mas conjuntos de checks - una vez cuando el cliente arranca
  • #31: El servidor publica periódicamente peticiones de check
  • #32: respuesta
  • #34: Cliente planifica sus checks y va enviando
  • #37: For each event, sensu will send the event data to its handler If you want to take actions on Oks, mark them as metrics