[icinga-users] Any way to modify the output of a Service check from configuration files?

Antony Stone Antony.Stone at icinga.open.source.it
Fri Oct 26 16:51:10 CEST 2018


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.

-- 
The first fifty percent of an engineering project takes ninety percent of the 
time, and the remaining fifty percent takes another ninety percent of the time.

                                                   Please reply to the list;
                                                         please *don't* CC me.


More information about the icinga-users mailing list