Monitoring Zimbra Mail queue's with Nagios
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))
Fix Error
edit
vi /etc/sudoers
nagios ALL=(zimbra) NOPASSWD: /usr/local/nagios/libexec/check_clamav.pl
nagios ALL=(zimbra) NOPASSWD: /usr/local/nagios/libexec/check_mail
NRPE Checks
NRPE
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'
check_clamav.pl
command[check_zimbra_clamd_sig]=sudo -u zimbra /usr/lib/nagios/plugins/contrib/check_clamav.pl -w 3 -c 5
/etc/sudoers
nagios ALL=(zimbra) NOPASSWD: /usr/lib/nagios/plugins/contrib/check_clamav.pl
Validate SSL Cert
service_description Zimbra SSL Certificate
command_line $USER1$/check_http -S -H zimbra.example.com -C 10
Check LDAP
service_description Zimbra LDAP
check_command check_ldap_with_HOST!zimbra.example.com!dc=de
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2011
(43)
-
▼
March
(12)
- Check Path...............
- SSH setup - between 2 linux boxes without passwords
- Nagios Error: Check command not defined anywhere!
- Nagios - Examples check_disk_remote
- Nagios - Smartmon monitoring
- Nagios Error: Host has no default contacts or cont...
- Nagios error: "Invalid_Max_Check_Attempts"
- Nagios - Monitoring Eventlogs on Windows Servers (...
- Using Nagios to monitor Zimbra Servers
- Event ID 13508, Source: NtFrs
- Cisco Router Startup
- Cisco Router - Online Simulator
-
▼
March
(12)
Could you possibly elaborate on the LDAP check? I can't seem to get it working. Your other information has proven to be quite helpful and useful.
ReplyDelete