What is iCall?
Hi Jason,
Thanks for the reply. Ok, I understand the way you mentioned, my concern there is that if we need to pass the pool name (or even the member name) to the script, I need to create a special rule for each.
We are about to have about 10 pools, 12 members each. It means at least 10 (basically the same) rules for each pool if we don't need to pass the member name to the script; or, 10*12 rules should both pool and member name be passed to the script, eventually.
That's hardly manageable from operations point of view...
An option would be if it's possible to include wildcard/regex patterns on the "alert" line, which could be referred to later on from the "exec" line, like for example below, but I understand that's not possible(?):
alert POOL_MEMBER_UP "Pool (.*?) member (.*?):(.*?) monitor status up" {
exec command="tmsh generate sys icall event NODE_UP context {
{ name poolname value &1 }
{ name memberip value &2 }
{ name memberport value &3 }
}";
}
If you have an idea, how could we trigger a script and pass the affected pool/member name to it, please let me know. It would be appreciated 🙂
Thanks a lot, Pavel