Page 1 of 1

Alerts.

Posted: Tue Mar 20, 2007 8:28 am
by tpatricio
Hi,

Some one can tell me how can I configure scalix alerts?

Thanks

Posted: Tue Mar 20, 2007 10:00 am
by ScalixSupport
Hi!

What alert do you wish to configure? Please explain for better understanding.

Thanks,
Subir

Posted: Tue Mar 20, 2007 10:50 am
by tpatricio
I had a problem with the queue message service. He stop and I don't have any information when that happens.

My question is if its possible configure any alerts for some like this?

Alerts

Posted: Tue Mar 20, 2007 1:03 pm
by dahido
Hey,

The way we do it is we watch omstat's output and mail if there is anything out of the ordinary. In crontab we have:

Code: Select all

*/2 * * * * /etc/smtptest > /dev/null 2>&1


and in /etc/smtptest we have:

Code: Select all

aborttest=`/opt/scalix/bin/omstat -a|grep -v Started|grep -v Structure|wc`
abortdata=`/opt/scalix/bin/omstat -a|grep -v Started|grep -v Structure`
aborttest2=`/opt/scalix/bin/omstat -s|grep -v Enabled|grep -v Started|wc`
abortdata2=`/opt/scalix/bin/omstat -s|grep -v Enabled|grep -v Started`
noabort=`/opt/scalix/bin/omstat -s|grep notaborted|wc`
if [ "$aborttest" != "$noabort" ]
        then
                /opt/scalix/bin/omoff -d0 -w smtpd
                sleep 5
                /opt/scalix/bin/omon smtpd unix
                echo $abortdata | mail -s "Server ABORTED" support@mydomain.com
        else
                echo "All is running smoothly."
        fi


if [ "$aborttest2" != "$noabort" ]
        then
                /opt/scalix/bin/omoff -d0 -w pop3 unix
                sleep 5
                /opt/scalix/bin/omon pop3 unix
                echo $abortdata2 | mail -s "Server ABORTED" support@mydomain.com
        else
                echo "All is running smoothly."
        fi


Thanks,
Jay