[icinga-checkins] icinga.org: icinga2/master: ITL: add 'legacy-timeperiod' with update method

git at icinga.org git at icinga.org
Thu May 2 22:16:40 CEST 2013


Module: icinga2
Branch: master
Commit: 76cc0061b3fe6108609451dfa30ca2c979133214
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=76cc0061b3fe6108609451dfa30ca2c979133214

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu May  2 22:15:50 2013 +0200

ITL: add 'legacy-timeperiod' with update method

fixes #4038

---

 itl/Makefile.am     |    1 +
 itl/itl.conf        |    1 +
 itl/timeperiod.conf |   24 ++++++++++++++++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/itl/Makefile.am b/itl/Makefile.am
index 19a437e..c77a66b 100644
--- a/itl/Makefile.am
+++ b/itl/Makefile.am
@@ -4,6 +4,7 @@ icinga2itl_DATA = \
 	itl.conf \
 	host.conf \
 	notification.conf \
+	timeperiod.conf \
 	service.conf \
 	service-common.conf \
 	standalone.conf
diff --git a/itl/itl.conf b/itl/itl.conf
index b7915bc..60a0cc7 100644
--- a/itl/itl.conf
+++ b/itl/itl.conf
@@ -26,3 +26,4 @@ include "host.conf"
 include "service.conf"
 include "service-common.conf"
 include "notification.conf"
+include "timeperiod.conf"
diff --git a/itl/timeperiod.conf b/itl/timeperiod.conf
new file mode 100644
index 0000000..895fa34
--- /dev/null
+++ b/itl/timeperiod.conf
@@ -0,0 +1,24 @@
+/******************************************************************************
+ * 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.             *
+ ******************************************************************************/
+
+template Timeperiod "legacy-timeperiod" {
+	methods = {
+		update = "LegacyTimePeriod"
+	}
+}





More information about the icinga-checkins mailing list