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

Plugin postfix_mailvolume: calculate separate volume for delivered mails #942

Conversation

sumpfralle
Copy link
Collaborator

See #941

Calculating the real delivered volume is not trivial, since the size of a mail and the delivery attempt are written to separate log lines. Thus we need to collect the size for each queue item and add this size whenever we see a successful delivery event log line.

This is further complicated by the usage of the tail_open function. This forces us to keep a dictionary of recently encountered mail size values, since we will only parse fresh log lines during each run.

This would affect the calculated volume value significantly (e.g. on my mailserver it reduces the volume to 35%). Thus we need to discuss, before merging it.

Copy link
Member

@steveschnepp steveschnepp left a comment

Choose a reason for hiding this comment

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

I won't be able to review it closely, but it looks sane.

…tate

Only strings are supported by munin's basic state management.
@sumpfralle sumpfralle merged commit 1c47337 into munin-monitoring:stable-2.0 Jun 20, 2018
@sumpfralle sumpfralle deleted the 941-plugin-postfix_mailvolume branch June 20, 2018 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants