{"id":16769533,"url":"https://github.com/cmur2/munin-postfix","last_synced_at":"2025-04-10T19:34:15.452Z","repository":{"id":141835167,"uuid":"3139621","full_name":"cmur2/munin-postfix","owner":"cmur2","description":"Low volume postfix_mailqueue munin plugin","archived":false,"fork":false,"pushed_at":"2014-06-22T12:35:36.000Z","size":129,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T17:12:13.254Z","etag":null,"topics":["mail","munin-plugins","postfix","shell"],"latest_commit_sha":null,"homepage":"https://www.mycrobase.de/mirror-redirect/munin-postfix","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmur2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-09T20:05:11.000Z","updated_at":"2019-12-22T09:59:29.000Z","dependencies_parsed_at":"2023-03-13T10:28:40.173Z","dependency_job_id":null,"html_url":"https://github.com/cmur2/munin-postfix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmur2%2Fmunin-postfix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmur2%2Fmunin-postfix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmur2%2Fmunin-postfix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmur2%2Fmunin-postfix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmur2","download_url":"https://codeload.github.com/cmur2/munin-postfix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281422,"owners_count":21077423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mail","munin-plugins","postfix","shell"],"created_at":"2024-10-13T06:14:23.812Z","updated_at":"2025-04-10T19:34:15.428Z","avatar_url":"https://github.com/cmur2.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Low volume postfix_mailqueue munin plugin\n=========================================\n\nThe original postfix_mailqueue plugin delivered with munin does very well\nin many aspects. But it has a design related problem: to measure the number\nof mails per queue (active, incomming, deferred, ...) it counts the entries\nin the corresponding spool directories every 5 minutes (when munin core asks).\nIf a mail only stays a short time in a queue (especially active and incomming\nqueues) it won't get recognized by postfix_mailqueue.\n\nSince on my low volume mailserver I'm interested in the total number of sent/\nrecieved messages in the last 5 minutes (for the deferred and hold queues the\noriginal method is good enough since a mail there probably stays longer than\n5 minutes) I changed the behavior and meaning of the \"active\" and \"incomming\"\ngraphs to \"outgoing\" (to the network) and \"incomming\" (from the network).\nTo determine the number of mails for these graphs the recent (5 minutes, hardcoded)\nsyslog entries are grep'ed for signaling sequences indicating some kind of\naction of postfix.\n\nInstall\n-------\n\nClone this repository or download the postfix_mailqueue file and create a\nsymlinkas *root* in /etc/munin/plugins by using e.g.:\n\n\tcd /etc/munin/plugins; ln -s /your/path/to/postfix_mailqueue postfix_mailqueue\n\n(In case you already used the original plugin you should remove the old symlink.\nThen **wait** about 10 minutes before add the new symlink described above.)\n\nNext make sure that munin is allowed or at least allows this script to read\nyour *mail.log*. How to do this depends on your system.\n\nOn Debian 6 *mail.log* is owned by `root:adm` and readable by nobody but them.\nThe recommended way here is to advice munin to run postfix_mailqueue with group\nadm (and user postfix, by default) by modifying */etc/munin/plugin-conf.d/munin-node*\nwhere you should change/add a line to the `[postfix_mailqueue]` section:\n\n\tgroup adm\n\nIf you use LMTP (e.g. with dovecot) and want to count delivery via LMTP as 'incoming'\nmail add another line with:\n\n\tenv.incoming_regex postfix/lmtp\\\\[.*status=sent\n\nIf your *mail.log* is not located at */var/log/mail.log* (the default)\nyou should add another line with your custom path:\n\n\tenv.maillog /var/log/mail.log\n\n**Don't forget to restart your munin-node deamon.**\n\nsyslog5mins\n-----------\n\nThis little bash function returns the entries of a file (created in format of\nsyslog default template; especially timestamp) of the last 5 minutes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmur2%2Fmunin-postfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmur2%2Fmunin-postfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmur2%2Fmunin-postfix/lists"}