diff --git a/monitoring-plugins-2.3-check_ntp_perf_absolute.patch b/monitoring-plugins-2.3-check_ntp_perf_absolute.patch new file mode 100644 index 0000000..8f2a5c7 --- /dev/null +++ b/monitoring-plugins-2.3-check_ntp_perf_absolute.patch @@ -0,0 +1,11 @@ +--- 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 @@ + + char *perfd_offset (double offset) + { +- return fperfdata ("offset", offset, "s", ++ return fperfdata ("offset", fabs(offset), "s", + TRUE, offset_thresholds->warning->end, + TRUE, offset_thresholds->critical->end, + FALSE, 0, FALSE, 0); diff --git a/monitoring-plugins.changes b/monitoring-plugins.changes index 90d8e65..5032dda 100644 --- a/monitoring-plugins.changes +++ b/monitoring-plugins.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Oct 13 11:05:10 CEST 2020 - ro@suse.de + +- add patch monitoring-plugins-2.3-check_ntp_perf_absolute.patch + return ntp offset absolute (as positive value) in performance + data since warn and crit are also positive values + ------------------------------------------------------------------- Fri Sep 18 08:19:35 UTC 2020 - Dirk Stoecker diff --git a/monitoring-plugins.spec b/monitoring-plugins.spec index f108fca..07632bc 100644 --- a/monitoring-plugins.spec +++ b/monitoring-plugins.spec @@ -74,6 +74,7 @@ Patch118: %{name}.check_hpjd.c-64bit-portability-issue.patch Patch119: monitoring-plugins-2.2-mariadb_102_build_fix.patch # PATCH-FIX-UPSTREAM see https://bugzilla.redhat.com/512559 Patch121: %{name}-wrong_return_in_check_swap.patch +Patch122: monitoring-plugins-2.3-check_ntp_perf_absolute.patch BuildRequires: bind-utils BuildRequires: dhcp-devel BuildRequires: fping @@ -1125,6 +1126,7 @@ done %patch118 -p1 %patch119 -p1 %patch121 -p1 +%patch122 -p1 find -type f -exec chmod 644 {} + %build