Difference between revisions of "Monitoring Zimbra with Nagios"

Jump to navigation Jump to search
m
→‎Clam AV Service: Updated for Zimbra v8
(Added Spellcheck and DNS checks)
m (→‎Clam AV Service: Updated for Zimbra v8)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
This page covers Zimbra application specific monitoring checks, OS specific checks (eg low disk space, or high CPU) are not included.  The majority of it was gleamed from this forum thread - http://www.zimbra.com/forums/administrators/20029-zimbra-monitoring-nagios.html
This page covers Zimbra application specific monitoring checks, OS specific checks (eg low disk space, or high CPU) are not included.  The majority of it was gleamed from this forum thread - http://www.zimbra.com/forums/administrators/20029-zimbra-monitoring-nagios.html
__TOC__


All my Zimbra specific checks are applied to specific hosts via a <code>zimbra-servers</code> hostgroup.  Create a group in your <code>hostgroups_nagios2.cfg</code> file to contain you Zimbra hosts, for example...
All my Zimbra specific checks are applied to specific hosts via a <code>zimbra-servers</code> hostgroup.  Create a group in your <code>hostgroups_nagios2.cfg</code> file to contain you Zimbra hosts, for example...
Line 98: Line 100:
Checks that the Clam Anti Virus service is running. Requires [[Nagios#NRPE|NRPE]] to be installed and running 1st.
Checks that the Clam Anti Virus service is running. Requires [[Nagios#NRPE|NRPE]] to be installed and running 1st.


On the Zimbra server, add the following to <code>/etc/nagios/nrpe.cfg</code>
On the Zimbra server, '''if you're running Zimbra v7 or earlier''', add the following to <code>/etc/nagios/nrpe.cfg</code>
  command[check_clamd]=/usr/lib/nagios/plugins/check_clamd -H localhost
  command[check_clamd]=/usr/lib/nagios/plugins/check_clamd -H localhost
On the Zimbra server, '''if you're running Zimbra v8''', add the following to <code>/etc/nagios/nrpe.cfg</code>
command[check_clamd]=/usr/lib/nagios/plugins/check_clamd /opt/zimbra/data/clamav/clamav.sock


Add a new service (on Nagios server)...
Add a new service (on Nagios server)...
Line 139: Line 144:


=== LMTP ===
=== LMTP ===
Checks that [[Acronymns#L|LMTP]] (used internal routing of emails through Clam, to mailboxes, etc) is functioning.  Requires [[Nagios#NRPE|NRPE]] to be installed and running 1st
Checks that [[Acronyms#L|LMTP]] (used internal routing of emails through Clam, to mailboxes, etc) is functioning.  Requires [[Nagios#NRPE|NRPE]] to be installed and running 1st


On the Zimbra server, add the following to <code>/etc/nagios/nrpe.cfg</code>.  Note that you need to update the FQDN for your server in the expected return field.
On the Zimbra server, add the following to <code>/etc/nagios/nrpe.cfg</code>.  Note that you need to update the FQDN for your server in the expected return field.
Line 151: Line 156:
         check_command          check_nrpe!check_zimbra_lmtp
         check_command          check_nrpe!check_zimbra_lmtp
  }
  }


=== Spellcheck ===
=== Spellcheck ===

Navigation menu