diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-11-29 14:39:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 14:39:28 (GMT) |
commit | f589b7041fd2b7444b4000634151457a4bccff43 (patch) | |
tree | 344357ba7cebcffd19608018bcb6147bcd4aa8e6 /plugins-scripts | |
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.
Diffstat (limited to 'plugins-scripts')
-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 aac1310..c548608 100755 --- a/plugins-scripts/check_mailq.pl +++ b/plugins-scripts/check_mailq.pl | |||
@@ -533,7 +533,7 @@ elsif ( $mailq eq "nullmailer" ) { | |||
533 | while (<MAILQ>) { | 533 | while (<MAILQ>) { |
534 | #2006-06-22 16:00:00 282 bytes | 534 | #2006-06-22 16:00:00 282 bytes |
535 | 535 | ||
536 | 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$/) { | 536 | 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/) { |
537 | $msg_q++ ; | 537 | $msg_q++ ; |
538 | } | 538 | } |
539 | } | 539 | } |