summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9d878ea)
raw | patch | inline | side by side (parent: 9d878ea)
author | M. Sean Finney <seanius@users.sourceforge.net> | |
Thu, 13 Oct 2005 10:20:50 +0000 (10:20 +0000) | ||
committer | M. Sean Finney <seanius@users.sourceforge.net> | |
Thu, 13 Oct 2005 10:20:50 +0000 (10:20 +0000) |
- 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
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
plugins-scripts/check_ntp.pl | patch | blob | history |
index d6584aea7316a4512883e7fb4b444c417600fa8c..e844327b226ebb215f3a08e5999c48d1513974bd 100755 (executable)
}
# 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;