From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 23 01:20:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 768EF106566B for ; Wed, 23 Dec 2009 01:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 39CA78FC17 for ; Wed, 23 Dec 2009 01:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBN1K1lY045466 for ; Wed, 23 Dec 2009 01:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBN1K1CV045465; Wed, 23 Dec 2009 01:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 23 Dec 2009 01:20:01 GMT Resent-Message-Id: <200912230120.nBN1K1CV045465@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ben Jackson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FE98106566C for ; Wed, 23 Dec 2009 01:11:55 +0000 (UTC) (envelope-from ben@ben.com) Received: from kronos.home.ben.com (kronos.home.ben.com [71.117.242.19]) by mx1.freebsd.org (Postfix) with ESMTP id 80DA78FC14 for ; Wed, 23 Dec 2009 01:11:55 +0000 (UTC) Received: from kronos.home.ben.com (localhost [127.0.0.1]) by kronos.home.ben.com (8.14.3/8.14.3) with ESMTP id nBN1Bsjq003087 for ; Tue, 22 Dec 2009 17:11:54 -0800 (PST) Received: (from bjj@localhost) by kronos.home.ben.com (8.14.3/8.14.3/Submit) id nBN1BsKE003086; Tue, 22 Dec 2009 17:11:54 -0800 (PST) (envelope-from bjj) Message-Id: <200912230111.nBN1BsKE003086@kronos.home.ben.com> Date: Tue, 22 Dec 2009 17:11:54 -0800 (PST) From: Ben Jackson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/141910: sysutils/munin-node bug with reset stat for 'netstat' plugin X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ben Jackson List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 01:20:01 -0000 >Number: 141910 >Category: ports >Synopsis: sysutils/munin-node bug with reset stat for 'netstat' plugin >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 23 01:20:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ben Jackson >Release: FreeBSD 7.2-STABLE amd64 >Organization: >Environment: System: FreeBSD kronos.home.ben.com 7.2-STABLE FreeBSD 7.2-STABLE #2: Tue Sep 15 22:53:16 PDT 2009 bjj@kronos.home.ben.com:/usr/obj/usr/src/sys/GENERIC amd64 In the 'netstat' plugin there's an awk script to extract the 'reset' count from netstat -s. Unfortunately there are two lines with 'reset' and when both of those are reported it confuses some other part of the stats gathering and produces an ever growing graph line: kronos /usr/local/share/munin/plugins # /usr/bin/netstat -s | grep reset 6645 reset 0 stream reset timers fired I just threw in a '$' so the pattern is 'reset$': kronos /usr/local/share/munin/plugins # tail -2 netstat /usr/bin/netstat -s | awk '/connection requests/ { print "active.value " $1 } /connection accepts/ { print "passive.value " $1 } /bad connection/ { print "failed.value " $1 } /reset$/ { print "resets.value " $1 } /connections established/ { print "established.value " $1 }' >Description: >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: