View Single Post
  #19 (permalink)  
Old 07-10-2009, 12:43 AM
jummo jummo is offline
Special Member
 
Posts: 113
Default

I use Zimbra with Zimbra Proxy on one host. Most of my checks are execute via NRPE from Nagios Addons.
Pieces of my nrpe.cfg file

Code:
command[check_zimbra_route_lookup_handler]=/usr/lib/nagios/plugins/check_http -H localhost -p 7072
command[check_zimbra_spell_checker]=/usr/lib/nagios/plugins/check_http -H localhost -p 7780
command[check_zimbra_pop3_real]=/usr/lib/nagios/plugins/check_pop -H localhost -p 7110
command[check_zimbra_pop3s_real]=/usr/lib/nagios/plugins/check_pop -H localhost -p 7995 -S
command[check_zimbra_imap_real]=/usr/lib/nagios/plugins/check_imap -H localhost -p 7143
command[check_zimbra_imaps_real]=/usr/lib/nagios/plugins/check_imap -H localhost -p 7993 -S
command[check_zimbra_mailq]=/usr/lib/nagios/plugins/check_mailq -w 100 -c 150 -M postfix
command[check_zimbra_clamd]=/usr/lib/nagios/plugins/check_clamd -H localhost
command[check_zimbra_mysql]=/usr/lib/nagios/plugins/check_mysql -s /opt/zimbra/db/mysql.sock
command[check_zimbra_mysql_logger]=/usr/lib/nagios/plugins/check_mysql -s /opt/zimbra/logger/db/mysql.sock
command[check_zimbra_amavisd]=/usr/lib/nagios/plugins/check_smtp -H localhost -p 10024 -e '220 [127.0.0.1] ESMTP amavisd-new service ready'
command[check_zimbra_lmtp]=/usr/lib/nagios/plugins/check_smtp -H localhost -p 7025 -e '220 zimbra.example.com Zimbra LMTP ready'
command[check_zimbra_postfix_amavis]=/usr/lib/nagios/plugins/check_smtp -H localhost -p 10025 -e '220 zimbra.example.com ESMTP Postfix'
To check the signature file version of ClamAV I use a modified version of check_clamav.pl, see attached. Maybe you have to change line 30 to fit in your Nagios Plugins environment. It must be run as user zimbra, therefore I use sudo.
nrpe.cfg
Code:
command[check_zimbra_clamd_sig]=sudo -u zimbra /usr/lib/nagios/plugins/contrib/check_clamav.pl -w 3 -c 5
/etc/sudoers
Code:
nagios ALL=(zimbra)     NOPASSWD: /usr/lib/nagios/plugins/contrib/check_clamav.pl
To check the validate of SSL Certificate.
services.cfg
Code:
service_description     Zimbra SSL Certificate
command_line    $USER1$/check_http -S -H zimbra.example.com -C 10
Check local Zimbra LDAP.
services.cfg
Code:
service_description     Zimbra LDAP
check_command   check_ldap_with_HOST!zimbra.example.com!dc=de
Screenshot of my Nagios
Attached Images
File Type: jpg nagios_screen_zimbra.jpg (135.8 KB, 578 views)
Attached Files
File Type: txt check_clamav_zimbra.pl.txt (6.8 KB, 103 views)
Reply With Quote