[Nagiosplug-devel] Boolean Plugins
Dylan Martin
dmartin at sccd.ctc.edu
Sat Jun 14 00:07:02 CEST 2008
Thanks! I'll definitely check that out.
On Fri, Jun 13, 2008 at 2:17 PM, Matthias Flacke <Matthias.Flacke at gmx.de> wrote:
>
>
> Dylan Martin wrote:
>>> You can build complex boolean expressions in Perl syntax like
>>>
>>> state[CRITICAL]=((check_a == OK) || (check_b > check_c)) && !check_d
>>>
>>> Pattern regex against plugin outputs is also available:
>>>
>>> state[CRITICAL]=$check_a$ !~ /error|failed/
>>
>> Where is that? Is that in a nagios configuration file or in the code
>> of a plugin, or somwhere else?
>
> The statements above are part of a check_multi config file (NRPE stylish).
>
> check_multi started as a wrapper plugin to call multiple child checks. But
> with the state evaluation described in
> http://www.my-plugin.de/wiki/projects/check_multi/configuration/file#state_definition
> it can be used for sophisticated setups, business views etc.
> Examples can be found in
> http://www.my-plugin.de/wiki/projects/check_multi/process_views and
> http://www.my-plugin.de/wiki/projects/check_multi/eval
>
> -Matthias
>
>
>
> --
> http://my-plugin.de/check_multi
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Devel
mailing list