浏览代码

Merge pull request #768 from tsadpbb/add-spaces-check-file-age-t

Add spaces to regex of check_file_age.t
dylan-at-nagios 1 年之前
父节点
当前提交
15ca0e0519
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins-scripts/t/check_file_age.t

+ 1 - 1
plugins-scripts/t/check_file_age.t

@@ -12,7 +12,7 @@ my $successOutput = '/^FILE_AGE OK: /';
 my $warningOutput = '/^FILE_AGE WARNING: /';
 my $criticalOutput = '/^FILE_AGE CRITICAL: /';
 my $unknownOutput = '/^FILE_AGE UNKNOWN: /';
-my $performanceOutput = '/ \| age=[0-9]+s;[0-9]+;[0-9]+ size=[0-9]+B;[0-9]+;[0-9]+;0$/';
+my $performanceOutput = '/ \| age=[0-9]+s;[0-9]+;[0-9]+ size=[0-9]+B;[0-9]+;[0-9]+;0  $/';
 
 my $result;
 my $temp_file = "/tmp/check_file_age.tmp";