Re: nagios vs w/uptime

From: Michael Gmelin <grembo_at_freebsd.org>
Date: Tue, 10 Feb 2015 22:56:48 +0100
On Tue, 10 Feb 2015 22:24:59 +0100
Michael Gmelin <grembo_at_freebsd.org> wrote:

> 
> 
> 
> > On 10 Feb 2015, at 22:17, Michael Gmelin <grembo_at_freebsd.org> wrote:
> > 
> > 
> > 
> > 
> >> On 10 Feb 2015, at 21:13, Marcel Moolenaar <marcel_at_xcllnt.net>
> >> wrote:
> >> 
> >> [Moving to current_at_]
> >> 
> >>> On Feb 10, 2015, at 11:52 AM, Peter Wemm <peter_at_wemm.org> wrote:
> >>> 
> >>> Surprises:
> >>> * nagios doesn't like w / uptime anymore. libxo perhaps?
> >> 
> >> Seems most likely, although I haven’t seen any differences in
> >> output in my (admittedly limited) testing.
> >> 
> >> In what way does Nagios not like w/uptime?
> >> Any concrete errors, output or misbehavior?
> >> Ideally: can you reproduce the problem?
> > 
> > 
> > Just compared 10.1 to current, unmodified output looks the same,
> > but pipelines don't work properly:
> > 
> > 10.1:
> > # uptime | wc
> > 1 12 68
> > 
> > Current:
> > # uptime | wc
> > 0 0 0
> > 
> > # uptime | cat
> > # uptime
> > 10:16PM  up 9 mins...
> > 
> 
> Adding xo_finish() to w.c line 268 just right before exit(0); fixes
> that issue (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).
> 

I opened a code review request:
https://reviews.freebsd.org/D1821

-- 
Michael Gmelin
Received on Tue Feb 10 2015 - 20:56:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:55 UTC