summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2003-02-16 02:18:00 (GMT)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2003-02-16 02:18:00 (GMT)
commit983b1edec4399c7bb473785567bbeb7d338d705b (patch)
treece7da505a12a24408c5b498f4c1194dc493db877 /plugins-scripts
parent12334b81bd36cfa7038c454362dafc2923b29b96 (diff)
downloadmonitoring-plugins-983b1edec4399c7bb473785567bbeb7d338d705b.tar.gz
all alphanumeric accepted for refid on ntpq
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@325 f882894a-f735-0410-b71e-b25c423dba1c
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 67c0a6a..cad92a6 100755
--- a/plugins-scripts/check_ntp.pl
+++ b/plugins-scripts/check_ntp.pl
@@ -232,7 +232,7 @@ if ( $? && !$ignoreret ) {
232# or 'o' which implies pps.peer 232# or 'o' which implies pps.peer
233# If both exist, the last one is picked. 233# If both exist, the last one is picked.
234# Field 2: address of the remote peer 234# Field 2: address of the remote peer
235# Field 3: Refid of the clock (0.0.0.0 if unknown, WWWV/PPS/GPS if Stratum1) 235# Field 3: Refid of the clock (0.0.0.0 if unknown, WWWV/PPS/GPS/ACTS/USNO/PCS/... if Stratum1)
236# Field 4: stratum (0-15) 236# Field 4: stratum (0-15)
237# Field 5: Type of the peer: local (l), unicast (u), multicast (m) 237# Field 5: Type of the peer: local (l), unicast (u), multicast (m)
238# broadcast (b); not sure about multicast/broadcast 238# broadcast (b); not sure about multicast/broadcast
@@ -260,7 +260,7 @@ if ($have_ntpq) {
260 } 260 }
261 261
262 # match sys.peer or pps.peer 262 # match sys.peer or pps.peer
263 if (/^(\*|o)([-0-9.\s]+)\s+([-0-9WwVvGgPpSs.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { 263 if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
264 $syspeer = $2; 264 $syspeer = $2;
265 $stratum = $4; 265 $stratum = $4;
266 $jitter = $11; 266 $jitter = $11;