- Update to 2.3.1:
Enhancements * check_curl: Add an option to verify the peer certificate & host using the system CA's Fixes * check_icmp: fix simple typo, conspicuosly -> conspicuously * check_curl: fixed help, usage and errors for TLS 1.3 * check_curl: fixed a potential buffer overflow in url buffer * check_dns: split multiple IP addresses passed in one -a argument * check_curl: added string_statuscode function for printing HTTP/1.1 and HTTP/2 correctly * check_curl: fix crash if http header contains leading spaces * check_curl: display a specific human-readable error message where possible * check_pgsql: Using snprintf which honors the buffers size and guarantees null termination. * check_snmp: put the "c" (to mark a counter) after the perfdata value * check_http: Increase regexp limit * check_http: make -C obvious * check_curl: Increase regexp limit (to 1024 as in check_http) * check_curl: make -C obvious (from check_http) - refreshed patches: + monitoring-plugins-1.4.6-no_chown.patch + monitoring-plugins-2.1.1-check_logfile.patch + monitoring-plugins-2.2-mariadb_102_build_fix.patch + monitoring-plugins-2.3-check_ntp_perf_absolute.patch + monitoring-plugins-too_few_arguments_for_check_disk.patch + monitoring-plugins-wrong_return_in_check_swap.patch + monitoring-plugins.check_hpjd.c-64bit-portability-issue.patch + monitoring-plugins.check_snmp.arrayaddress.patch - add sha1 checksum file as source OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=85
This commit is contained in:
parent
9cd46364f8
commit
4db29d7900
@ -1,7 +1,7 @@
|
||||
Index: monitoring-plugins-2.2/plugins-root/Makefile.am
|
||||
Index: monitoring-plugins-2.3.1/plugins-root/Makefile.am
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.2.orig/plugins-root/Makefile.am
|
||||
+++ monitoring-plugins-2.2/plugins-root/Makefile.am
|
||||
--- monitoring-plugins-2.3.1.orig/plugins-root/Makefile.am
|
||||
+++ monitoring-plugins-2.3.1/plugins-root/Makefile.am
|
||||
@@ -47,7 +47,6 @@ INSTALL_SUID = \
|
||||
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \
|
||||
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \
|
||||
@ -16,10 +16,10 @@ Index: monitoring-plugins-2.2/plugins-root/Makefile.am
|
||||
rm -f $$TMPFILE; \
|
||||
- if test $$can_create_suid_root_executable = yes; then \
|
||||
- $(INSTALL_SUID); \
|
||||
+ $(INSTALL_SUID); \
|
||||
+ if test $$can_create_suid_root_executable != yes; then \
|
||||
- else \
|
||||
- echo "WARNING: insufficient access; not installing setuid plugins"; \
|
||||
+ $(INSTALL_SUID); \
|
||||
+ if test $$can_create_suid_root_executable != yes; then \
|
||||
+ echo "WARNING: insufficient access; not installing plugins as setuid"; \
|
||||
echo "NOTE: to install setuid plugins, run 'make install-root' as root"; \
|
||||
+ echo "NOTE: or fix this in your packaging (like the specfile)"; \
|
||||
|
@ -1,7 +1,7 @@
|
||||
Index: monitoring-plugins-2.2/plugins-scripts/check_log.sh
|
||||
Index: monitoring-plugins-2.3.1/plugins-scripts/check_log.sh
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.2.orig/plugins-scripts/check_log.sh
|
||||
+++ monitoring-plugins-2.2/plugins-scripts/check_log.sh
|
||||
--- monitoring-plugins-2.3.1.orig/plugins-scripts/check_log.sh
|
||||
+++ monitoring-plugins-2.3.1/plugins-scripts/check_log.sh
|
||||
@@ -115,27 +115,27 @@ while test -n "$1"; do
|
||||
exit $STATE_OK
|
||||
;;
|
||||
|
@ -30,11 +30,11 @@ Closes: https://github.com/monitoring-plugins/monitoring-plugins/issues/1508
|
||||
plugins/check_mysql_query.c | 8 ++++++--
|
||||
2 files changed, 12 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
|
||||
index 5773afd9..c44919d0 100644
|
||||
--- a/plugins/check_mysql.c
|
||||
+++ b/plugins/check_mysql.c
|
||||
@@ -36,6 +36,10 @@ const char *email = "devel@monitoring-plugins.org";
|
||||
Index: monitoring-plugins-2.3.1/plugins/check_mysql.c
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.3.1.orig/plugins/check_mysql.c
|
||||
+++ monitoring-plugins-2.3.1/plugins/check_mysql.c
|
||||
@@ -36,6 +36,10 @@ const char *email = "devel@monitoring-pl
|
||||
|
||||
#define SLAVERESULTSIZE 70
|
||||
|
||||
@ -54,7 +54,7 @@ index 5773afd9..c44919d0 100644
|
||||
int check_slave = 0, warn_sec = 0, crit_sec = 0;
|
||||
int ignore_auth = 0;
|
||||
int verbose = 0;
|
||||
@@ -505,7 +509,7 @@ void
|
||||
@@ -508,7 +512,7 @@ void
|
||||
print_help (void)
|
||||
{
|
||||
char *myport;
|
||||
@ -63,11 +63,11 @@ index 5773afd9..c44919d0 100644
|
||||
|
||||
print_revision (progname, NP_VERSION);
|
||||
|
||||
diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c
|
||||
index 49a14dd3..6f492442 100644
|
||||
--- a/plugins/check_mysql_query.c
|
||||
+++ b/plugins/check_mysql_query.c
|
||||
@@ -33,6 +33,10 @@ const char *progname = "check_mysql_query";
|
||||
Index: monitoring-plugins-2.3.1/plugins/check_mysql_query.c
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.3.1.orig/plugins/check_mysql_query.c
|
||||
+++ monitoring-plugins-2.3.1/plugins/check_mysql_query.c
|
||||
@@ -33,6 +33,10 @@ const char *progname = "check_mysql_quer
|
||||
const char *copyright = "1999-2007";
|
||||
const char *email = "devel@monitoring-plugins.org";
|
||||
|
||||
@ -96,4 +96,3 @@ index 49a14dd3..6f492442 100644
|
||||
|
||||
print_revision (progname, NP_VERSION);
|
||||
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
--- monitoring-plugins-2.3~alpha.20200520T233014.cadac85e/plugins/check_ntp_time.c 2020/10/12 16:05:30 1.1
|
||||
+++ monitoring-plugins-2.3~alpha.20200520T233014.cadac85e/plugins/check_ntp_time.c 2020/10/12 16:07:13
|
||||
@@ -533,7 +533,7 @@
|
||||
Index: monitoring-plugins-2.3.1/plugins/check_ntp_time.c
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.3.1.orig/plugins/check_ntp_time.c
|
||||
+++ monitoring-plugins-2.3.1/plugins/check_ntp_time.c
|
||||
@@ -533,7 +533,7 @@ int process_arguments(int argc, char **a
|
||||
|
||||
char *perfd_offset (double offset)
|
||||
{
|
||||
|
3
monitoring-plugins-2.3.1.tar.gz
Normal file
3
monitoring-plugins-2.3.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f56eb84871983fd719247249e3532228b37e2efaae657a3979bd14ac1f84a35b
|
||||
size 2529669
|
1
monitoring-plugins-2.3.1.tar.gz.sha1
Normal file
1
monitoring-plugins-2.3.1.tar.gz.sha1
Normal file
@ -0,0 +1 @@
|
||||
8cb4d72920ed99ff922b6989fe5213ea76b9388e *monitoring-plugins-2.3.1.tar.gz
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6a13e493c96301f9a81b2ec90dc019e8d9f486d77f762883eb91df2345b10ab1
|
||||
size 1876784
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:34e90e390323dc545d3b86664695b99d04d520db68dd5d5e89937b3375856350
|
||||
size 6768653
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4d6d2a56cd2c638504263215c10d19ed1db3ef8746704741919bc8221c9c88b0
|
||||
size 1797632
|
@ -1,8 +1,8 @@
|
||||
Index: monitoring-plugins-2.2/plugins/check_disk.c
|
||||
Index: monitoring-plugins-2.3.1/plugins/check_disk.c
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.2.orig/plugins/check_disk.c
|
||||
+++ monitoring-plugins-2.2/plugins/check_disk.c
|
||||
@@ -997,7 +997,7 @@ get_stats (struct parameter_list *p, str
|
||||
--- monitoring-plugins-2.3.1.orig/plugins/check_disk.c
|
||||
+++ monitoring-plugins-2.3.1/plugins/check_disk.c
|
||||
@@ -1030,7 +1030,7 @@ get_stats (struct parameter_list *p, str
|
||||
if (verbose >= 3)
|
||||
printf("Group %s: adding %llu blocks sized %llu, (%s) used_units=%g free_units=%g total_units=%g fsu_blocksize=%llu mult=%llu\n",
|
||||
p_list->group, tmpfsp.fsu_bavail, tmpfsp.fsu_blocksize, p_list->best_match->me_mountdir, p_list->dused_units, p_list->dfree_units,
|
||||
|
@ -29,11 +29,11 @@ SWAP CRITICAL - 0% free (0 MB out of 0 MB) |swap=0MB;0;0;0;0
|
||||
Additional info:
|
||||
https://bugzilla.redhat.com/512559
|
||||
|
||||
Index: monitoring-plugins-2.2/plugins/check_swap.c
|
||||
Index: monitoring-plugins-2.3.1/plugins/check_swap.c
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.2.orig/plugins/check_swap.c
|
||||
+++ monitoring-plugins-2.2/plugins/check_swap.c
|
||||
@@ -125,7 +125,7 @@
|
||||
--- monitoring-plugins-2.3.1.orig/plugins/check_swap.c
|
||||
+++ monitoring-plugins-2.3.1/plugins/check_swap.c
|
||||
@@ -125,7 +125,7 @@ main (int argc, char **argv)
|
||||
free_swap_mb += dskfree_mb;
|
||||
if (allswaps) {
|
||||
if (dsktotal_mb == 0)
|
||||
|
@ -1,3 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 21 07:47:25 UTC 2021 - Lars Vogdt <lars@linux-schulserver.de>
|
||||
|
||||
- Update to 2.3.1:
|
||||
Enhancements
|
||||
* check_curl: Add an option to verify the peer certificate & host using the system CA's
|
||||
Fixes
|
||||
* check_icmp: fix simple typo, conspicuosly -> conspicuously
|
||||
* check_curl: fixed help, usage and errors for TLS 1.3
|
||||
* check_curl: fixed a potential buffer overflow in url buffer
|
||||
* check_dns: split multiple IP addresses passed in one -a argument
|
||||
* check_curl: added string_statuscode function for printing HTTP/1.1 and HTTP/2 correctly
|
||||
* check_curl: fix crash if http header contains leading spaces
|
||||
* check_curl: display a specific human-readable error message where possible
|
||||
* check_pgsql: Using snprintf which honors the buffers size and guarantees null termination.
|
||||
* check_snmp: put the "c" (to mark a counter) after the perfdata value
|
||||
* check_http: Increase regexp limit
|
||||
* check_http: make -C obvious
|
||||
* check_curl: Increase regexp limit (to 1024 as in check_http)
|
||||
* check_curl: make -C obvious (from check_http)
|
||||
- refreshed patches:
|
||||
+ monitoring-plugins-1.4.6-no_chown.patch
|
||||
+ monitoring-plugins-2.1.1-check_logfile.patch
|
||||
+ monitoring-plugins-2.2-mariadb_102_build_fix.patch
|
||||
+ monitoring-plugins-2.3-check_ntp_perf_absolute.patch
|
||||
+ monitoring-plugins-too_few_arguments_for_check_disk.patch
|
||||
+ monitoring-plugins-wrong_return_in_check_swap.patch
|
||||
+ monitoring-plugins.check_hpjd.c-64bit-portability-issue.patch
|
||||
+ monitoring-plugins.check_snmp.arrayaddress.patch
|
||||
- add sha1 checksum file as source
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 14 20:47:42 UTC 2021 - Lars Vogdt <lars@linux-schulserver.de>
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
Index: monitoring-plugins-2.2/plugins/check_hpjd.c
|
||||
Index: monitoring-plugins-2.3.1/plugins/check_hpjd.c
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.2.orig/plugins/check_hpjd.c
|
||||
+++ monitoring-plugins-2.2/plugins/check_hpjd.c
|
||||
@@ -66,7 +66,7 @@
|
||||
--- monitoring-plugins-2.3.1.orig/plugins/check_hpjd.c
|
||||
+++ monitoring-plugins-2.3.1/plugins/check_hpjd.c
|
||||
@@ -66,7 +66,7 @@ void print_usage (void);
|
||||
|
||||
char *community = NULL;
|
||||
char *address = NULL;
|
||||
|
@ -1,13 +1,13 @@
|
||||
Index: monitoring-plugins-2.2/plugins/check_snmp.c
|
||||
Index: monitoring-plugins-2.3.1/plugins/check_snmp.c
|
||||
===================================================================
|
||||
--- monitoring-plugins-2.2.orig/plugins/check_snmp.c
|
||||
+++ monitoring-plugins-2.2/plugins/check_snmp.c
|
||||
@@ -588,7 +588,7 @@ main (int argc, char **argv)
|
||||
strncat(perfstr, critical_thresholds, sizeof(perfstr)-strlen(perfstr)-1);
|
||||
}
|
||||
--- monitoring-plugins-2.3.1.orig/plugins/check_snmp.c
|
||||
+++ monitoring-plugins-2.3.1/plugins/check_snmp.c
|
||||
@@ -576,7 +576,7 @@ main (int argc, char **argv)
|
||||
len = sizeof(perfstr)-strlen(perfstr)-1;
|
||||
strncat(perfstr, show, len>ptr-show ? ptr-show : len);
|
||||
|
||||
- if (type)
|
||||
+ if (type[0])
|
||||
strncat(perfstr, type, sizeof(perfstr)-strlen(perfstr)-1);
|
||||
strncat(perfstr, " ", sizeof(perfstr)-strlen(perfstr)-1);
|
||||
}
|
||||
|
||||
if (warning_thresholds) {
|
||||
|
@ -17,14 +17,15 @@
|
||||
|
||||
|
||||
Name: monitoring-plugins
|
||||
Version: 2.3
|
||||
Version: 2.3.1
|
||||
Release: 0
|
||||
Summary: The Monitoring Plug-Ins
|
||||
License: GPL-2.0-or-later AND GPL-3.0-only
|
||||
Group: System/Monitoring
|
||||
URL: http://monitoring-plugins.org/
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
Source2: %{name}-%{version}.tar.gz.sha1
|
||||
Source11: %{name}-permissions
|
||||
Source12: %{name}-README.SUSE
|
||||
Source13: %{name}-README.SUSE-check_dhcp
|
||||
|
Loading…
x
Reference in New Issue
Block a user