From owner-freebsd-current@FreeBSD.ORG Tue Feb 10 21:25:00 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 448009CD for ; Tue, 10 Feb 2015 21:25:00 +0000 (UTC) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 88820A6F for ; Tue, 10 Feb 2015 21:24:59 +0000 (UTC) Received: (qmail 96709 invoked by uid 89); 10 Feb 2015 21:24:58 -0000 Received: from unknown (HELO ?192.168.250.192?) (mg@grem.de@88.217.180.225) by mail.grem.de with ESMTPA; 10 Feb 2015 21:24:58 -0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: nagios vs w/uptime From: Michael Gmelin X-Mailer: iPhone Mail (12B466) In-Reply-To: <4A76A371-B573-4E62-BE78-94944963FFD0@freebsd.org> Date: Tue, 10 Feb 2015 22:24:59 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <54DA617A.4090309@wemm.org> <4A76A371-B573-4E62-BE78-94944963FFD0@freebsd.org> To: Marcel Moolenaar Cc: freebsd-current Current , Peter Wemm X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2015 21:25:00 -0000 > On 10 Feb 2015, at 22:17, Michael Gmelin wrote: >=20 >=20 >=20 >=20 >> On 10 Feb 2015, at 21:13, Marcel Moolenaar wrote: >>=20 >> [Moving to current@] >>=20 >>> On Feb 10, 2015, at 11:52 AM, Peter Wemm wrote: >>>=20 >>> Surprises: >>> * nagios doesn't like w / uptime anymore. libxo perhaps? >>=20 >> Seems most likely, although I haven=E2=80=99t seen any differences in out= put >> in my (admittedly limited) testing. >>=20 >> In what way does Nagios not like w/uptime? >> Any concrete errors, output or misbehavior? >> Ideally: can you reproduce the problem? >=20 >=20 > Just compared 10.1 to current, unmodified output looks the same, but pipel= ines don't work properly: >=20 > 10.1: > # uptime | wc > 1 12 68 >=20 > Current: > # uptime | wc > 0 0 0 >=20 > # uptime | cat > # uptime > 10:16PM up 9 mins... >=20 Adding xo_finish() to w.c line 268 just right before exit(0); fixes that iss= ue (I don't know libxo well enough to say if this is the proper fix or just a= workaround, but it seems logical to me). >=20 >=20 >> -- >> Marcel Moolenaar >> marcel@xcllnt.net > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"=