[icinga-checkins] icinga.org: icinga-core/rbartels/html-cleanup: classic ui: add ' executed command' to extinfo.cgi linking to command expander

git at icinga.org git at icinga.org
Sun Apr 7 23:16:54 CEST 2013


Module: icinga-core
Branch: rbartels/html-cleanup
Commit: 49e790a9a4bb4aa88d3893e56cf04c4f2af4e73c
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=49e790a9a4bb4aa88d3893e56cf04c4f2af4e73c

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Sun Apr  7 00:58:45 2013 +0200

classic ui: add 'executed command' to extinfo.cgi linking to command expander

fixes #3901

---

 Changelog     |    1 +
 cgi/extinfo.c |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Changelog b/Changelog
index 266d6aa..2cafeaf 100644
--- a/Changelog
+++ b/Changelog
@@ -28,6 +28,7 @@ ENHANCEMENTS
 * classic ui: Added setting focus to main frame on first site load #3202 - RB
 * classic ui: Made sort buttons larger #3814 - RB
 * classic ui: Made classic ui work standalone #3869 - RB
+* classic ui: add 'executed command' to extinfo.cgi linking to command expander #3901 - MF
 
 * idoutils: use transactions for large object dumps, opt-in config option #3527 - GB
 * idoutils: add experimental socket queue proxy; opt-in via config option #3533 - GB
diff --git a/cgi/extinfo.c b/cgi/extinfo.c
index 44a50a2..3a51857 100644
--- a/cgi/extinfo.c
+++ b/cgi/extinfo.c
@@ -1590,6 +1590,9 @@ void show_host_info(void) {
 			print_modified_attributes(HTML_CONTENT, EXTINFO_CGI, temp_hoststatus->modified_attributes);
 			printf("</td></tr>\n");
 
+			printf("<TR><TD CLASS='dataVar'>Executed Command:</TD><TD CLASS='dataVal'><A HREF='%s?type=command&host=%s&expand=%s'>Command Expander</A></TD></TR>\n", CONFIG_CGI, host_name, url_encode(temp_host->host_check_command));
+
+
 			printf("</TABLE>\n");
 			printf("</TD></TR>\n");
 			printf("</TABLE>\n");
@@ -2024,6 +2027,8 @@ void show_service_info(void) {
 			print_modified_attributes(HTML_CONTENT, EXTINFO_CGI, temp_svcstatus->modified_attributes);
 			printf("</td></tr>\n");
 
+			printf("<TR><TD CLASS='dataVar'>Executed Command:</TD><TD CLASS='dataVal'><A HREF='%s?type=command&host=%s&service=%s&expand=%s'>Command Expander</A></TD></TR>\n", CONFIG_CGI, host_name, service_desc, url_encode(temp_service->service_check_command));
+
 			printf("</TABLE>\n");
 			printf("</TD></TR>\n");
 			printf("</TABLE>\n");





More information about the icinga-checkins mailing list