]> granicus.if.org Git - icinga2/blob - icinga-app/config/icinga2.conf.win32
Merge branch 'master' of git.icinga.org:icinga2
[icinga2] / icinga-app / config / icinga2.conf.win32
1 /**
2  * Icinga 2 configuration file
3  * - this is where you define settings for the Icinga application including
4  * which hosts/services to check.
5  *
6  * The docs/icinga2-config.txt file in the source tarball has a detailed
7  * description of what configuration options are available.
8  */
9
10 /**
11  * Global configuration settings
12  */
13 local object IcingaApplication "icinga" {
14   pid_path = "icinga2.pid",
15   log_path = "icinga2.log",
16   state_path = "icinga2.state",
17
18   macros = {
19     plugindir = "C:\Plugins"
20   }
21 }
22
23 /**
24  * The checker component takes care of executing service checks.
25  */
26 local object Component "checker" {
27
28 }
29
30 /**
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.
33  */
34 local object Component "delegation" {
35
36 }
37
38 /**
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
41  * hosts and services.
42  */
43 local object Component "compat" {
44   status_path = "status.dat",
45   objects_path = "objects.cache",
46 }
47
48 /**
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.
52  */
53 /*
54 local object Component "compatido" {
55   socket_address = "127.0.0.1",
56   socket_port = "5668",
57   instance_name = "i2-default",
58 }
59 */
60
61 /**
62  * This template defines some basic parameters for services that use
63  * external plugins for their checks.
64  */
65 abstract object Service "icinga-service" {
66   methods = {
67     check = "native::PluginCheck"
68   }
69 }
70
71 /**
72  * The service template for ping checks. In an Icinga 1.x environment
73  * this would be defined as a check command.
74  */
75 abstract object Service "ping" inherits "icinga-service" {
76
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$%",
79
80   macros += {
81     wrta = 100,
82     wpl = 80,
83     crta = 250,
84     cpl = 100
85   }
86 }
87
88 /**
89  * And finally we define some host that should be checked.
90  */
91 object Host "localhost" {
92   services = { "ping" },
93
94   macros = {
95     address = "127.0.0.1"
96   },
97
98   check_interval = 1m
99 }
100