mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-26 08:37:11 -04:00
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
This commit is contained in:
parent
9d878eab82
commit
17edbb05d4
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ if ($have_ntpq) {
|
|||
}
|
||||
|
||||
# match sys.peer or pps.peer
|
||||
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.]+)/) {
|
||||
if (/^(\*|o)(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/) {
|
||||
$syspeer = $2;
|
||||
$stratum = $4;
|
||||
$jitter = $11;
|
||||
|
|
|
|||
Loading…
Reference in a new issue