[icinga-checkins] icinga.org: icinga2/master: Add missing validator for Host -> Service -> notifications.

git at icinga.org git at icinga.org
Fri Mar 22 14:42:27 CET 2013


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

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Mar 22 14:41:11 2013 +0100

Add missing validator for Host -> Service -> notifications.

---

 lib/icinga/icinga-type.conf |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/lib/icinga/icinga-type.conf b/lib/icinga/icinga-type.conf
index 72937e2..7a534cf 100644
--- a/lib/icinga/icinga-type.conf
+++ b/lib/icinga/icinga-type.conf
@@ -77,6 +77,27 @@ type Host {
 					%attribute string "service"
 				}
 			},
+
+			%attribute dictionary "notifications" {
+				%attribute dictionary "*" {
+					%attribute array "templates" {
+						%attribute string "*"
+					},
+
+					%attribute dictionary "macros" {
+						%attribute string "*"
+					},
+
+					%attribute array "export_macros",
+
+					%attribute array "users" {
+						%attribute string "*"
+					},
+					%attribute array "groups" {
+						%attribute string "*"
+					}
+				}
+			},
 		}
 	},
 





More information about the icinga-checkins mailing list