2014-02-12 11:49:38 +01:00
|
|
|
## <a id="global-constants"></a> Global Constants
|
2013-09-27 07:19:13 +02:00
|
|
|
|
2014-02-12 11:49:38 +01:00
|
|
|
Icinga 2 provides a number of special global constants. Some of them can be overriden using the `--define` command line parameter:
|
2013-09-27 07:19:13 +02:00
|
|
|
|
2013-10-08 12:22:16 +02:00
|
|
|
Variable |Description
|
|
|
|
--------------------------|-------------------
|
2014-03-30 11:52:39 +02:00
|
|
|
IcingaPrefixDir |**Read-only.** Contains the installation prefix that was specified with cmake -DCMAKE_INSTALL_PREFIX. Defaults to "/usr/local".
|
2013-11-27 09:23:30 +01:00
|
|
|
IcingaSysconfDir |**Read-only.** Contains the path of the sysconf directory. Defaults to IcingaPrefixDir + "/etc".
|
2013-10-08 12:22:16 +02:00
|
|
|
IcingaLocalStateDir |**Read-only.** Contains the path of the local state directory. Defaults to IcingaPrefixDir + "/var".
|
|
|
|
IcingaPkgDataDir |**Read-only.** Contains the path of the package data directory. Defaults to IcingaPrefixDir + "/share/icinga2".
|
|
|
|
IcingaStatePath |**Read-write.** Contains the path of the Icinga 2 state file. Defaults to IcingaLocalStateDir + "/lib/icinga2/icinga2.state".
|
|
|
|
IcingaPidPath |**Read-write.** Contains the path of the Icinga 2 PID file. Defaults to IcingaLocalStateDir + "/run/icinga2/icinga2.pid".
|
|
|
|
IcingaMacros |**Read-write.** Contains a dictionary with global macros. Not set by default.
|
2014-02-06 15:27:50 +01:00
|
|
|
IcingaNodeName |**Read-write.** Contains the cluster node name. Set to the local hostname by default.
|
2013-11-04 15:28:21 +01:00
|
|
|
ApplicationType |**Read-write.** Contains the name of the Application type. Defaults to "icinga/IcingaApplication".
|
2013-10-08 12:22:16 +02:00
|
|
|
IcingaEnableNotifications |**Read-write.** Whether notifications are globally enabled. Defaults to true.
|
|
|
|
IcingaEnableEventHandlers |**Read-write.** Whether event handlers are globally enabled. Defaults to true.
|
|
|
|
IcingaEnableFlapping |**Read-write.** Whether flap detection is globally enabled. Defaults to true.
|
|
|
|
IcingaEnableChecks |**Read-write.** Whether active checks are globally enabled. Defaults to true.
|
|
|
|
IcingaEnablePerfdata |**Read-write.** Whether performance data processing is globally enabled. Defaults to true.
|
2014-01-31 08:44:00 +01:00
|
|
|
IcingaUseVfork |**Read-write.** Whether to use vfork(). Only available on *NIX. Defaults to true.
|