Monitor sendmail/postfix mailq (101 Views)
Posts: 15
Registered: ‎08-23-2007
Message 1 of 2 (101 Views)

Monitor sendmail/postfix mailq

Hi, I'm trying to setup monitoring of the mailq on some linux boxes via Sitescope.
As the local sitescope scripts.remote I'm using this which will produce a the number of emails currently in the queue (mostly it will be number 0):

sudo /usr/bin/mailq | tail -n1 | cut -d " " -f 3

On the script monitor I use the following "Match Expression":


But no matter what expressions I use I always get "n/a" as output value.

The command in the script works fine on the boxes with the monitoring user account and the status value of the monitor is 0 (ok)

Any idéas?

Thank you
Posts: 15
Registered: ‎08-23-2007
Message 2 of 2 (101 Views)

Re: Monitor sendmail/postfix mailq

Solved it, I used /(.*)/ as the Match Expression
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.