NightMan
02-12-2007, 06:10 AM
Hi shell experts,
I would like to have a shell script running in a redhat server for monitoring the mailqueue status. I have already installed the qmHandle and I am using it to get a status of the mail queue in daily basis. I am executing the qmhandle in the cron.
Now I am planning to execute the qmhandle every hour and the status been mailed to me only, if the amount of mails in the queue meet certain criteria.
e.g. I need the notification been send only if the mails in the remote queue exceeds more than 1000 mails or in the local queue more than 10 mails.
Any help appreciated. Thank you.
The qmhandle will be executed with following command
./qmHandle -s
The out put may be:
Messages in local queue: 3
Messages in remote queue: 583
I would like to have a shell script running in a redhat server for monitoring the mailqueue status. I have already installed the qmHandle and I am using it to get a status of the mail queue in daily basis. I am executing the qmhandle in the cron.
Now I am planning to execute the qmhandle every hour and the status been mailed to me only, if the amount of mails in the queue meet certain criteria.
e.g. I need the notification been send only if the mails in the remote queue exceeds more than 1000 mails or in the local queue more than 10 mails.
Any help appreciated. Thank you.
The qmhandle will be executed with following command
./qmHandle -s
The out put may be:
Messages in local queue: 3
Messages in remote queue: 583
