aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__ntp.pl
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__ntp.pl')
-rw-r--r--net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__ntp.pl16
1 files changed, 8 insertions, 8 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__ntp.pl b/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__ntp.pl
index f1e43e6e5009..03a1d5c2d321 100644
--- a/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__ntp.pl
+++ b/net-mgmt/nagios-plugins/files/patch-plugins-scripts_check__ntp.pl
@@ -1,4 +1,4 @@
---- plugins-scripts/check_ntp.pl.orig 2016-08-01 16:27:46 UTC
+--- plugins-scripts/check_ntp.pl.orig 2019-12-04 21:53:08 UTC
+++ plugins-scripts/check_ntp.pl
@@ -314,7 +314,6 @@ if ($have_ntpq) {
}
@@ -8,12 +8,12 @@
}
}
-@@ -428,7 +427,7 @@ if ($ntpdate_error != $ERRORS{'OK'}) {
- foreach my $key (keys %ERRORS) {
+@@ -429,7 +428,7 @@ foreach my $key (keys %ERRORS) {
if ($state==$ERRORS{$key}) {
- # print ("NTP $key: $answer");
-- print ("NTP $key: $answer|offset=$offset, jitter=" . $jitter/1000 . ",peer_stratum=$stratum\n");
-+ print ("NTP $key: $answer|offset=$offset, jitter=" . ($jitter || 0)/1000 . ",peer_stratum=$stratum\n");
+ print ("NTP $key: $answer|offset=$offset");
+ if ($have_ntpq) {
+- print (", jitter=" . $jitter/1000 . ",peer_stratum=$stratum");
++ print (", jitter=" . ($jitter || 0)/1000 . ",peer_stratum=$stratum");
+ }
+ print ("\n");
last;
- }
- }