]> git.pld-linux.org Git - packages/nagios.git/commitdiff
- rel 2; display long output on common service status page, too auto/th/nagios-4.4.6-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 3 May 2021 15:08:17 +0000 (17:08 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 3 May 2021 15:08:17 +0000 (17:08 +0200)
long-output.patch [new file with mode: 0644]
nagios.spec

diff --git a/long-output.patch b/long-output.patch
new file mode 100644 (file)
index 0000000..4ef2af0
--- /dev/null
@@ -0,0 +1,11 @@
+--- nagios-4.4.6/cgi/status.c~ 2021-05-03 16:43:18.000000000 +0200
++++ nagios-4.4.6/cgi/status.c  2021-05-03 17:01:33.489957800 +0200
+@@ -2009,6 +2009,8 @@ void show_service_detail(void) {
+                       printf("<td class='status%s'>%d/%d</td>\n", status_bg_class, temp_status->current_attempt, temp_status->max_attempts);
+                       printf("<td class='status%s' valign='center'>", status_bg_class);
+                       printf("%s&nbsp;", (temp_status->plugin_output == NULL) ? "" : html_encode(temp_status->plugin_output, TRUE));
++                      printf("<BR>%s&nbsp;", (temp_status->long_plugin_output == NULL) ? "" : html_encode(temp_status->long_plugin_output, TRUE));
++
+                       /*
+                       if(enable_splunk_integration==TRUE)
+                               display_splunk_service_url(temp_service);
index 7626426e0c242d6e226a65875bb8a0c390c93377..4e448ff1ddb2681c46c8ea5a57db0f2041b0e9cb 100644 (file)
@@ -13,7 +13,7 @@ Summary(pl.UTF-8):    Program do monitorowania serwerów/usług/sieci
 Summary(pt_BR.UTF-8):  Programa para monitoração de máquinas e serviços
 Name:          nagios
 Version:       4.4.6
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Networking
 # https://www.nagios.org/downloads/nagios-core/thanks/?product_download=nagioscore-source
@@ -38,7 +38,7 @@ Source9:      %{name}wall.php
 Patch0:                %{name}-resources.patch
 Patch1:                %{name}-iconv-in-libc.patch
 Patch2:                %{name}-webapps.patch
-
+Patch3:                long-output.patch
 Patch4:                %{name}-cmd-typo.patch
 Patch5:                config.patch
 Patch6:                %{name}-googlemap.patch
@@ -250,7 +250,7 @@ mv %{name}-%{version}/* .
 %patch0 -p0
 %patch1 -p1
 %patch2 -p1
-
+%patch3 -p1
 #fixed
 #%patch4 -p1
 %patch5 -p1
This page took 0.032226 seconds and 4 git commands to generate.