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-24-2011, 07:08 AM
Starter Member
 
Posts: 2
Thumbs up Monitoring Zimbra servers using Nagios

Good Afternoon!

I am looking to monitor our Zimbra servers using Nagios 3.2.3

* running services
* diskspace
* mail queues (inbound/outbound/deferred)

Any tips/tricks about getting this setup would be greatly appreciated..



I currently have Nagios Server 3.2.3 setup on a Ubuntu 10.04 Server monitoring 40+ network devices.

On the Mail server side I am only monitoring the following (but would like to expand the monitoring to detect intrusions or malfunctions)
* Root partition size
* SMTP
* Total Processes
* PING

I tried the following:
edit
vi /usr/local/nagios/libexec/utils.pm

remove
$PATH_TO_MAILQ = "/usr/bin/mailq";

Add
$PATH_TO_MAILQ ="/opt/zimbra/postfix/sbin/mailq";

Test
/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_mailq xxx.xxx.xxx.xxx 1 -w 100 -c 150

Error
root@Nagi:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_mailq 10.0.0.251 -w 100 -c 150
ERROR: /opt/zimbra/postfix/sbin/mailq is not executable by (uid 0:gid(0 0))

/etc/sudoers
-r--r----- 1 root root 811 2011-03-24 15:34 /etc/sudoers


((and this is where I am currently stuck --> I'd GREATLY Appreciate your help))

Last edited by Blu3yy; 03-24-2011 at 07:17 AM.. Reason: add more information
Reply With Quote
  #2 (permalink)  
Old 03-24-2011, 08:09 AM
Advanced Member
 
Posts: 205
Default

What version of zimbra?

Using 6.0.x your steps work for me.

Code:
root@email:/opt/zimbra/postfix/sbin#mailq
/var/spool/mqueue is empty
                Total requests: 0


root@email:/usr/local/nagios/libexec#/usr/local/nagios/libexec/check_mailq -w 100 -c 300
OK: mailq is empty|unsent=0;100;300;0
On my system "/opt/zimbra/postfix/sbin/mailq" is a link to the current version of postfix sendmail with 777 permissions and root root ownership.
Reply With Quote
  #3 (permalink)  
Old 03-24-2011, 08:16 AM
Starter Member
 
Posts: 2
Default

@jrefl5 - thanks for you reply.

I'm using Zimbra 6.0.1 Mail Servers - I am trying to monitor my Zimbra servers from my Nagios Box (not on the same server - sorry I should have specified this).
Reply With Quote
  #4 (permalink)  
Old 03-24-2011, 03:03 PM
Advanced Member
 
Posts: 205
Default

I tested from both the local box, and from my Nagios box.

Both appear to work.
Check perms for mailq link in /opt/zimbra/postfix
Code:
ls -l /opt/zimbra/postfix/sbin/mailq
lrwxrwxrwx 1 root root 53 Nov 23 06:28 /opt/zimbra/postfix/sbin/mailq ->
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.