#2785 monitor mail queues
Closed: Fixed None Opened 12 years ago by kevin.

We would like to monitor mail queues on our machines.

We use postfix.

On the vast majority of systems the queue should be empty almost all the time.
(Only cron or admin emails would ever be in them).

The exceptions to this are:

  • bastion has all our outgoing email on it. So the queue here often is several thousand deferred for various reasons (remote hosts down, mailboxes full, etc).

  • smtp-mm0* machines are our mailmain frontends. They could have emails deffered on them.

So, the several steps here might be:

  1. Gather info on machines and how many emails they "normally" have in their queue.

  2. See if there's a way to note when this activity becomes abnormal. Possibly a large number of defers in a short time, or the overall queue reaching something very high.

  3. Test.

  4. implement checks.


Patch added, please take a look.

Patch looks fine from a quick glance.

I would not be opposed to adding a collectd check for this too, so we can take stats and maybe tune our monitoring to be a bit system-specific, or service-specific.

Login to comment on this ticket.

Metadata