From nobody@FreeBSD.org  Mon Oct 10 13:53:59 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D622E1065672
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Oct 2011 13:53:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id C6A878FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Oct 2011 13:53:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9ADrx6P037380
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Oct 2011 13:53:59 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p9ADrxUd037347;
	Mon, 10 Oct 2011 13:53:59 GMT
	(envelope-from nobody)
Message-Id: <201110101353.p9ADrxUd037347@red.freebsd.org>
Date: Mon, 10 Oct 2011 13:53:59 GMT
From: Vincent Bolinard <vinzstyle@free.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Zabbix_agentd opens a lot of files
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: ports@christianserving.org

>Number:         161462
>Category:       ports
>Synopsis:       net-mgmt/zabbix-agent: Zabbix_agentd opens a lot of files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    scheidell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 10 14:00:19 UTC 2011
>Closed-Date:    Tue Jul 03 17:55:41 UTC 2012
>Last-Modified:  Tue Jul 03 17:55:41 UTC 2012
>Originator:     Vincent Bolinard
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Sun Mar 13 04:46:55 CET 2011     root@sd-14457:/usr/obj/usr/src/sys/CLASSIC  i386
>Description:
If I run zabbix_agentd inside a jail, afer a few hours, the kern.maxfiles limit is reached.

lsof -u zabbix returns a lot of lines like this (actually 2949):

zabbix_ag 11997 zabbix   68u  IPv4 0xce923278      0t0      TCP *:* (CLOSED)

It seems that those TCP connections don't get closed correctly or something...
The problem does not occur on the host system where zabbix_agentd is also running.

zabbix_agentd comes from the ports collection : zabbix-agent-1.8.3,2

Thanks for your help :)
>How-To-Repeat:
Let zabbix_agentd running inside a jail for some time.
>Fix:


>Release-Note:
>Audit-Trail:

From: Jim Riggs <ports@christianserving.org>
To: bug-followup@FreeBSD.org,
 vinzstyle@free.fr
Cc:  
Subject: Re: ports/161462: Zabbix_agentd opens a lot of files
Date: Mon, 10 Oct 2011 14:25:49 -0500

 1.8.3 is fairly old. Can you try with a newer version? 1.8.5 is in =
 ports, and a patch for 1.8.8 is available in ports/161460.
 

From: vinzstyle@free.fr
To: bug-followup@freebsd.org
Cc: vinzstyle@free.fr
Subject: Re: ports/161462: net-mgmt/zabbix-agent: Zabbix_agentd opens a lot
 of files
Date: Wed, 12 Oct 2011 11:53:29 +0200 (CEST)

 Hi,
 
 I tried in another jail with zabbix-agent-1.8.5_1,2 (from the ports collection) , but it's still the same...
 
 There're 13907 opened files now. I have to reboot the zabbix agent before it reaches the kern.maxfiles limit.
 
 Thanks.
 
 Vincent.

From: Vincent Bolinard <Vinzstyle@free.fr>
To: bug-followup@freebsd.org,
 vinzstyle@free.fr
Cc:  
Subject: Re: ports/161462: net-mgmt/zabbix-agent: Zabbix_agentd opens a lot of files
Date: Tue, 1 Nov 2011 21:47:50 +0100

 Same problem with zabbix-agent-1.8.8,2.

From: Vincent Bolinard <Vinzstyle@free.fr>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/161462: net-mgmt/zabbix-agent: Zabbix_agentd opens a lot of files
Date: Wed, 25 Jan 2012 22:28:25 +0100

 Hi,
 
 same problem with zabbix-agent-1.8.10,2
State-Changed-From-To: open->feedback 
State-Changed-By: crees 
State-Changed-When: Thu Feb 9 20:22:20 UTC 2012 
State-Changed-Why:  
Hi Jim, 

You won't have received Vincent's followups to this PR, because GNATS hasn't notified you of responses.  You will receive further followups however-- I've added you to X-GNATS-Notify here. 

Perhaps you'll have some luck contacting upstream about this bug if you can't fix it yourself, just let me know if you would like any help. 


Responsible-Changed-From-To: freebsd-ports-bugs->crees 
Responsible-Changed-By: crees 
Responsible-Changed-When: Thu Feb 9 20:22:20 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161462 

From: Vinz <vinz@vinzland.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/161462: net-mgmt/zabbix-agent: Zabbix_agentd opens a lot of files
Date: Thu, 09 Feb 2012 22:12:33 +0100

 Hi,
 
 I have commented out the "SourceIP" line in the configuration file and 
 that solved the problem. But it's not normal these connexions don't get 
 closed... imho.

From: Chris Rees <utisoft@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/161462: net-mgmt/zabbix-agent: Zabbix_agentd opens a lot of files
Date: Thu, 16 Feb 2012 09:31:23 +0000

 That's excellent, thanks for tracking it down.
 
 Jim, please would you report it to upstream?
 
 Chris

From: Michael Scheidell <scheidell@freebsd.org>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/161462: net-mgmt/zabbix-agent: Zabbix_agentd opens a lot
 of files
Date: Fri, 1 Jun 2012 10:48:00 -0400

 Fyi:  zabbix2* ports are currently being worked on.
 pr ports/168469
 pr ports/168509
 
 -- 
 Michael Scheidell, CTO
  >*| * SECNAP Network Security Corporation
 d: +1.561.948.2259
 w: http://people.freebsd.org/~scheidell
Responsible-Changed-From-To: crees->scheidell 
Responsible-Changed-By: scheidell 
Responsible-Changed-When: Fri Jun 1 14:57:12 UTC 2012 
Responsible-Changed-Why:  
Taking this to follow the zabbix2* port to make sure it fixes this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161462 
State-Changed-From-To: feedback->suspended 
State-Changed-By: scheidell 
State-Changed-When: Sun Jun 3 21:59:41 UTC 2012 
State-Changed-Why:  
Suspended waiting for zabbix2* port 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161462 
State-Changed-From-To: suspended->closed 
State-Changed-By: scheidell 
State-Changed-When: Tue Jul 3 17:55:40 UTC 2012 
State-Changed-Why:  
See pr ports/168509 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161462 
>Unformatted:
