Book Image

Chef Infrastructure Automation Cookbook Second Edition

By : Matthias Marschall
Book Image

Chef Infrastructure Automation Cookbook Second Edition

By: Matthias Marschall

Overview of this book

Table of Contents (14 chapters)
Chef Infrastructure Automation Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Deploying a Nagios monitoring server


Nagios is one of the most widely spread monitoring packages available. Chef provides you with a cookbook to install a Nagios server, as well as Nagios clients. It provides ways to configure service checks, service groups and so on, using data bags instead of manually editing Nagios configuration files.

Getting ready

Make sure that you have a cookbook named my_cookbook and that the run_list of your node includes my_cookbook, as described in the Creating and using cookbooks recipe in Chapter 1, Chef Infrastructure:

  1. Create your Berksfile in your Chef repository including the nagios cookbook:

    mma@laptop:~/chef-repo $ subl Berksfile
    
    cookbook 'resource-control'
    cookbook 'nagios'
  2. Install the nagios cookbook:

    mma@laptop:~/chef-repo $ berks install
    
    Using nagios (7.0.2)
    ...TRUNCATED OUTPUT...
  3. Upload the nagios cookbook to the Chef server:

    mma@laptop:~/chef-repo $ berks upload
    
    ...TRUNCATED OUTPUT...
    Uploading nagios (7.0.2) to: 'https://api.chef.io:443/organizations...