Hi all,
I have created several nested templates which should reduce the load of adding triggers to hosts.
For example I have created a Template 'TPing' which has icmpping as item and a trigger associated. I have also created a template called 'T-Class1-Ping' which contains a link to the TPing template. This works as expected and if I assign the T-Class1-Ping template to a host I also see the item and trigger appear.
Another template I created links all class1 items together in a template called T-Class1
So in the end I have
Now I want to define an action which should send a message based on the class of the device is in. For example I have a host A which is linked to the T-Class1-Ping template and the T-Class1-Load template.
If I define an action with
I do not get a message if the host becomes unresponsive to pings hoewever the T-Class1-Ping is part of T-Class and the trigger is triggered in T-Class1-Ping (or actually
in T-Ping).
Should it work that way or is there an easy way to accomplish the same or would I have to add all T-Class1-XXX to the action?
Jeroen
I have created several nested templates which should reduce the load of adding triggers to hosts.
For example I have created a Template 'TPing' which has icmpping as item and a trigger associated. I have also created a template called 'T-Class1-Ping' which contains a link to the TPing template. This works as expected and if I assign the T-Class1-Ping template to a host I also see the item and trigger appear.
Another template I created links all class1 items together in a template called T-Class1
So in the end I have
Code:
T-Class1 -> T-Class1-Ping -> TPing
-> T-Class1-Load -> TLoad
T-Class2 -> T-Class2-Ping -> TPing
-> T-Class2-Load -> TLoad
If I define an action with
Code:
- Maintenance status is not in maintenance - Template = T-Class1 - Trigger Value = PROBLEM
in T-Ping).
Should it work that way or is there an easy way to accomplish the same or would I have to add all T-Class1-XXX to the action?
Jeroen