Email Nightly Updates

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

dougp23
Posts: 229
Joined: Thu Feb 15, 2007 2:42 pm

Email Nightly Updates

Postby dougp23 » Thu Aug 23, 2007 8:46 am

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!

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Thu Aug 23, 2007 9:09 am

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.
Ben Tisdall
www.redcircleit.com
London

mikethebike
Posts: 566
Joined: Mon Nov 28, 2005 4:16 pm
Location: England

Postby mikethebike » Thu Aug 23, 2007 9:17 am

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


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 5 guests