Monitore Postfix queue
Steve Shipway
s.shipway at auckland.ac.nz
Tue May 16 23:23:17 CEST 2006
> I've write a small script do monitore postfix queue using
> postqueue to count the number of emails on my queue:
>
> postqueue -p | tail -1 | cut -d " " -f 5
>
> The problem: Sometimes, my queue have more than 20.000
> emails, and I can't count this number of emails in less then
> 1 minute :-)
We had this problem, too. So, I wrote a different plugin that uses Perl.
The quickest way to do this is to just count the number of files in the
postfix queue directory, although this requires the plugin to run with the
appropriate group permissions (which I achieved by using a sudo wrapper).
The postqueue (or mailq) commands take a lot longer because they parse the
messages in order to output all the extra information, which you arent
interested in.
Steve
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list