zabbix-cachet
zabbix-cachet copied to clipboard
Ability to nest trigers
Hi Artem,
Would it be possible to add the ability to trigger a service based on its subordinate triggers?
Currently only one level of nesting is allowed, we would like to have high-level categories that can be triggered by a number of subordinates.
ie.
Service Status (root level) -- Core Services ---- Internet Service (shown on cachet, triggers based on subordinates) ------ Proxy Service (trigger, hidden on cachet) ------ DNS Service (trigger, hidden on cachet)
Hi, I was in my todo list since beginning.
What do you think about Cachet incidents name/message in this scenario?
This is how I went about it, Zabbix calls this script each time a trigger is updated which in turn updates the component/incident. We are still using your script to sync the groups/components, I guess it would be nice to have it "all in one", are also only trigger one level deep below the component at this point.
Just wondering if there was any update to this enhancement? I am trying to setup IT Services lower down, and even though the status is reported all the way up to the root, my cachet doesn't get updated.
@networkdawg, @dbnewman
Hi, I implemented this feature. You can try and test by clone 12_nest_triggers branch or use nest_services tag.
There are some uncertain things here:
- What should we write to description/link field during component creation? In simple case we took this data from linked trigger, but here we can have more than one trigger.
- Acknowledgements not implemented yet
@qk4l just tried the brqnch. It does indeed seem to work!
i created a tree like this: Root -Test —Test Child —-Leaf ——Trigger X
And when the trigger activated the fault would propagate all the way up to Test.
Now I might have found a regression or a completely different fault. I later exchanged Trigger X with another Trigger Y and cachet does not see the change. test Leaf had this (?) symbol and holding over it still shows Trigger X even if I replaced it hours ago.
Any plan on when this branch will make it into master?
kind regards Jens