Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_mailq: Fixing nullmailer regex #1796

Merged
merged 1 commit into from Jan 18, 2023

Conversation

waja
Copy link
Member

@waja waja commented Oct 19, 2022

In Debian we got reported this issue: https://bugs.debian.org/1019406

it seems that the output from nullmailer's mailq has changed format since
that portion was implemented. i noticed that it was not alerting on a
host w/many messages in its queue:

% mailq | wc -l
12488
% check_mailq -M nullmailer -w 5 -c 10
OK: nullmailer mailq (0) is below threshold (5/10)|unsent=0;5;10;0

attached is a patch that updates the format expected in the nullmailer
mailq output. the regex is a little more flexible and less specific
than the previous version.

attached is a patch that updates the format expected in the nullmailer
mailq output.  the regex is a little more flexible and less specific
than the previous version.
Copy link
Member

@RincewindsHat RincewindsHat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@waja waja merged commit 916572c into monitoring-plugins:master Jan 18, 2023
@waja waja deleted the nullmailer_regex_fix branch January 18, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants