2 * Icinga 2 configuration file
3 * - this is where you define settings for the Icinga application including
4 * which hosts/services to check.
6 * The docs/icinga2-config.txt file in the source tarball has a detailed
7 * description of what configuration options are available.
11 * Global configuration settings
13 local object IcingaApplication "icinga" {
14 pid_path = "icinga2.pid",
15 log_path = "icinga2.log",
16 state_path = "icinga2.state",
19 plugindir = "C:\Plugins"
24 * The checker component takes care of executing service checks.
26 local object Component "checker" {
31 * The delegation component assigns services to checkers. You need to load
32 * this component even if your Icinga setup only consists of a single instance.
34 local object Component "delegation" {
39 * The compat component periodically updates the status.dat and objects.cache
40 * files. These are used by the Icinga 1.x CGIs to display the state of
43 local object Component "compat" {
44 status_path = "status.dat",
45 objects_path = "objects.cache",
49 * The compatido component works as idomod connector to a running ido2db
50 * daemon, connected via tcp socket only. It will dump config and status
51 * information periodically for now. By default, this remains disabled.
54 local object Component "compatido" {
55 socket_address = "127.0.0.1",
57 instance_name = "i2-default",
62 * This template defines some basic parameters for services that use
63 * external plugins for their checks.
65 abstract object Service "icinga-service" {
67 check = "native::PluginCheck"
72 * The service template for ping checks. In an Icinga 1.x environment
73 * this would be defined as a check command.
75 abstract object Service "ping" inherits "icinga-service" {
77 /* using check_winping from https://www.itefix.no/i2/check_winping */
78 check_command = "$plugindir$\check_ping.exe -H $address$ -w $wrta$,$wpl$% -c $crta$,$cpl$%",
89 * And finally we define some host that should be checked.
91 object Host "localhost" {
92 services = { "ping" },