summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_ntp.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl
index 137a75a8..90cf7904 100755
--- a/plugins-scripts/check_ntp.pl
+++ b/plugins-scripts/check_ntp.pl
@@ -290,7 +290,7 @@ if ($have_ntpq) {
290 } 290 }
291 291
292 # match sys.peer or pps.peer 292 # match sys.peer or pps.peer
293 if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9hm.]+)\s+([-0-9.mh]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { 293 if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z_().]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9hm.]+)\s+([-0-9.mh]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
294 $syspeer = $2; 294 $syspeer = $2;
295 $stratum = $4; 295 $stratum = $4;
296 $jitter = $11; 296 $jitter = $11;
@@ -315,7 +315,7 @@ if ($have_ntpq) {
315 unless (defined $syspeer) { 315 unless (defined $syspeer) {
316 if ($#candidates >=0) { 316 if ($#candidates >=0) {
317 foreach my $c (@candidates) { 317 foreach my $c (@candidates) {
318 $c =~ /^(#)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/; 318 $c =~ /^(#)([-0-9.\s]+)\s+([-0-9A-Za-z_().]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/;
319 $syspeer = $2; 319 $syspeer = $2;
320 $stratum = $4; 320 $stratum = $4;
321 $jitter = $11; 321 $jitter = $11;