]> git.pld-linux.org Git - packages/nagios-plugins.git/commitdiff
- rel 8; avoid cached answers when doing http checks auto/th/nagios-plugins-2.2.1-8
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 17 Jan 2019 23:46:10 +0000 (00:46 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 17 Jan 2019 23:46:10 +0000 (00:46 +0100)
nagios-plugins-check_http-nocache.patch [new file with mode: 0644]
nagios-plugins.spec

diff --git a/nagios-plugins-check_http-nocache.patch b/nagios-plugins-check_http-nocache.patch
new file mode 100644 (file)
index 0000000..afe7e47
--- /dev/null
@@ -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 {
index 8938f5f2b993e07ad399052da8a51db3aed6725a..3a3a9091fe2c126a1467cbba33a7b0912e03d0c7 100644 (file)
@@ -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
This page took 0.036677 seconds and 4 git commands to generate.