On Friday 07 April 2017 at 10:39:06, Antony Stone wrote:
> On Thursday 06 April 2017 at 15:35:10, Rudy Gevaert wrote:
> > On Thu, 2017-04-06 at 15:32 +0200, Antony Stone wrote:
> > > Hi.
> > >
> > > Does anyone know of a way to write a CheckCommand definition which
> > > can run two commands, or alternatively a Service definition which can
> > > run two CheckCommands, and then combine the results to give a single
> > > result which Icinga reports?
> >
> > check_multi?
>
> Thanks for that suggestion - now I'm just trying to work out how to get it
> to play nicely with Icinga2 syntax & variables etc.
>
> All the examples I can find are for Nagios or Icinga1...
>
>
> Looks like it should do the job, though.
Indeed, yes, I've got it working, and the result is just what I needed.
It's a bit disappointing that I now have a very basic CheckCommand definition
in Icinga2 (which basically just says "use check_multi") and the detailed
definitions of the actual checks I need to perform are in a text file which
I've
put in the plugins directory.
However, I don't see any way of changing that, but at least the outcome is
what I was trying to achieve.
Thanks,
Antony.
--
"In fact I wanted to be John Cleese and it took me some time to realise that
the job was already taken."
- Douglas Adams
Please reply to the list;
please *don't* CC me.
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users