Hi all,
I'm doing a little experimentation with our Zabbix 6.0 LTS setup.
Let's assume I have a template that contains only ITEMS - for simplicity, let's say [agent.ping]. So no graphs. no discovery, nothing else. Let's assume also that this template is linked to 10,000 hosts.
I then have a second template that contains only TRIGGERS - again for simplicity let's say a trigger to send an alert if the agent.ping the first (Items) template fails.
(Please note, I'm keeping this as simple as possible, the real world example is more complicated)
When I create the trigger in the "Triggers" template and refer to the item in the "Items" template the trigger is actually saved in the items template and not in the "triggers" template.
I appreciate that a reason for this could be that the item used in the trigger is actually more effectively placed in the Zabbix agent ITEMS template and maybe Zabbix is being much smarter than I expect.
However, I believe that anything I create in Zabbix should stay where I create it and not where Zabbix things it should go.
This is admittedly a simple use case but it is confusing.
Has anyone else had this issue and can offer some comment.
N.B. I know I can easily solve this using a host macro for my use case, my point is that Zabbix doesn't appear to save things where I told it to save them?
What does everyone else think?
D.
I'm doing a little experimentation with our Zabbix 6.0 LTS setup.
Let's assume I have a template that contains only ITEMS - for simplicity, let's say [agent.ping]. So no graphs. no discovery, nothing else. Let's assume also that this template is linked to 10,000 hosts.
I then have a second template that contains only TRIGGERS - again for simplicity let's say a trigger to send an alert if the agent.ping the first (Items) template fails.
(Please note, I'm keeping this as simple as possible, the real world example is more complicated)
When I create the trigger in the "Triggers" template and refer to the item in the "Items" template the trigger is actually saved in the items template and not in the "triggers" template.
- Screenshot 1 shows the template that contains just 4 ITEMS. The agent.ping item is open.
- Screenshot 2 shows the template that will contain just a single TRIGGER - no items. No triggers are currently defined.
- Screenshot 3 show the start of creating a TRIGGER in the Zabbix agent TRIGGERS template. The condition is set to be the ITEM from the Zabbix agent ITEMS template as you can see.
- Screenshot 5 shows the output after clicking "Add". I expected the trigger to appear in the list of triggers for the "Zabbix agent TRIGGERS" template but it doesn't. HOWEVER.....
- Screenshot 6 shows that the trigger I defined in the "Zabbix agent TRIGGERS" template has been saved in the "Zabbix agent ITEMS" template.
I appreciate that a reason for this could be that the item used in the trigger is actually more effectively placed in the Zabbix agent ITEMS template and maybe Zabbix is being much smarter than I expect.
However, I believe that anything I create in Zabbix should stay where I create it and not where Zabbix things it should go.
This is admittedly a simple use case but it is confusing.
Has anyone else had this issue and can offer some comment.
N.B. I know I can easily solve this using a host macro for my use case, my point is that Zabbix doesn't appear to save things where I told it to save them?
What does everyone else think?
D.