--
--------------------
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-----
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?
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
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.
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
--------------------