Book Image

Puppet Reporting and Monitoring

By : Michael Duffy
Book Image

Puppet Reporting and Monitoring

By: Michael Duffy

Overview of this book

Table of Contents (16 chapters)
Puppet Reporting and Monitoring
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Creating Your Own Report Processor

In previous chapters, we've taken a look at some of the report processors that are shipped with Puppet and also some of the fantastic third-party plugins that have been developed to add new functionality. Now, it's time to show you how to go about making your own report plugins.

In this chapter, we're going to take a look at the following topics:

  • Creating our first report processor

  • Creating our own custom e-mail alerts

  • Logging events into MySQL

  • Raising issues with Atlassian JIRA

As with any Puppet plugin, our language of choice will be Ruby. You should be familiar with Ruby if you want to get the most out of this chapter; however, don't worry if you're not a Ruby guru; the examples use extremely basic code. If you need to brush up on your Ruby skills, then I highly recommend taking a look at Learn Ruby the Hard Way, Zed A. Shaw. Don't be put off by the title; it's both highly approachable and very effective in teaching you the basics of Ruby. It's...