[icinga-checkins] icinga.org: icinga-core/rbartels/next: tests: add config for #3715 ( icinga web restrictions)

git at icinga.org git at icinga.org
Tue Apr 30 10:39:43 CEST 2013


Module: icinga-core
Branch: rbartels/next
Commit: 69893673906567988829c71813b787e14f10d016
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=69893673906567988829c71813b787e14f10d016

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Sun Apr 28 20:42:20 2013 +0200

tests: add config for #3715 (icinga web restrictions)

---

 tests/etc/3715.cfg |  200 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 200 insertions(+), 0 deletions(-)

diff --git a/tests/etc/3715.cfg b/tests/etc/3715.cfg
new file mode 100644
index 0000000..2570f69
--- /dev/null
+++ b/tests/etc/3715.cfg
@@ -0,0 +1,200 @@
+#############################################################################################
+# ICINGA TEST CONFIG BY ISSUES
+# (c) 2009-2013 Icinga Development Team
+#
+# #3715
+# Icinga Web: Restriction tests 
+#############################################################################################
+
+# dummy command
+define command {
+        command_name                    3715check_dummy_custom
+        command_line                    $USER1$/check_dummy $$((RANDOM %=4))
+}
+
+
+# host template
+define host{
+	name				3715linux-server
+	use				generic-host
+	check_period			24x7
+	check_interval			5
+	retry_interval			1
+	max_check_attempts		10
+        check_command           	3715check_dummy_custom
+	contact_groups			3715cg_all
+	register			0
+}
+
+# hosts
+define host{
+        use                     	3715linux-server
+        host_name               	3715localhost01
+        address                 	127.0.0.1
+	_CV_H_3715_2			3715test
+}
+define host{
+        use                     	3715linux-server
+        host_name               	3715localhost02
+        address                 	127.0.0.2
+	_CV_H_3715_1			3715test
+}
+define host{
+        use                     	3715linux-server
+        host_name               	3715localhost03
+        address                 	127.0.0.3
+	_CV_H_3715_2			3715test
+}
+define host{
+        use                     	3715linux-server
+        host_name               	3715localhost04
+        address                 	127.0.0.4
+	_CV_H_3715_1			3715test
+}
+define host{
+        use                     	3715linux-server
+        host_name               	3715localhost05
+        address                 	127.0.0.5
+	_CV_H_3715_2			3715test
+}
+
+# HGs
+define hostgroup {
+	hostgroup_name			3715_all
+	members				3715localhost01,3715localhost02,3715localhost03,3715localhost04,3715localhost05
+}
+define hostgroup {
+	hostgroup_name			3715_124
+	members				3715localhost01,3715localhost02,3715localhost04
+}
+define hostgroup {
+	hostgroup_name			3715_35
+	members				3715localhost03,3715localhost05
+}
+
+
+
+
+
+# contacts
+
+define contact{
+        name                            3715testconfig-generic-contact         ; The name of this contact template
+        service_notification_period     24x7                    ; service notifications can be sent anytime
+        host_notification_period        24x7                    ; host notifications can be sent anytime
+        service_notification_options    w,u,c,r,f,s             ; send notifications for all service states, flapping events, and scheduled downtime events
+        host_notification_options       d,u,r,f,s               ; send notifications for all host states, flapping events, and scheduled downtime events
+        service_notification_commands   true                    ; send service notifications via email
+        host_notification_commands      true                    ; send host notifications via email
+        register                        0                       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
+}
+
+
+define contact{
+        contact_name                    3715testconfig-user01
+        use                             3715testconfig-generic-contact
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+}
+define contact{
+        contact_name                    3715testconfig-user02
+        use                             3715testconfig-generic-contact
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+}
+define contact{
+        contact_name                    3715testconfig-user03
+        use                             3715testconfig-generic-contact
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+}
+
+# CGs
+define contactgroup{
+        contactgroup_name               3715cg_all
+        members                         3715testconfig-user01,3715testconfig-user02,3715testconfig-user03
+}
+
+define contactgroup{
+        contactgroup_name               3715cg_23
+        members                         3715testconfig-user02,3715testconfig-user03
+}
+
+
+# service template
+define service {
+	name                           	3715default-servicecheck
+	register                       	0
+	service_description             ServiceCheck Template
+	check_command                   3715check_dummy_custom
+	max_check_attempts              3
+	check_interval                  7
+	retry_interval                  3
+	active_checks_enabled           1
+	check_period                    24x7
+	obsess_over_service             0
+	check_freshness                 1
+	event_handler_enabled           0
+	notification_interval           10
+	contact_groups                  3715cg_all
+}
+
+define service {
+	use                             3715default-servicecheck
+	name                            3715dummy
+	host_name              		3715localhost01,3715localhost02,3715localhost03,3715localhost04,3715localhost05
+	register                        0
+}
+
+# CVs
+define service {
+	use                    		3715dummy
+	service_description    		3715dummy01
+	_CV_S_3715_1			3715test
+}
+define service {
+	use                    		3715dummy
+	service_description    		3715dummy02
+	_CV_S_3715_1			3715test
+}
+define service {
+	use                    		3715dummy
+	service_description    		3715dummy03
+	_CV_S_3715_1			3715test
+}
+define service {
+	use                    		3715dummy
+	service_description    		3715dummy04
+	_CV_S_3715_2			3715test
+}
+define service {
+	use                    		3715dummy
+	service_description    		3715dummy05
+	_CV_s_3715_2			3715test
+}
+define service {
+	use                    		3715dummy
+	service_description    		3715dummy06
+	_CV_S_3715_2			3715test
+}
+define service {
+	use                    		3715dummy
+	service_description    		3715dummy07
+	_CV_S_3715_1			3715test
+}
+
+# SGs
+
+define servicegroup {
+        servicegroup_name               3715sg_many
+        members                         3715localhost01,3715dummy01,3715localhost02,3715dummy02,3715localhost02,3715dummy03,3715localhost05,3715dummy04,3715localhost02,3715dummy05,3715localhost01,3715dummy06
+}
+
+define servicegroup {
+        servicegroup_name               3715sg_localhost02
+        members                         3715localhost02,3715dummy01,3715localhost02,3715dummy02,3715localhost02,3715dummy03,3715localhost02,3715dummy04,3715localhost02,3715dummy05,3715localhost02,3715dummy06,3715localhost02,3715dummy07
+}
+
+
+
+
+
+
+





More information about the icinga-checkins mailing list