SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
Serverspec and Sensu - Testing and Monitoring collide
4.
CM/PROVISIONING TOOL AGNOSTIC
SERVERS CAN BE BUILT USING
• CHEF
• PUPPET
• CF-ENGINE
• ANSIBLE
• POWER SHELL
• SHELL SCRIPTS
• MANUAL HACK
• WHAT EVER.
5.
26 RESOURE TYPES INCLUDING
• COMMAND
• DEFAULT_GATEWAY
• FILE
• GROUP
• HOST
• INTERFACE
• IPTABLES
• KERNEL_MODULE
• PACKAGE
• PORT
• PROCESS
• SERVICE
• USER
• WINDOWS_REGISTRY_KEY
19.
ITERATION 2+
RSpec in json format
Send each test result
to sensu socket
Report summary serverspec results
to back to sensu defined check
Iterate over rspec results
20.
ITERATION 2+
Summary results Individual test failures
21.
SUMMARY
1. Write tests for your systems
2. Don’t duplicate effort.
3. Run your tests via a monitoring tool
22.
THANK YOU
Michael Richardson - @m_richo
https://github.com/m-richo/sensu_check-rspec