Results 1 to 7 of 7

Thread: [SOLVED] Services status check

  1. #1
    petricag is offline Member
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    6

    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

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Welcome to the forums

    Why not install a small UPS ?

  3. #3
    petricag is offline Member
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    6

    Default

    I already have a UPS. But in 20 minutes the UPS goes down as well ... .and that's it.

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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.

  5. #5
    petricag is offline Member
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    6

    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)?

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    APC should do the job nicely though you will also require Apcupsd, a daemon for controlling APC UPSes

  7. #7
    petricag is offline Member
    Join Date
    Mar 2009
    Posts
    10
    Rep Power
    6

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] mysql.server not running
    By king0770 in forum Administrators
    Replies: 23
    Last Post: 07-25-2009, 03:07 PM
  2. Error after installation
    By robsontuxlinux in forum Installation
    Replies: 13
    Last Post: 09-11-2008, 09:48 PM
  3. zmmailboxdctl is stopped frequently..
    By tamilnandhu in forum Installation
    Replies: 13
    Last Post: 04-12-2008, 08:59 AM
  4. Replies: 4
    Last Post: 11-14-2007, 02:19 PM
  5. Trouble sending mail from Outlook
    By czaveri in forum Users
    Replies: 15
    Last Post: 07-24-2006, 11:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •