Hello, I'm using a nagios check to monitor dovecot status, since dovecot v2 I see those syslog messages on every nagios check: pop3-login: Aborted login (no auth attempts in 0 secs) imap-login: Aborted login (no auth attempts in 0 secs) I tried to avoid those messages sending a logout string: check_imap -H localhost -e 'OK' -s 'a logout' check_pop -H localhost -e 'OK' -s 'quit' but now I get imap-login: Disconnected (no auth attempts in 0 secs) pop3-login: Disconnected (no auth attempts in 0 secs) what can I do to avoid a log message on every nagios check? thanks! Llu?s
Marcin Mirosław
2013-Jul-10 09:15 UTC
[Dovecot] avoid log message when using nagios check
W dniu 10.07.2013 10:59, lluis pisze:> Hello, > I'm using a nagios check to monitor dovecot status, since dovecot v2 I > see those syslog messages on every nagios check: > > pop3-login: Aborted login (no auth attempts in 0 secs) > imap-login: Aborted login (no auth attempts in 0 secs) > > I tried to avoid those messages sending a logout string: > > check_imap -H localhost -e 'OK' -s 'a logout' > check_pop -H localhost -e 'OK' -s 'quit' > > but now I get > > imap-login: Disconnected (no auth attempts in 0 secs) > pop3-login: Disconnected (no auth attempts in 0 secs) > > what can I do to avoid a log message on every nagios check?Hi Lluis! Maybe just filter it in your syslog? Marcin
Am 10.07.2013 10:59, schrieb lluis:> Hello, > I'm using a nagios check to monitor dovecot status, since dovecot v2 I > see those syslog messages on every nagios check: > > pop3-login: Aborted login (no auth attempts in 0 secs) > imap-login: Aborted login (no auth attempts in 0 secs) > > I tried to avoid those messages sending a logout string: > > check_imap -H localhost -e 'OK' -s 'a logout' > check_pop -H localhost -e 'OK' -s 'quit' > > but now I get > > imap-login: Disconnected (no auth attempts in 0 secs) > pop3-login: Disconnected (no auth attempts in 0 secs) > > what can I do to avoid a log message on every nagios check?Just do a complete login/logout sequence. I have developed some perl scripts to do so. This is fine for the nagios checks, but we are facing similar problems with our loadbalancer, which is just doing TCP Healthchecks on the IMAP/POP3/SIEVE ports, so being able to disable the warning for trusted networks would be really helpful. Regards Daniel -- Dipl.-Inf. Daniel Parthey System Engineer Metaways Infosystems GmbH Pickhuben 2, D-20457 Hamburg E-Mail: d.parthey at metaways.de Web: http://www.metaways.de Tel: +49 (0)40 317031-537 Fax: +49 (0)40 317031-937 Metaways Infosystems GmbH - Sitz: D-22967 Tremsb?ttel Handelsregister: Amtsgericht L?beck HRB 4508 AH Gesch?ftsf?hrung: Hermann Thaele, L?der-H.Thaele -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_imap_login URL: <http://dovecot.org/pipermail/dovecot/attachments/20130710/1a7aa1ba/attachment.pl> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_pop3_login URL: <http://dovecot.org/pipermail/dovecot/attachments/20130710/1a7aa1ba/attachment-0001.pl> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_sieve_login URL: <http://dovecot.org/pipermail/dovecot/attachments/20130710/1a7aa1ba/attachment-0002.pl>