https://bugzilla.redhat.com/show_bug.cgi?id=1337102
--- Comment #2 from Marko Myllynen <myllynen@xxxxxxxxxx> ---
Ok, if it sounds tricky then using scripts is probably the most feasible way
forward. The action holdoff logic works to a certain degree, perhaps pmie
actually could be enhanced a bit: one idea I had in mind was to allow to define
variables on the pmie side as part of actions (if this is already possible then
I've missed it). So something like:
some_limit = 10
some_check = "
some_inst (
some.metric
)
";
all_sample ( $some_check @0..9 ) > $some_limit && $some_knob == 0
-> some_knob = 1 &
shell 10 min "/usr/local/sbin/some_script on";
all_sample ( $some_check @0..9 ) > $some_limit && $some_knob == 1
-> some_knob = 0 &
shell 10 min "/usr/local/sbin/some_script off";
Thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=FRrNM00Jyl&a=cc_unsubscribe
|