Chapter 9. Managing Configuration

In this chapter, we will cover:

  • Grouping configuration files in directories
  • Keeping a 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
  • Using another object's directives in a host or service check
  • Using custom directives
  • Dynamically building host definitions

Introduction

A major downside of Nagios Core's configuration being so flexible is that without proper management, the configuration can easily balloon into hundreds of files with thousands of objects, all having unclear dependencies. This can be frustrating when you attempt to make significant changes to a configuration or even ...

Get Nagios Core Administration Cookbook - Second Edition 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.