]> granicus.if.org Git - icinga2/commitdiff
ITL: add 'legacy-timeperiod' with update method
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 2 May 2013 20:15:50 +0000 (22:15 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 2 May 2013 20:15:50 +0000 (22:15 +0200)
fixes #4038

itl/Makefile.am
itl/itl.conf
itl/timeperiod.conf [new file with mode: 0644]

index 19a437e6dddc4766b3edced3570eeaaabeb43302..c77a66b1d26b0daf786f4cc77921c3fa62ccf255 100644 (file)
@@ -4,6 +4,7 @@ icinga2itl_DATA = \
        itl.conf \
        host.conf \
        notification.conf \
+       timeperiod.conf \
        service.conf \
        service-common.conf \
        standalone.conf
index b7915bcb7ee5ffe89bc45477374597a809bd1315..60a0cc7086c63cfbacf6d85b9adbff13f8abdd26 100644 (file)
@@ -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 (file)
index 0000000..895fa34
--- /dev/null
@@ -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"
+       }
+}