[Pkg-nagios-devel] Bug#304214: marked as done (nagios-plugins: check_ssh does not properly close tcp connection)

Debian Bug Tracking System owner at bugs.debian.org
Mon Oct 24 20:48:41 UTC 2005


Your message dated Mon, 24 Oct 2005 16:27:40 -0400
with message-id <20051024202740.GA4308 at seanius.net>
and subject line fixed in latest version
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Apr 2005 18:02:20 +0000
>From seanius at debian.org Mon Apr 11 11:02:20 2005
Return-path: <seanius at debian.org>
Received: from dsl092-235-113.phl1.dsl.speakeasy.net (sativa.seanius.net) [66.92.235.113] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DL3Ep-0005iT-00; Mon, 11 Apr 2005 11:02:20 -0700
Received: by sativa.seanius.net (Postfix, from userid 1000)
	id 05C8615834; Mon, 11 Apr 2005 14:01:49 -0400 (EDT)
Content-Type: multipart/mixed; boundary="===============0175293890=="
MIME-Version: 1.0
From: Sean Finney <seanius at debian.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: nagios-plugins: check_ssh does not properly close tcp connection
X-Mailer: reportbug 3.8
Date: Mon, 11 Apr 2005 14:01:48 -0400
Message-Id: <20050411180149.05C8615834 at sativa.seanius.net>
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============0175293890==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: nagios-plugins
Version: 1.3.1.0-8
Severity: minor
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi guido,

i noticed today that check_ssh doesn't close the tcp sessions that it
opens, resulting in messages like this:

Apr 11 13:53:34 cork sshd[31726]: fatal: Read from socket failed: Connection reset by peer

where in the old 1.3 series, you'd see stuff like:

Apr 11 13:56:34 cork sshd[3240]: Connection closed by x.y.64.10

the attached patch properly closes the connection.  i've also reported
this upstream, as i'm now on the upstream development team.


	sean

- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages nagios-plugins depends on:
ii  dnsutils               1:9.2.3-3         Clients provided with BIND
ii  fping                  2.4b2-to-ipv6-7   Send ICMP ECHO_REQUEST packets to 
ii  host                   20000331-9        utility for querying DNS servers
ii  libc6                  2.3.2.ds1-11      GNU C Library: Shared libraries an
ii  libldap2               2.1.29-2          OpenLDAP libraries
ii  libmysqlclient10       3.23.56-2         LGPL-licensed client library for M
ii  libnet-snmp-perl       4.0.3-1           Script SNMP connections
ii  libpq3                 7.4.2-3           Shared library libpq.so.3 for Post
ii  libssl0.9.7            0.9.7d-1          SSL shared libraries
ii  netkit-ping [ping]     0.10-10           The ping utility from netkit
ii  ntp-simple             1:4.1.2a-2        NTP v4 daemon for simple systems
ii  ntpdate                1:4.2.0a+stable-2 The ntpdate client for setting sys
ii  procps                 1:3.2.5-1         /proc file system utilities
ii  qstat                  2.7-1             Command-line tool for querying qua
ii  radiusclient1          0.3.2-8           /bin/login replacement which uses 
ii  smbclient              3.0.10-1          a LanManager-like simple client fo
ii  snmp                   5.1.2-6           NET SNMP (Simple Network Managemen

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCWruMynjLPm522B0RAi1+AJ4pWDZDnaTWKhv+Shrft9TgfBUL9QCfeQYO
T841qjcHbTH604Med2g/OUY=
=GEpT
-----END PGP SIGNATURE-----

--===============0175293890==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="check_ssh.diff"

Index: check_ssh.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ssh.c,v
retrieving revision 1.26
diff -u -r1.26 check_ssh.c
--- check_ssh.c	25 Dec 2004 23:17:44 -0000	1.26
+++ check_ssh.c	11 Apr 2005 18:01:24 -0000
@@ -240,6 +240,7 @@
 		printf
 			(_("SSH OK - %s (protocol %s)\n"),
 			 ssh_server, ssh_proto);
+		close(sd);
 		exit (STATE_OK);
 	}
 }

--===============0175293890==--

---------------------------------------
Received: (at 304214-close) by bugs.debian.org; 24 Oct 2005 20:28:11 +0000
>From seanius at seanius.net Mon Oct 24 13:28:11 2005
Return-path: <seanius at seanius.net>
Received: from dsl092-235-113.phl1.dsl.speakeasy.net (sativa.seanius.net) [66.92.235.113] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EU8vT-0002zW-00; Mon, 24 Oct 2005 13:28:11 -0700
Received: by sativa.seanius.net (Postfix, from userid 1000)
	id 5F00A15834; Mon, 24 Oct 2005 16:27:40 -0400 (EDT)
Date: Mon, 24 Oct 2005 16:27:40 -0400
From: sean finney <seanius at debian.org>
To: 304214-close at bugs.debian.org
Subject: fixed in latest version
Message-ID: <20051024202740.GA4308 at seanius.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf"
Content-Disposition: inline
User-Agent: Mutt/1.5.5.1+cvs20040105i
Delivered-To: 304214-close at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02


--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Version: 1.4.2-3

looks like this problem is now fixed.

	sean

--=20

--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDXUO8ynjLPm522B0RAo3fAJ9zMnfnq6erlOpZBgWePhpsMyTRPgCfbKZE
S9vn9FXsLPcXrJHHUh6Vx2s=
=cTp2
-----END PGP SIGNATURE-----

--zhXaljGHf11kAtnf--



More information about the Pkg-nagios-devel mailing list