Code

debian bts #268044:
[nagiosplug.git] / plugins-scripts / check_ntp.pl
index d6584aea7316a4512883e7fb4b444c417600fa8c..e844327b226ebb215f3a08e5999c48d1513974bd 100755 (executable)
@@ -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;