Re: nagios vs w/uptime

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Tue, 10 Feb 2015 16:04:06 -0800
On Tue, Feb 10, 2015 at 10:24:59PM +0100, Michael Gmelin wrote:
> > On 10 Feb 2015, at 22:17, Michael Gmelin <grembo_at_freebsd.org> wrote:
> > 
> > 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).
> 

% man xo_finish
...
   Calling this function is vital to the proper operation of libxo,
   especially for the non-TEXT output styles.
...

Note, the word "vital" is underlined in xterm for emphasis.


PS:  To whomever is responsible for libxo, some (most?) libxo
manpages have the wrong NAME information.  For example, 

% man xo_finish

LIBXO(3)               FreeBSD Library Functions Manual               LIBXO(3)

NAME
     xo_emit - emit formatted output based on format string and arguments

% man xo_attr

LIBXO(3)               FreeBSD Library Functions Manual               LIBXO(3)

NAME
     xo_emit - emit formatted output based on format string and arguments

% man xo_create

LIBXO(3)               FreeBSD Library Functions Manual               LIBXO(3)

NAME
     xo_emit - emit formatted output based on format string and arguments

-- 
Steve
Received on Tue Feb 10 2015 - 23:04:13 UTC

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