On Friday 26 October 2018 at 16:56:39, Ivo Kidze wrote:

> You can write a plugin that runs the compiled plugin and parses the result
> to your hearts' contend.

Yes, I thought of that when looking at the "negate" plugin...


Antony.

> -----Original Message-----
> From: icinga-users [mailto:icinga-users-boun...@lists.icinga.org] On Behalf
> Of Antony Stone Sent: Friday, October 26, 2018 10:51 AM
> To: Icinga User's Corner <icinga-users@lists.icinga.org>
> Subject: Re: [icinga-users] Any way to modify the output of a Service check
> from configuration files?
> 
> On Friday 26 October 2018 at 16:47:56, Michael Friedrich wrote:
> > Hi,
> > 
> > short answer: no.
> 
> Ah, okay :(
> 
> > Long answer: The output and performance data isn’t modified by the
> > core when running a command and receiving its output. It is split out
> > into various values according to the plugin API specification (output,
> > parsed performance data) but there is no user action allowed here.
> 
> Hm, I suspected as much.
> 
> > If you need values like the hostname, you can pass these attributes as
> > command line argument thus requiring the plugin to read it and add it
> > to the output.
> 
> Indeed, I've done that for a couple of plugins I wrote myself, but then
> wondered if there was an easier way when it came to others which I didn't
> (and are compiled, not scripted in bash, perl, etc).
> 
> Thanks anyway.
> 
> 
> Antony.

-- 
Anyone that's normal doesn't really achieve much.

 - Mark Blair, Australian rocket engineer

                                                   Please reply to the list;
                                                         please *don't* CC me.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to