From a97519a42e02a9689194ebd6dd7efcb6f850cbda Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 27 Jun 2013 11:23:32 +0200 Subject: [PATCH] Move filter constants to itl/constants.conf. --- itl/Makefile.am | 1 + itl/constants.conf | 57 +++++++++++++++++++++++++++++++++++++ itl/itl.conf | 1 + lib/icinga/icinga-type.conf | 38 ------------------------- 4 files changed, 59 insertions(+), 38 deletions(-) create mode 100644 itl/constants.conf diff --git a/itl/Makefile.am b/itl/Makefile.am index b02b34bd6..2df5b68ef 100644 --- a/itl/Makefile.am +++ b/itl/Makefile.am @@ -3,6 +3,7 @@ icinga2itl_DATA = \ cluster.conf \ command.conf \ command-common.conf \ + constants.conf \ itl.conf \ host.conf \ timeperiod.conf \ diff --git a/itl/constants.conf b/itl/constants.conf new file mode 100644 index 000000000..5aba5be08 --- /dev/null +++ b/itl/constants.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<