mirror of https://github.com/Icinga/icinga2.git
Move filter constants to itl/constants.conf.
This commit is contained in:
parent
7c0a71bc29
commit
a97519a42e
|
@ -3,6 +3,7 @@ icinga2itl_DATA = \
|
||||||
cluster.conf \
|
cluster.conf \
|
||||||
command.conf \
|
command.conf \
|
||||||
command-common.conf \
|
command-common.conf \
|
||||||
|
constants.conf \
|
||||||
itl.conf \
|
itl.conf \
|
||||||
host.conf \
|
host.conf \
|
||||||
timeperiod.conf \
|
timeperiod.conf \
|
||||||
|
|
|
@ -0,0 +1,57 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Icinga 2 *
|
||||||
|
* Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) *
|
||||||
|
* *
|
||||||
|
* This program is free software; you can redistribute it and/or *
|
||||||
|
* modify it under the terms of the GNU General Public License *
|
||||||
|
* as published by the Free Software Foundation; either version 2 *
|
||||||
|
* of the License, or (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* This program is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with this program; if not, write to the Free Software Foundation *
|
||||||
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
set StateOK = (0)
|
||||||
|
set StateWarning = (1)
|
||||||
|
set StateCritical = (2)
|
||||||
|
set StateUnknown = (3)
|
||||||
|
set StateUncheckable = (4)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Converting states to their filter values: 1<<state
|
||||||
|
*/
|
||||||
|
set StateFilterOK = (1<<StateOK)
|
||||||
|
set StateFilterWarning = (1<<StateWarning)
|
||||||
|
set StateFilterCritical = (1<<StateCritical)
|
||||||
|
set StateFilterUnknown = (1<<StateUnknown)
|
||||||
|
set StateFilterUncheckable = (1<<StateUncheckable)
|
||||||
|
|
||||||
|
set NotificationDowntimeStart = (0)
|
||||||
|
set NotificationDowntimeEnd = (1)
|
||||||
|
set NotificationDowntimeRemoved = (2)
|
||||||
|
set NotificationCustom = (3)
|
||||||
|
set NotificationAcknowledgement = (4)
|
||||||
|
set NotificationProblem = (5)
|
||||||
|
set NotificationRecovery = (6)
|
||||||
|
set NotificationFlappingStart = (7)
|
||||||
|
set NotificationFlappingEnd = (8)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Converting notification types to their filter values: 1<<type
|
||||||
|
*/
|
||||||
|
set NotificationFilterDowntimeStart = (1<<NotificationDowntimeStart)
|
||||||
|
set NotificationFilterDowntimeEnd = (1<<NotificationDowntimeEnd)
|
||||||
|
set NotificationFilterDowntimeRemoved = (1<<NotificationDowntimeRemoved)
|
||||||
|
set NotificationFilterCustom = (1<<NotificationCustom)
|
||||||
|
set NotificationFilterAcknowledgement = (1<<NotificationAcknowledgement)
|
||||||
|
set NotificationFilterProblem = (1<<NotificationProblem)
|
||||||
|
set NotificationFilterRecovery = (1<<NotificationRecovery)
|
||||||
|
set NotificationFilterFlappingStart = (1<<NotificationFlappingStart)
|
||||||
|
set NotificationFilterFlappingEnd = (1<<NotificationFlappingEnd)
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* configuration templates.
|
* configuration templates.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
include "constants.conf"
|
||||||
include "host.conf"
|
include "host.conf"
|
||||||
include "command.conf"
|
include "command.conf"
|
||||||
include "command-common.conf"
|
include "command-common.conf"
|
||||||
|
|
|
@ -252,44 +252,6 @@ type ServiceGroup {
|
||||||
%attribute string "action_url"
|
%attribute string "action_url"
|
||||||
}
|
}
|
||||||
|
|
||||||
set StateOK = (0)
|
|
||||||
set StateWarning = (1)
|
|
||||||
set StateCritical = (2)
|
|
||||||
set StateUnknown = (3)
|
|
||||||
set StateUncheckable = (4)
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Converting states to their filter values: 1<<state
|
|
||||||
*/
|
|
||||||
set StateFilterOK = (1<<StateOK)
|
|
||||||
set StateFilterWarning = (1<<StateWarning)
|
|
||||||
set StateFilterCritical = (1<<StateCritical)
|
|
||||||
set StateFilterUnknown = (1<<StateUnknown)
|
|
||||||
set StateFilterUncheckable = (1<<StateUncheckable)
|
|
||||||
|
|
||||||
set NotificationDowntimeStart = (0)
|
|
||||||
set NotificationDowntimeEnd = (1)
|
|
||||||
set NotificationDowntimeRemoved = (2)
|
|
||||||
set NotificationCustom = (3)
|
|
||||||
set NotificationAcknowledgement = (4)
|
|
||||||
set NotificationProblem = (5)
|
|
||||||
set NotificationRecovery = (6)
|
|
||||||
set NotificationFlappingStart = (7)
|
|
||||||
set NotificationFlappingEnd = (8)
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Converting notification types to their filter values: 1<<type
|
|
||||||
*/
|
|
||||||
set NotificationFilterDowntimeStart = (1<<NotificationDowntimeStart)
|
|
||||||
set NotificationFilterDowntimeEnd = (1<<NotificationDowntimeEnd)
|
|
||||||
set NotificationFilterDowntimeRemoved = (1<<NotificationDowntimeRemoved)
|
|
||||||
set NotificationFilterCustom = (1<<NotificationCustom)
|
|
||||||
set NotificationFilterAcknowledgement = (1<<NotificationAcknowledgement)
|
|
||||||
set NotificationFilterProblem = (1<<NotificationProblem)
|
|
||||||
set NotificationFilterRecovery = (1<<NotificationRecovery)
|
|
||||||
set NotificationFilterFlappingStart = (1<<NotificationFlappingStart)
|
|
||||||
set NotificationFilterFlappingEnd = (1<<NotificationFlappingEnd)
|
|
||||||
|
|
||||||
type Notification {
|
type Notification {
|
||||||
%require "host_name",
|
%require "host_name",
|
||||||
%attribute string "host_name",
|
%attribute string "host_name",
|
||||||
|
|
Loading…
Reference in New Issue