diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-11-29 15:39:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 15:39:28 +0100 |
commit | f589b7041fd2b7444b4000634151457a4bccff43 (patch) | |
tree | 344357ba7cebcffd19608018bcb6147bcd4aa8e6 | |
parent | d752c891f47e54cfdb07389d73272cbab9137e01 (diff) | |
parent | 541322969e27b07566c55448d749bc64ab7ae5c0 (diff) | |
download | monitoring-plugins-f589b7041fd2b7444b4000634151457a4bccff43.tar.gz |
Merge pull request #1493 from darksoul42/master
Fix regexp for nullmailer "mailq" output.
Looks good. Thank you very much.
-rwxr-xr-x | plugins-scripts/check_mailq.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_mailq.pl b/plugins-scripts/check_mailq.pl index aac1310e..c5486087 100755 --- a/plugins-scripts/check_mailq.pl +++ b/plugins-scripts/check_mailq.pl @@ -533,7 +533,7 @@ elsif ( $mailq eq "nullmailer" ) { while (<MAILQ>) { #2006-06-22 16:00:00 282 bytes - if (/^[1-9][0-9]*-[01][0-9]-[0-3][0-9]\s[0-2][0-9]\:[0-2][0-9]\:[0-2][0-9]\s{2}[0-9]+\sbytes$/) { + if (/^[1-9][0-9]*-[01][0-9]-[0-3][0-9]\s[0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]\s+[0-9]+\sbytes/) { $msg_q++ ; } } |