Application Perf Mgmt (BAC / BSM) Support and News Forum
Showing results for 
Search instead for 
Do you mean 

Monitor sendmail/postfix mailq


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

Re: Monitor sendmail/postfix mailq

Solved it, I used /(.*)/ as the Match Expression