Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

monitor postfix queue with SNMP

210 views
Skip to first unread message

Elmehdi Bendriss

unread,
Dec 28, 2006, 5:59:49 PM12/28/06
to
hello,
is there any information on howto monitor postfix queue using
SNMP, specially sending TRAPs after a threshold.
thank you
B.R


--
--------------------

James Turnbull

unread,
Dec 28, 2006, 6:26:51 PM12/28/06
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Elmehdi Bendriss wrote:
> hello,
> is there any information on howto monitor postfix queue using
> SNMP, specially sending TRAPs after a threshold.
> thank you
> B.R
>
>

Very crudely? Dump the results of the mailq or qshape commands into a
script (shell/perl/etc), test against a threshold and send traps via the
snmptrap command from NetSNMP.

If you use something like Nagios you can find a HOWTO here:

http://mark.foster.cc/wiki/index.php/Using_Nagios_with_SNMP

Regards

James Turnbull

- --
James Turnbull <ja...@lovedthanlost.net>
- ---
Author of Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)

Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)
- ---
PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFlFK79hTGvAxC30ARAkHyAJ9DoJ998Bl5A1fSYR4Td6RShGtAngCcC8e/
Kr3B9e6Ju9Je9qKNknN76MQ=
=UlDF
-----END PGP SIGNATURE-----

Ralf Hildebrandt

unread,
Dec 29, 2006, 3:46:50 AM12/29/06
to
* Elmehdi Bendriss <bend...@gmail.com>:

> hello,
> is there any information on howto monitor postfix queue using
> SNMP, specially sending TRAPs after a threshold.

You can adapt queuegraph

--
Ralf Hildebrandt (Ralf.Hil...@charite.de) pl...@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.postfix-buch.com
Most people use Windows. Is this a reason to run Windows?
Flies love shit. A million flies can't be wrong, can they?

Bjørn Ruberg

unread,
Dec 29, 2006, 1:02:37 PM12/29/06
to
Elmehdi Bendriss wrote:
> hello,
> is there any information on howto monitor postfix queue using
> SNMP, specially sending TRAPs after a threshold.

You could try out Munin (http://munin.sf.net/). It's a monitoring
framework where something like this is easily implemented. While it's
probably overkill if queue monitoring is all you want, you might find it
useful for other monitoring tasks as well.

--
Bjørn

Michael Schwartzkopff

unread,
Dec 29, 2006, 1:25:22 PM12/29/06
to

net-snmp has a possibility to exec scripts via SNMP queueries. You could do
this to get queue information.

Another feature of net-snmp is logfile monitoring (logmatch). You can count
occuranes of regexp in logfiles. I use this to count SPAM, virii, "sent,
greylisted, RBL, ... Gives nice graphes in cacti ;-)

Michael.


Elmehdi Bendriss

unread,
Dec 29, 2006, 8:13:27 PM12/29/06
to
thanks all for your answers

On 12/29/06, Bjørn Ruberg <bj...@ruberg.no> wrote:


> Elmehdi Bendriss wrote:
> > hello,
> > is there any information on howto monitor postfix queue using
> > SNMP, specially sending TRAPs after a threshold.
>

> You could try out Munin (http://munin.sf.net/). It's a monitoring
> framework where something like this is easily implemented. While it's
> probably overkill if queue monitoring is all you want, you might find it
> useful for other monitoring tasks as well.
>

> --
> Bjørn
>


--
_____________________________________________
Bendriss Elmehdi
elm...@bendriss.ma
http://www.netservices.ma
http://www.monpc.ma
http://www.honeynetmaroc.org [Under Construction]
Microsoft Certified Professional
--------------------

0 new messages