Summary

When creating or extending Nagios configuration to monitor a large number of resources, spend some time planning the layout of your configuration. Some people recommend one file for each single definition, while others recommend storing things in a single file per host. We recommend keeping similar things in the same file and maintaining a directory-based set of files.

In this chapter we have learned the following things:

  • Setting up efficient directory structure and file naming standards
  • Where to put objects depending on the type and hosts it is configured for
  • How to define dependencies so that Nagios can then detect root causes of problems
  • Using templates to ease defining a large number of objects
  • Accessing host, service, or contact-specific ...

Get Learning Nagios - Third 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.