]> granicus.if.org Git - icinga2/commitdiff
ITL: Added template for plugin-based notifications.
authorGunnar Beutner <gunnar.beutner@netways.de>
Sat, 9 Feb 2013 16:28:19 +0000 (17:28 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sat, 9 Feb 2013 16:47:17 +0000 (17:47 +0100)
itl/Makefile.am
itl/itl.conf
itl/notification.conf [new file with mode: 0644]

index 1f0215aca20798269557f9fbbea1b71543d5d090..5d8d03eb3c523b91df9cf83ce91531f846c4db58 100644 (file)
@@ -2,6 +2,7 @@ icinga2itldir = ${pkgdatadir}/itl
 icinga2itl_DATA = \
        itl.conf \
        host.conf \
+       notification.conf \
        service.conf \
        service-common.conf \
        standalone.conf \
index 271a286fbca8023189b6cc731dde8b17be835e78..7ae68c7d153e9e0b02644fd67b6d47c3419444df 100644 (file)
@@ -27,3 +27,4 @@
 #include "host.conf"
 #include "service.conf"
 #include "service-common.conf"
+#include "notification.conf"
diff --git a/itl/notification.conf b/itl/notification.conf
new file mode 100644 (file)
index 0000000..f7dcc6d
--- /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.             *
+ ******************************************************************************/
+
+abstract object Notification "plugin-notification" {
+       methods = {
+               notify = "native::PluginNotification"
+       }
+}