diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-13 10:20:50 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-10-13 10:20:50 +0000 |
commit | 17edbb05d44eee6f3d5aef7fa42bd957e47b9970 (patch) | |
tree | b78a06a09667b8d31137ffa84d010f0ae66e140e | |
parent | 9d878eab82bede19e80b4aa9ce1409da3ba6d658 (diff) | |
download | monitoring-plugins-17edbb05d44eee6f3d5aef7fa42bd957e47b9970.tar.gz |
debian bts #268044:
- use a "less beastly" regex for parsing ntpq output. probably need
some more widespread testing on this one.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1250 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-x | plugins-scripts/check_ntp.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index d6584aea..e844327b 100755 --- a/plugins-scripts/check_ntp.pl +++ b/plugins-scripts/check_ntp.pl | |||
@@ -293,7 +293,7 @@ if ($have_ntpq) { | |||
293 | } | 293 | } |
294 | 294 | ||
295 | # match sys.peer or pps.peer | 295 | # match sys.peer or pps.peer |
296 | 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.]+)/) { | 296 | if (/^(\*|o)(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/) { |
297 | $syspeer = $2; | 297 | $syspeer = $2; |
298 | $stratum = $4; | 298 | $stratum = $4; |
299 | $jitter = $11; | 299 | $jitter = $11; |