Email Nightly Updates
Posted: Thu Aug 23, 2007 8:46 am
by dougp23
I wonder if there is anyway for Scalix to email me nightly a report on the status of all the Scalix services?? Sometimes things like Remote Connection die or the CDA server stops without warning. A nice little email saying "everything is good" or an email with what is down (no email at all would obvioulsy be THE wakeup call, lol) would sure be nice.
Can anyone think of a way to do this??
Thank you!
Posted: Thu Aug 23, 2007 9:09 am
by btisdall
Well, this is basically what you need:
http://www.scalix.com/wiki/index.php?ti ... th_ommaint
In it's current form it'll only mail the admin on errors, but you should be able to adapt it easily to your needs.
Posted: Thu Aug 23, 2007 9:17 am
by mikethebike
Doug,
you could run a cron job to get info from your server, such as:
omstat -s >> /tmp/`date +%A`.log
omstat -s >> /tmp/`date +%A`.log
sendmail-bp >> /tmp/`date +%A`.log
tail -100 ~logs/fatal >> /tmp/`date +%A`.log
omqstat -t >> /tmp/`date +%A`.log
uptime >> /tmp/`date +%A`.log
then use something like mailex to send it to yourself (obviously you'd need to script this, set all the correct variable etc).
OR
set up a request script so that you can run it whenver you like and get the result mailed to you.
Mick