Alerts.

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

tpatricio
Posts: 27
Joined: Thu Sep 21, 2006 10:09 am

Alerts.

Postby tpatricio » Tue Mar 20, 2007 8:28 am

Hi,

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

Thanks

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Mar 20, 2007 10:00 am

Hi!

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

Thanks,
Subir

tpatricio
Posts: 27
Joined: Thu Sep 21, 2006 10:09 am

Postby tpatricio » Tue Mar 20, 2007 10:50 am

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?

dahido

Alerts

Postby dahido » Tue Mar 20, 2007 1:03 pm

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


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 9 guests

cron