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

git at icinga.org git at icinga.org
Sun Apr 7 01:24:52 CEST 2013


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

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 556d49e..1e93ffb 100644
--- a/Changelog
+++ b/Changelog
@@ -37,6 +37,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 5ffdd8c..7ef0a2a 100644
--- a/cgi/extinfo.c
+++ b/cgi/extinfo.c
@@ -1593,6 +1593,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");
@@ -2027,6 +2030,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