blob: c50eb65f31f6c36d821f9b6895c5e22a522b7f28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- nagios-plugins-1.4.1/plugins-scripts/check_ntp.pl.orig 2005-08-03 13:37:36.876820293 +0200
+++ nagios-plugins-1.4.1/plugins-scripts/check_ntp.pl 2005-08-03 13:38:26.845893474 +0200
@@ -309,7 +309,7 @@
}
} else {
print "No match!\n" if $verbose;
- $jitter = '(not parsed)';
+ $jitter = -1;
}
}
@@ -421,7 +421,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) ? $jitter/1000 : '-') . ",peer_stratum=$stratum\n");
last;
}
}
|