1
0

- 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

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=82
This commit is contained in:
Ruediger Oertel 2020-10-13 09:06:13 +00:00 committed by Git OBS Bridge
parent 3183ea96ca
commit bda40d34d3
3 changed files with 20 additions and 0 deletions

View File

@ -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);

View File

@ -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 <opensuse@dstoecker.de> Fri Sep 18 08:19:35 UTC 2020 - Dirk Stoecker <opensuse@dstoecker.de>

View File

@ -74,6 +74,7 @@ Patch118: %{name}.check_hpjd.c-64bit-portability-issue.patch
Patch119: monitoring-plugins-2.2-mariadb_102_build_fix.patch Patch119: monitoring-plugins-2.2-mariadb_102_build_fix.patch
# PATCH-FIX-UPSTREAM see https://bugzilla.redhat.com/512559 # PATCH-FIX-UPSTREAM see https://bugzilla.redhat.com/512559
Patch121: %{name}-wrong_return_in_check_swap.patch Patch121: %{name}-wrong_return_in_check_swap.patch
Patch122: monitoring-plugins-2.3-check_ntp_perf_absolute.patch
BuildRequires: bind-utils BuildRequires: bind-utils
BuildRequires: dhcp-devel BuildRequires: dhcp-devel
BuildRequires: fping BuildRequires: fping
@ -1125,6 +1126,7 @@ done
%patch118 -p1 %patch118 -p1
%patch119 -p1 %patch119 -p1
%patch121 -p1 %patch121 -p1
%patch122 -p1
find -type f -exec chmod 644 {} + find -type f -exec chmod 644 {} +
%build %build