blob: 03a1d5c2d32142afe0ae200b25dfb7f2ae055a2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- 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) {
}
} else {
print "No match!\n" if $verbose;
- $jitter = '(not parsed)';
}
}
@@ -429,7 +428,7 @@ foreach my $key (keys %ERRORS) {
if ($state==$ERRORS{$key}) {
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;
|