DenRaf's Blog

  • Contact

Contact
View Raf Nijskens's profile on LinkedIn
OpenSource
Linux
Powered by Drupal, an open source content management system
Get Firefox
Fosdem
Visit Inuits Technical home

Locations of visitors to this page

Tags in TagCloud

5 6 ADP1 Android apache automaticmenu caching cardreader cats Centos closed source cron Debian dell Dell R200 deploy Dream driver drupal drupalcron eclair Fosdem funambol mysql node_page O2Micro old openfire OpenID OSD otrs password trigger password_trigger plutado Ports presentation recover response header rpm script svn sync syncml tagadelic taxonomy terminal logging theme ubuntu update upgrade user filter user_import virt-manager wordpress wordpress 2.3 wp2drupal xmlsitemap zabbix zimbra Zimbra LDAP
more tags
Home

zimbra

Zimbra monitoring with zabbix

Submitted by DenRaf on Fri, 12/04/2009 - 17:37
  • [View]

At our company we run zimbra as our collaboration tool and we use zabbix as our monitoring solution. Almost every service we have is monitored nicely, but unfortunately our zimbra was not. Because zimbra exists out of several services you want to know the status of every service. For that I wrote a little script.

First of all the zabbix agent configuration:


UserParameter=zimbra.clamav,/etc/zabbix/check_zimbra.sh antivirus
UserParameter=zimbra.spam,/etc/zabbix/check_zimbra.sh antispam
UserParameter=zimbra.logger,/etc/zabbix/check_zimbra.sh logger
UserParameter=zimbra.mailbox,/etc/zabbix/check_zimbra.sh mailbox
UserParameter=zimbra.mta,/etc/zabbix/check_zimbra.sh mta
UserParameter=zimbra.snmp,/etc/zabbix/check_zimbra.sh snmp
UserParameter=zimbra.spell,/etc/zabbix/check_zimbra.sh spell
UserParameter=zimbra.stats,/etc/zabbix/check_zimbra.sh stats

This use the custom check_zimbra:

#!/bin/bash

check=$1
maxage=30
file='/tmp/zimbra_status'

#check if file exists
if [[ -e $file ]]
then
OLD=`stat -c %Z $file`
NOW=`date +%s`

export PATH=$PATH:/opt/zimbra/bin
# if older then maxage, update file
if [[ `expr $NOW - $OLD` -gt $maxage ]]
then
sudo -u zimbra zmcontrol status > $file
fi

else

export PATH=$PATH:/opt/zimbra/bin
sudo -u zimbra zmcontrol status > $file
fi

AVSTATUS=`cat $file |grep $check|awk '{ print $2 }'`

if [[ $AVSTATUS != "Running" ]]; then
echo 0
fi

echo 1

As you can see we store the output of the slow zmcontrol in a file for a configurable amount of time. This way you can cache that output and win some time.
For this to run you need to add the next rule to the /etc/sudoers file:


zabbix ALL=(zimbra) NOPASSWD:/opt/zimbra/bin/zmcontrol

  • DenRaf's blog
  • 3 comments
Tags:
  • SysAdmin
  • zabbix
  • zimbra

RE: Funambol connector Zimbra

Submitted by DenRaf on Mon, 04/07/2008 - 19:11
  • [View]

I can now happily report that it works. It ain't perfect yet, a reoccurring event is not synced. But it's just disabled in the 0.97 version of the connector.

So now you can sync your mails, contacts and calendar items without any problem. Zimbra OS is now a full alternative for some expensive piece of crappy software sold by some redmond company.

  • DenRaf's blog
  • 2 comments
Tags:
  • funambol
  • syncml
  • zimbra

Funambol connector Zimbra

Submitted by DenRaf on Tue, 03/04/2008 - 07:34
  • [View]

wolfroma released a funambol connector for Zimbra (link). It's reported to work with Funambol 6.5, Zimbra 5 and a Nokia E61.

I installed it already, but for me it didn't work just out of the box. If I find time, I'll get to the debugging part and give an update here

  • DenRaf's blog
  • Add new comment
Tags:
  • funambol
  • syncml
  • zimbra
Syndicate content

Guided search

Click a term to initiate a search.

Categories

  • drupal (26)
  • Linux (6)
  • SysAdmin (6)
  • Uncategorized (5)
  • Linux-tools (3)

Date authored

  • 2010 (5)
  • 2009 (10)
  • 2008 (27)
  • 2007 (11)

TagCloud

  • drupal (26)
  • Ports (7)
  • cron (6)
  • drupalcron (6)
  • 6 (3)
  • OSD (3)
  • zimbra (3)
  • cats (2)
  • Fosdem (2)
  • funambol (2)
  • more...

Recent blog posts

  • OSD2010: Day 2
  • OSD2010: Day 1
  • OSD2010: Pre notes
  • Howto: Android 2.1 on G1/ADP1/Dream
  • Updated look
  • Zimbra monitoring with zabbix
  • New module: Node Page Template
  • AutomaticMenu module for drupal 6
  • Drupal synchronisation
  • Imagefield_gallery module for drupal 6
more

Recent comments

  • Please help me
    3 weeks 1 day ago
  • This is so dumb
    4 weeks 18 hours ago
  • I've installed it on my
    7 weeks 1 hour ago
  • I am also having the same
    8 weeks 5 days ago
  • No Video
    9 weeks 3 days ago
  • Good, just finished the
    10 weeks 4 days ago
  • Screenshot Item Trigger
    10 weeks 6 days ago
  • You don't need 2 because
    15 weeks 5 days ago
  • Oracle plugin
    15 weeks 6 days ago
  • Thanks much for providing
    16 weeks 2 days ago

Syndicate

Syndicate content
I love Smashing Magazine!
Fervens Drupal theme by Leow Kah Thong. Designed by Design Disease and brought to you by Smashing Magazine.