Book Image

LEARNING PUPPET

Book Image

LEARNING PUPPET

Overview of this book

Table of Contents (17 chapters)
Learning Puppet
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Enable monitoring on the web server


So, the monitoring server is now fully up and running, and so far it monitors one host—the monitoring server itself. What we are most interested in is monitoring the web server that we built in Chapter 3, My First Puppet Module. On a high level, the process is the following.

  • Configure web server host and checks on the Nagios Server

  • Apply nagios::client class on the web server

Let's tackle the first bullet point first and add the web server host and the checks for it on the Nagios Server.

Configuring the web server host and checks on the Nagios Server

Nagios resources such as hosts and checks have built-in resource types in Puppet. Nagios hosts are configured with the resource type called nagios_host and checks are configured with the resource type nagios_service.

Monitoring checks in Nagios terminology are called services.

Creating a Nagios host

Every host that we want to monitor must be configured on the Nagios Server. Nagios host resource requires two pieces...