[icinga-checkins] icinga.org: icinga-core/rbartels/cgi: add a test case for refs #3295

git at icinga.org git at icinga.org
Tue Nov 20 21:44:16 CET 2012


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

Author: Michael Friedrich <michael.friedrich at gmail.com>
Date:   Sat Nov 10 15:12:55 2012 +0100

add a test case for refs #3295

---

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

diff --git a/tests/etc/3295.cfg b/tests/etc/3295.cfg
new file mode 100644
index 0000000..38eea87
--- /dev/null
+++ b/tests/etc/3295.cfg
@@ -0,0 +1,98 @@
+#############################################################################################
+# ICINGA TEST CONFIG BY ISSUES
+# (c) 2009-2012 Icinga Development Team and Community Contributors
+#
+# #3295 (cgi)
+# Double-listed host dependencies in host extinfo.cgi
+#############################################################################################
+
+define command {
+        command_name    		3295check_dummy
+        command_line    		/usr/lib/nagios/plugins/check_dummy $ARG1$
+}
+
+define host{
+        name                            3295linux-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                             3295linux-server            ; Name of host template to use
+        host_name                       3295localhost1
+        alias                           3295localhost1
+        address                         127.0.0.1
+        address6                        ::1
+}
+
+
+define host{
+        use                             3295linux-server            ; Name of host template to use
+        host_name                       3295localhost2
+        alias                           3295localhost2
+        address                         127.0.0.1
+        address6                        ::1
+}
+
+define  service {
+        name                            3295generic-check
+        is_volatile                     0
+        check_command                   3295check_dummy!2 "foobaer"
+        max_check_attempts              2
+        normal_check_interval           2
+        retry_check_interval            1
+        active_checks_enabled           1
+        passive_checks_enabled          1
+        check_period                    24x7
+        parallelize_check               1
+        obsess_over_service             1
+        check_freshness                 0
+        event_handler_enabled           1
+        flap_detection_enabled          1
+        process_perf_data               1
+        retain_status_information       1
+        retain_nonstatus_information    1
+        contact_groups                  abc
+        notification_interval           120
+        notification_period             24x7
+        notification_options            w,u,c,r,f
+        notifications_enabled           1
+        register                        0
+}
+
+
+define  service {
+        use                             3295generic-check
+        host_name                       3295localhost1
+        contact_groups                 	testconfig-group-admin
+	action_url			http://foobar.com
+	notes_url			testestetest
+        service_description             dep1
+}
+
+define  service {
+        use                             3295generic-check
+        host_name                       3295localhost2
+        contact_groups                	testconfig-group-admin
+        service_description             dep2
+}
+
+define hostdependency {
+        dependent_host_name		3295localhost1
+        host_name			3295localhost2
+        inherits_parent                 1
+        notification_failure_criteria   d,u
+        execution_failure_criteria      d,u
+        dependency_period               24x7
+}
+
+





More information about the icinga-checkins mailing list