[icinga-checkins] icinga.org: icinga2/master: ITL: Added template for plugin-based notifications.

git at icinga.org git at icinga.org
Sat Feb 9 18:40:23 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Feb  9 17:28:19 2013 +0100

ITL: Added template for plugin-based notifications.

---

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

diff --git a/itl/Makefile.am b/itl/Makefile.am
index 1f0215a..5d8d03e 100644
--- a/itl/Makefile.am
+++ b/itl/Makefile.am
@@ -2,6 +2,7 @@ icinga2itldir = ${pkgdatadir}/itl
 icinga2itl_DATA = \
 	itl.conf \
 	host.conf \
+	notification.conf \
 	service.conf \
 	service-common.conf \
 	standalone.conf \
diff --git a/itl/itl.conf b/itl/itl.conf
index 271a286..7ae68c7 100644
--- a/itl/itl.conf
+++ b/itl/itl.conf
@@ -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
index 0000000..f7dcc6d
--- /dev/null
+++ b/itl/notification.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.             *
+ ******************************************************************************/
+
+abstract object Notification "plugin-notification" {
+	methods = {
+		notify = "native::PluginNotification"
+	}
+}





More information about the icinga-checkins mailing list