Hi Marc, On Sunday, 2. January 2011, Marc Haber wrote: > On Sun, Jan 02, 2011 at 11:18:08PM +0100, Jan Wagner wrote: > > On Tuesday, 28. December 2010, Marc Haber wrote: > > > I am seeing this as well on lenny as on sid: > > > > > > $ /usr/lib/nagios/plugins/check_smtp --host q.bofh.de --verbose > > > HELOCMD: HELO nechayev > > > 220 q.bofh.de ESMTP Exim 4.72 Tue, 28 Dec 2010 15:54:43 +0100 > > > CRITICAL - Socket timeout after 10 seconds > > > > > > What's going on here? > > > > $ /usr/lib/nagios/plugins/check_smtp --host q.bofh.de --verbose -t 30 > > HELOCMD: HELO nagios > > 220 q.bofh.de ESMTP Exim 4.72 Sun, 02 Jan 2011 22:59:58 +0100 > > sent QUIT > > received 221 q.bofh.de closing connection > > > > SMTP OK - 20,091 sec. response time, 221 q.bofh.de closing connection > > > > |time=20,091494s;;;0,000000 > > > > As stated on IRC, your MTA seems to delay the answer ... raising the > > timeout seems to fix the issue. > > As stated MULTIPLE TIMES on IRC, the host running the nagios plugin is > whitelisted with the MTA and is not subject to the delays that you > encounter when testing from a non-whitelisted host. > > I offered you on IRC multiple times to whitelist your IP as well but > you didn't react to that offer.
Trying the test from a system which returns a fqdn via HELO, which hostname has also a AAAA record, works as expected: $ /usr/lib/nagios/plugins/check_smtp --host q.bofh.de --verbose HELOCMD: HELO bb.cyconet.org 220 q.bofh.de ESMTP Exim 4.72 Sun, 02 Jan 2011 23:41:45 +0100 sent QUIT received 221 q.bofh.de closing connection SMTP OK - 0.126 sec. response time, 221 q.bofh.de closing connection |time=0.125578s;;;0.000000 So it's really likely that there is a configuration problem at the remote MTA. With kind regards, Jan. -- Never write mail to <w...@spamfalle.info>, you have been warned! -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++ PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++ ------END GEEK CODE BLOCK------
signature.asc
Description: This is a digitally signed message part.