Results 1 to 5 of 5

Thread: How to periodivcaly test if Zimbra is alive

  1. #1
    alimovz is offline Senior Member
    Join Date
    Nov 2006
    Posts
    52
    Rep Power
    8

    Question How to periodivcaly test if Zimbra is alive

    Hi,

    I am trying to come up with a Nagios plugin to test if Zimbra is functioning at any given time. For instance I need to come up with a script that will simulate a user login into the Zimbra CS. Since Zimbra uses Ajax to authenticate users, that task proved to be quite tricky.

    My question is: is there already some tools that can do this for me? Is there any diagnostic tools for Zimbra out there? Is there some kinda failure reporting system?

    Thanks.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Have a look at the scripts that Zimbra uses to check if it's alive. You could also use SNMP traps.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    LMStone's Avatar
    LMStone is offline Moderator
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,366
    Rep Power
    10

    Default OK, But Where Are The Scripts?

    Bill,

    We too are looking at Nagios for monitoring our Zimbra server. Please, where are the scripts to which you refer?

    Thanks,
    Mark

  4. #4
    trapanator's Avatar
    trapanator is offline Loyal Member
    Join Date
    Oct 2006
    Posts
    78
    Rep Power
    8

    Default

    I've done this script:

    Code:
    zimbra@grass:~$ cat /opt/zimbra/check/checkzimbra.pl
    #!/usr/bin/perl
    # Checks if Zimbra services are up and running
    
    print "Checking...\n";
    $ris = `zmcontrol status | grep -i "not running"`;
    print "$ris\n";
    print "Length: ".length ($ris)."\n";
    if (length $ris != 0) {
            # Restarting zimbra...
            $ris = `zmcontrol start`;
        print $ris;
    }
    and put it CRONTAB to execute every 5 minutes:

    Code:
    */5 * * * * /opt/zimbra/check/checkzimbra.pl
    The Zimbra is quite instable and this resolves partially the problem.

  5. #5
    illc0mm is offline Junior Member
    Join Date
    Jan 2006
    Posts
    9
    Rep Power
    9

    Default

    While that script will test if Zimbra is running on the local machine. I'm with alimovz in that I want to test it from the user side.

    I actually want to go a step further and send an e-mail as a particular user through Zimbra, to gmail, and verify receipt. I know this is beyond the scope here, but being able to test end to end connectivity is the best method in my opinion.

    So, just as a start, is there a method, through http(s) to log a user in and verify they can successfully connect? I don't need a script, just need an easy way to test this.

    For web mail, and the Outlook connector.

    If not, I'll be working on this and will post my results.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 AM
  2. upgrade woes -made into new thread
    By JustinHarlow in forum Installation
    Replies: 18
    Last Post: 06-08-2007, 12:11 PM
  3. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  4. Logger
    By jholder in forum Installation
    Replies: 24
    Last Post: 03-31-2006, 11:50 AM
  5. Monitoring : Data not yet avalaible
    By s3nz3x in forum Installation
    Replies: 7
    Last Post: 11-30-2005, 07:18 PM

Posting Permissions

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