[Nagiosplug-devel] Boolean Plugins
Matthias Flacke
Matthias.Flacke at gmx.de
Fri Jun 13 23:17:34 CEST 2008
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
More information about the Devel
mailing list