Re: Queue monitoring

2010-11-29 Thread Mark Watts
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/25/2010 05:24 PM, Wietse Venema wrote:
> Mark Watts:
>>
>> I have a requirement to be able to monitor a postfix queue over time,
>> and to determine whether any messages are delayed due to problems
>> connecting to a remote servers.
>>
>> The mail system concerned is pretty simple; messages are generated
>> locally and relayed to a remote server across a VPN.
>>
>> While I can monitor connectivity to port 25 on the remote server, that
>> doesn't guarantee that it would accept a message for onward delivery; I
>> need to be able to notice delivery issues and initiate a meatware
>> interface. Once the message is accepted by the remote server, onward
>> delivery is monitored by another system that I have no control over.
>>
>> I believe I am limited to monitoring the local mail queue to see if
>> messages are being deferred, and reporting accordingly?
>>
>> The postqueue(1) command doesn't appear to generate output in a format
>> particularly useful for scripts to parse, so is there another tool I can
>> use or is there better way to approach this problem?
> 
> QSHAPE (bundled with Postfix source) reports queue stats by age.
> http://www.postfix.org/QSHAPE_README.html
> 
>   Wietse

This should do the trick - thanks.

Mark.

- -- 
Mark Watts BSc RHCE
Senior Systems Engineer, Secure Managed Hosting
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkzzdyoACgkQBn4EFUVUIO2d/QCgnuYy/HhCZL4TN9UEMujUvQKO
+8gAniS/R7Hd5rscYsAY5qbOjNMWV5xo
=v0gR
-END PGP SIGNATURE-


Re: Queue monitoring

2010-11-25 Thread Wietse Venema
Mark Watts:
> 
> I have a requirement to be able to monitor a postfix queue over time,
> and to determine whether any messages are delayed due to problems
> connecting to a remote servers.
> 
> The mail system concerned is pretty simple; messages are generated
> locally and relayed to a remote server across a VPN.
> 
> While I can monitor connectivity to port 25 on the remote server, that
> doesn't guarantee that it would accept a message for onward delivery; I
> need to be able to notice delivery issues and initiate a meatware
> interface. Once the message is accepted by the remote server, onward
> delivery is monitored by another system that I have no control over.
> 
> I believe I am limited to monitoring the local mail queue to see if
> messages are being deferred, and reporting accordingly?
> 
> The postqueue(1) command doesn't appear to generate output in a format
> particularly useful for scripts to parse, so is there another tool I can
> use or is there better way to approach this problem?

QSHAPE (bundled with Postfix source) reports queue stats by age.
http://www.postfix.org/QSHAPE_README.html

Wietse


Queue monitoring

2010-11-25 Thread Mark Watts
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I have a requirement to be able to monitor a postfix queue over time,
and to determine whether any messages are delayed due to problems
connecting to a remote servers.

The mail system concerned is pretty simple; messages are generated
locally and relayed to a remote server across a VPN.

While I can monitor connectivity to port 25 on the remote server, that
doesn't guarantee that it would accept a message for onward delivery; I
need to be able to notice delivery issues and initiate a meatware
interface. Once the message is accepted by the remote server, onward
delivery is monitored by another system that I have no control over.

I believe I am limited to monitoring the local mail queue to see if
messages are being deferred, and reporting accordingly?

The postqueue(1) command doesn't appear to generate output in a format
particularly useful for scripts to parse, so is there another tool I can
use or is there better way to approach this problem?

Regards,

Mark.

- -- 
Mark Watts BSc RHCE
Senior Systems Engineer, Secure Managed Hosting
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkzultIACgkQBn4EFUVUIO12BACg+dN8IS1m9B0hBCmPEobBoUJs
koAAoMBATaCVSxfHw4A0JM42SfEMXt3d
=2dAI
-END PGP SIGNATURE-