/** * This file defines global constants which can be used in * the other configuration files. *//* The directory which contains the plugins from the Monitoring Plugins project. */const PluginDir = "/usr/lib/nagios/plugins"/* The directory which contains the Manubulon plugins. * Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details. */const ManubulonPluginDir = "/usr/lib/nagios/plugins"/* The directory which you use to store additional plugins which ITL provides user contributed command definitions for. * Check the documentation, chapter "Plugins Contribution", for details. */const PluginContribDir = "/usr/lib/nagios/plugins"/* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`. * This should be the common name from the API certificate. */const NodeName = "<AGENT-NODE-FQDN>"/* Our local zone name. */const ZoneName = "<AGENT-NODE-FQDN>"/* Secret key for remote node tickets */const TicketSalt = ""
/* * Generated by Icinga 2 node setup commands * on 2017-11-17 18:56:55 +0100 */object Endpoint "<MASTER-FQDN>" { host = "<MASTER-IP>" port = "5665"}object Zone "master" { endpoints = [ "<MASTER-FQDN>" ]}object Zone "global-templates" { global = true}object Endpoint NodeName {}object Zone ZoneName { endpoints = [ NodeName ] parent = "master"}
/** * Icinga 2 configuration file * - this is where you define settings for the Icinga application including * which hosts/services to check. * * For an overview of all available configuration options please refer * to the documentation that is distributed as part of Icinga 2. *//** * The constants.conf defines global constants. */include "constants.conf"/** * The zones.conf defines zones for a cluster setup. * Not required for single instance setups. */include "zones.conf"/** * The Icinga Template Library (ITL) provides a number of useful templates * and command definitions. * Common monitoring plugin command definitions are included separately. */include <itl>include <plugins>include <plugins-contrib>include <manubulon>/** * This includes the Icinga 2 Windows plugins. These command definitions * are required on a master node when a client is used as command endpoint. */include <windows-plugins>/** * This includes the NSClient++ check commands. These command definitions * are required on a master node when a client is used as command endpoint. */include <nscp>/** * The features-available directory contains a number of configuration * files for features which can be enabled and disabled using the * icinga2 feature enable / icinga2 feature disable CLI commands. * These commands work by creating and removing symbolic links in * the features-enabled directory. */include "features-enabled/*.conf"/** * Although in theory you could define all your objects in this file * the preferred way is to create separate directories and files in the conf.d * directory. Each of these files must have the file extension ".conf". */include_recursive "conf.d"
...const ZoneName = "<MY-SATELLITE-ZONE>"...
object Endpoint "<AGENT-NODE-FQDN>" { host = "<AGENT-NODE-IP>" log_duration = 0s}object Zone "<AGENT-NODE-FQDN>" { parent = "<MY-SATELLITE-ZONE>" endpoints = [ "<AGENT-NODE-FQDN>" ]}
...#include_recursive "conf.d"...