Chapter 9. Managing Configuration

In this chapter, we will cover the following recipes:

  • Grouping configuration files in directories
  • Keeping configuration under version control
  • Configuring host roles using groups
  • Building groups using regular expressions
  • Using inheritance to simplify configuration
  • Defining macros in a resource file
  • Dynamically building host definitions

Introduction

A major downside of Nagios Core's configuration being so flexible is that without proper management, a configuration can easily balloon out into hundreds of files with thousands of objects, all having unclear dependencies. This can be frustrating when attempting to make significant changes to a configuration, or even for something as simple as removing a host, sifting through ...

Get Nagios Core Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.