zimbra
Zimbra monitoring with zabbix
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
RE: Funambol connector Zimbra
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.
Funambol connector Zimbra
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



Recent comments
3 weeks 4 days ago
4 weeks 3 days ago
7 weeks 2 days ago
9 weeks 1 day ago
9 weeks 5 days ago
10 weeks 6 days ago
11 weeks 1 day ago
16 weeks 15 hours ago
16 weeks 2 days ago
16 weeks 4 days ago