[Pkg-nagios-devel] Bug#722576: nagios-plugins: check_imap hangs until timeout occur

Jörgen Hägg jorgen.hagg at axis.com
Thu Sep 12 12:32:21 UTC 2013


Package: nagios-plugins
Version: 1.4.16+git20130911-1
Severity: normal


The latest versions of check_imap have some problem with
reading from the stream, it seems as if it does not recognize EOL
correctly, therefore it hangs until timeout occurs.

A workaround is to maximize the received number of characters
with -m. This is not a practial solution, but it works and may perhaps
shed some light on the real issue.

Running 'check_imap -v -H HOSTNAME'
gives this error after timeout:

--------------------
Using service IMAP
Port: 143
flags: 0x6
Quit string: a1 LOGOUT

server_expect_count: 1
	0: * OK
	CRITICAL - Socket timeout after 10 seconds
--------------------

Version 1.4.16-3 works just fine:

--------------------
Using service IMAP
Port: 143
flags: 0x6
Quit string: a1 LOGOUT

server_expect_count: 1
	0: * OK
	received 110 bytes from host
	#-raw-recv-------#
	* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS LOGINDISABLED] Dovecot ready.

	#-raw-recv-------#
	looking for [* OK] in beginning of [* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS LOGINDISABLED] Dovecot ready.]
	found it
	IMAP OK - 0.001 second response time on port 143 [* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS LOGINDISABLED] Dovecot ready.]|time=0.001445s;;;0.000000;10.000000
--------------------


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nagios-plugins depends on:
ii  nagios-plugins-basic     1.4.16+git20130911-1
ii  nagios-plugins-standard  1.4.16+git20130911-1

nagios-plugins recommends no packages.

Versions of packages nagios-plugins suggests:
ii  nagios-plugins-contrib  8.20130824
pn  nagios3 | icinga        <none>

-- no debconf information



More information about the Pkg-nagios-devel mailing list