From owner-freebsd-questions@freebsd.org Sat Feb 25 07:46:28 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72974CEC9DF for ; Sat, 25 Feb 2017 07:46:28 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from zoom.lafn.org (zoom.lafn.org [108.92.93.123]) by mx1.freebsd.org (Postfix) with ESMTP id 5D48B19C1 for ; Sat, 25 Feb 2017 07:46:28 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from [10.0.1.251] (sermon-archive.info [71.177.216.148]) by zoom.lafn.org (Postfix) with ESMTPSA id EC79F34AF61; Fri, 24 Feb 2017 23:46:26 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: netstat interface output From: Doug Hardie In-Reply-To: Date: Fri, 24 Feb 2017 23:47:32 -0800 Cc: "freebsd-questions@freebsd.org Questions" Content-Transfer-Encoding: quoted-printable Message-Id: <26BD675C-79AE-410A-B26E-28528D13B52E@lafn.org> References: To: Adam Vande More X-Mailer: Apple Mail (2.3259) X-Virus-Scanned: clamav-milter 0.98 at zoom.lafn.org X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2017 07:46:28 -0000 > On 24 February 2017, at 20:43, Adam Vande More = wrote: >=20 > On Wed, Feb 22, 2017 at 5:38 PM, Doug Hardie wrote: > I am starting to develop a nagios check for errors on interfaces. = However, there are some issues with the entries in netstat that I don't = understand. Each interface has multiple entries: one for each address = and one for the link. It would seem to me that the link counts would be = the sum of the other address entries, but it is not. Often it is way = off. At first I thought it was possibly caused by overflows of the = counters since most systems have been running for months. However, = checking one system that was only up for one day, the ip4 count was = considerably larger than the link count. This is shown in one of the = examples below. >=20 > This is layer 2 vs layer 3 info. >=20 > To set static IP info see: >=20 > https://www.freebsd.org/doc/handbook/config-network-setup.html Thats how the static IPs are configured. They work fine after a reboot. = However, after awhile those addresses disappear. Therein lies the = problem. =E2=80=94 Doug