Code

add "m" to regex for minutes
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Wed, 5 Mar 2003 07:27:07 +0000 (07:27 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Wed, 5 Mar 2003 07:27:07 +0000 (07:27 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@370 f882894a-f735-0410-b71e-b25c423dba1c

plugins-scripts/check_ntp.pl

index cad92a6676b68c4f2b650242f593d63c135cf7c0..269ed3ba46958a1a53c9fc1c69af3b96a31631ce 100755 (executable)
@@ -260,7 +260,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-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
+                       if (/^(\*|o)([-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.]+)/) {
                                $syspeer = $2;
                                $stratum = $4;
                                $jitter = $11;