[packages/nagios-plugins] - rel 8; avoid cached answers when doing http checks
arekm
arekm at pld-linux.org
Fri Jan 18 00:46:18 CET 2019
commit aa57c1c944be88c13cc0541fa5bcfc749dfab171
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Jan 18 00:46:10 2019 +0100
- rel 8; avoid cached answers when doing http checks
nagios-plugins-check_http-nocache.patch | 23 +++++++++++++++++++++++
nagios-plugins.spec | 4 +++-
2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/nagios-plugins.spec b/nagios-plugins.spec
index 8938f5f..3a3a909 100644
--- a/nagios-plugins.spec
+++ b/nagios-plugins.spec
@@ -17,7 +17,7 @@ Summary: Host/service/network monitoring program plugins for Nagios
Summary(pl.UTF-8): Wtyczki do monitorowania hostów/usług/sieci dla Nagiosa
Name: nagios-plugins
Version: 2.2.1
-Release: 7
+Release: 8
License: GPL v3
Group: Networking
Source0: http://www.nagios-plugins.org/download/%{name}-%{version}.tar.gz
@@ -38,6 +38,7 @@ Patch8: %{name}-check_disk_smb-zero-cap.patch
Patch9: %{name}-paths.patch
Patch10: %{name}-ping.patch
Patch11: dns-config.patch
+Patch12: %{name}-check_http-nocache.patch
URL: http://www.nagiosplugins.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -534,6 +535,7 @@ mv nagios-plugins-config-*/* .
%patch9 -p1
%patch10 -p1
%patch11 -p1
+%patch12 -p1
# remove libtool m4 macro copies, breaks when system libtool is older
%{__rm} gl/m4/libtool.m4 gl/m4/lt*.m4
diff --git a/nagios-plugins-check_http-nocache.patch b/nagios-plugins-check_http-nocache.patch
new file mode 100644
index 0000000..afe7e47
--- /dev/null
+++ b/nagios-plugins-check_http-nocache.patch
@@ -0,0 +1,23 @@
+--- nagios-plugins-2.2.1/commands/check_http.cfg~ 2017-11-20 18:25:36.000000000 +0100
++++ nagios-plugins-2.2.1/commands/check_http.cfg 2019-01-18 00:43:19.843781867 +0100
+@@ -1,17 +1,17 @@
+ # 'check_http' command definition
+ define command {
+ command_name check_http
+- command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -f warning $ARG1$
++ command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -f warning -k 'Cache-Control: no-cache' $ARG1$
+ }
+
+ define command {
+ command_name check_https
+- command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -f warning -S --sni $ARG1$
++ command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -f warning -S --sni -k 'Cache-Control: no-cache' $ARG1$
+ }
+
+ define command {
+ command_name check_https.crt
+- command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -S -C 14 --sni $ARG1$
++ command_line /usr/lib/nagios/plugins/check_http -I $HOSTADDRESS$ -H $HOSTNAME$ -S -C 14 --sni -k 'Cache-Control: no-cache' $ARG1$
+ }
+
+ define service {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugins.git/commitdiff/aa57c1c944be88c13cc0541fa5bcfc749dfab171
More information about the pld-cvs-commit
mailing list