[icinga-checkins] icinga.org: icinga-core/next: add a test case for #3509

git at icinga.org git at icinga.org
Sun Mar 10 22:42:25 CET 2013


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Mon Mar  4 20:22:32 2013 +0100

add a test case for #3509

refs #3509

---

 docbook            |    2 +-
 tests/etc/3509.cfg |   79 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+), 1 deletions(-)

diff --git a/docbook b/docbook
index b360dea..ef533e2 160000
--- a/docbook
+++ b/docbook
@@ -1 +1 @@
-Subproject commit b360dea38955735c8682a4abf0285f54d2cc8d32
+Subproject commit ef533e227455f86f11417a5412bb245d4c92741f
diff --git a/tests/etc/3509.cfg b/tests/etc/3509.cfg
new file mode 100644
index 0000000..52a24f2
--- /dev/null
+++ b/tests/etc/3509.cfg
@@ -0,0 +1,79 @@
+#############################################################################################
+# ICINGA TEST CONFIG BY ISSUES
+# (c) 2009-2012 Icinga Development Team
+#
+# #3509
+# 
+#############################################################################################
+
+
+define host{
+	name				3509linux-server
+	use				generic-host
+	check_period			24x7
+	check_interval			5
+	retry_interval			1
+	max_check_attempts		10
+        check_command           	testconfig-check-host-alive
+	notification_period		workhours
+	notification_interval		120
+	notification_options		d,u,r
+	contact_groups			testconfig-group-admin
+	register			0
+}
+
+define host{
+        use                     	3509linux-server
+        host_name               	3509localhost
+        display_name            	3509display_localhost
+        alias                   	3509localhost
+        address                 	127.0.0.1
+}
+
+define contact{
+        contact_name                    3509icingaadmin 
+        use                             testconfig-generic-contact
+        alias                           Icinga Test Admin
+
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+        }
+
+
+define contactgroup{
+        contactgroup_name       	3509admins
+        alias                   	Icinga Administrators
+        members                 	3509icingaadmin
+        contactgroup_members    	3509admins
+}
+
+
+define command{
+        command_name                    3509check_proc
+        command_line                    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -C ido2db
+}
+
+
+### servers/default.server.cfg
+define service {
+	name                           	3509default-servicecheck
+	register                       	0
+	service_description             ServiceCheck Template: default
+	max_check_attempts              3
+	check_interval                  7
+	retry_interval                  3
+	active_checks_enabled           0
+	check_period                    24x7
+	obsess_over_service             0
+	check_freshness                 1
+	event_handler_enabled           0
+	notification_interval           10
+	contact_groups                  3509admins 
+}
+
+### servers/defaults.cfg
+define service {
+	use                             3509default-servicecheck
+	name                            3509service 
+	service_description             3509service desc
+	check_command                   3509check_proc!$HOSTNAME$!httpd!1!200
+}





More information about the icinga-checkins mailing list