Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-23-2009, 03:53 AM
Member
 
Posts: 10
Default [SOLVED] Services status check

Hi everybody

I have installed an Ubuntu 8.04 TLS server with Zimbra
zmcontrol -v:

Release 5.0.13_GA_2791.UBUNTU8 UBUNTU8 FOSS edition

The problem is sometime, quite often the power goes down, the database get's corrupted and I have to get some older backup. I am making full backups daily at night. The problem is that I do not know all the time when the power goes down, and so I have no idea when to start the services manually or restore a full backup.
Is there a way to check the status of the server and the status to be sent to a mail address outside the server ? Maybe a script to run in a cronjob ? I am hopping some one had this kind of problems until now and can give me some advices. The emails are pretty important for me and I need a way not to loos to many emails!

Thank you for any advices on this topic !
Gabi
Reply With Quote
  #2 (permalink)  
Old 03-23-2009, 03:55 AM
Moderator
 
Posts: 7,928
Default

Welcome to the forums

Why not install a small UPS ?
__________________
Reply With Quote
  #3 (permalink)  
Old 03-23-2009, 04:26 AM
Member
 
Posts: 10
Default

I already have a UPS. But in 20 minutes the UPS goes down as well ... .and that's it.
Reply With Quote
  #4 (permalink)  
Old 03-23-2009, 04:27 AM
Moderator
 
Posts: 7,928
Default

Can you configure your UPS then to shutdown the server ? If it is a APC, or similar, you should be able to get it to email you and then shutdown the server cleanly.
__________________
Reply With Quote
  #5 (permalink)  
Old 03-23-2009, 04:37 AM
Member
 
Posts: 10
Default

Unfortunately I have no such clever UPS. This will be an option in the worse case. Basically the UPS is there so that no over tension burns my server. When the power goes down the the internet connection gets also down so it makes no sens to invest in a stronger UPS because I don't need it to keep my server for too long up.
Do you have any example of an UPS that can be configure to shut down my server (consider that the server is Linux based not windows)?
Reply With Quote
  #6 (permalink)  
Old 03-23-2009, 04:52 AM
Moderator
 
Posts: 7,928
Default

APC should do the job nicely though you will also require Apcupsd, a daemon for controlling APC UPSes
__________________
Reply With Quote
  #7 (permalink)  
Old 03-23-2009, 05:02 AM
Member
 
Posts: 10
Default

Thank you for your answer. I have searched a little bit on following way:
On the server run a script to verify if the rooter IP is responding to ping. If no response to ping probably the rooter is down because of the power down. If so run a clean shutdown.
Now all I have to search for is the syntax for this script

Thank you again!
Gabi

if ping -c 3 <rooter IP> & ping -c 3 yahoo.com
then
// do nothing
else
poweroff now
fi

Last edited by petricag; 03-23-2009 at 07:00 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.