[Nagiosplug-devel] [Nagiosplug-checkins] nagiosplug/plugins check_by_ssh.c, 1.41, 1.42

Andreas Ericsson ae at op5.se
Wed Apr 18 17:46:54 CEST 2007


Holger Weiss wrote:
> * Andreas Ericsson <ae at op5.se> [2007-04-17 15:24]:
>> Why not just keep "--skiplines" as-is, and introduce --skip-stderr and
>> --skip-stdout, which would solve the same problem in a more intuitive way,
>> not break backwards-compatibility *and* provide a finer granularity.
>>
>> When specified without options, they should skip ALL output on the targeted
>> fd.
> 
> Hmm, really skip _all_ output in case of "--skip-stdout" and print
> nothing?  Or print just the last line?  Or print a line generated by
> check_by_ssh?
> 

Skip all of it. If --skip-stdout and --skip-stderr is used together cook up
some message ("check_by_ssh: remote command '<command_name'> exited 
(un)successfully) and let it be at that.

Some programs people might want to run don't print output useful for
displaying, or prints multiline output, or...

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231




More information about the Devel mailing list