Filter with logical expressions

(Oliver Tatzmann) #1

Hi,

is possible to write an expression like this?
-c check_service -a "filter=(name like 'mfe' AND crit=state='stopped') OR (name like 'mca' AND crit=state = 'stopped)'"

The reason:
There are two versions of a application rolled out, but their service names are diffrent.
Though we want to combine it in a single service/check.

Thx
Oliver