[icinga-checkins] icinga.org: icinga-core/dev/cgis: add a testcase for #2925

git at icinga.org git at icinga.org
Sat Aug 11 20:39:52 CEST 2012


Module: icinga-core
Branch: dev/cgis
Commit: c74a92e30487641441253ef3b47a0ebe4ff8ee3c
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=c74a92e30487641441253ef3b47a0ebe4ff8ee3c

Author: Michael Friedrich <michael.friedrich at gmail.com>
Date:   Sat Aug 11 20:36:02 2012 +0200

add a testcase for #2925

status.cgi?hostgroup=2925linux-servers&style=hostservicedetail
with the given action_url on hostgroups won't override the hosts'
action_url - to be discussed on the issue itsself.

refs #2925

---

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

diff --git a/tests/etc/2925.cfg b/tests/etc/2925.cfg
new file mode 100644
index 0000000..a3a291a
--- /dev/null
+++ b/tests/etc/2925.cfg
@@ -0,0 +1,50 @@
+#############################################################################################
+# ICINGA TEST CONFIG BY ISSUES
+# (c) 2009-2012 Icinga Development Team and Community Contributors
+#
+# #2925 (cgi issue)
+# {action,notes}_url defined as hostgroup attribute do not show up in ui views
+#############################################################################################
+
+define hostgroup {
+        hostgroup_name  		2925linux-servers
+        alias   			2925 Linux Servers
+        members 			2925localhost
+        action_url      		i am the hostgroups action_url, will override
+}
+
+define host {
+        host_name       		2925localhost
+        alias   			2925localhost
+        address 			127.0.0.1
+        check_period    		24x7
+        check_command   		testconfig-check-host-alive
+        contact_groups  		testconfig-group-admin
+        notification_period     	workhours
+        initial_state   		o
+        check_interval  		5.000000
+        retry_interval  		1.000000
+        max_check_attempts      	10
+        active_checks_enabled   	1
+        passive_checks_enabled  	1
+        obsess_over_host        	1
+        event_handler_enabled   	1
+        low_flap_threshold      	0.000000
+        high_flap_threshold     	0.000000
+        flap_detection_enabled  	1
+        flap_detection_options  	o,d,u
+        freshness_threshold     	0
+        check_freshness 		0
+        notification_options    	d,u,r
+        notifications_enabled   	1
+        notification_interval   	120.000000
+        first_notification_delay        0.000000
+        stalking_options        	n
+        process_perf_data       	1
+        failure_prediction_enabled      1
+        notes_url       		'/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' '/ingraph/?host=$HOSTNAME$'
+	action_url			i am the hosts action_url
+        retain_status_information       1
+        retain_nonstatus_information    1
+}
+





More information about the icinga-checkins mailing list