icinga2/itl/constants.conf

85 lines
3.4 KiB
Plaintext
Raw Normal View History

/******************************************************************************
* Icinga 2 *
2013-09-25 07:43:57 +02:00
* Copyright (C) 2012-2013 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)
/*
* 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 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)
2013-09-17 13:18:26 +02:00
/*
* Domain privilege flags
*/
set DomainPrivRead = (1<<0)
set DomainPrivCheckResult = (1<<1)
set DomainPrivCommand = (1<<2)
set DomainPrivReadOnly = (DomainPrivRead)
set DomainPrivReadWrite = (DomainPrivRead | DomainPrivCheckResult | DomainPrivCommand)
/*
* IDO filter categories
*/
set DbCatConfig = (1 << 0)
set DbCatState = (1 << 1)
set DbCatAcknowledgement = (1 << 2)
set DbCatComment = (1 << 3)
set DbCatDowntime = (1 << 4)
set DbCatEventHandler = (1 << 5)
set DbCatExternalCommand = (1 << 6)
set DbCatFlapping = (1 << 7)
set DbCatCheck = (1 << 8)
set DbCatLog = (1 << 9)
set DbCatNotification = (1 << 10)
set DbCatProgramStatus = (1 << 11)
set DbCatRetention = (1 << 12)
set DbCatStateHistory = (1 << 13)
set DbCatEverything = (~0)