I am quite new to zabbix and I wonder about the best way to set host specific trigger values.
This is merely an example to understand the best practice:
Let's say I have 3 linux hosts (hosta, hostb, hostc). I only have assigned the template "Template OS Linux".
hosta has an average number of processes, but hostb and hostc, each have quite some high number of processes and I do want to customize the trigger for those.
Looking at i.e-. the trigger for the average number of processes over the last 5 minutes:
I decide to have triggers as follows
hosta: keep the standard of >300
hostb: increase the trigger to >700
hostc: increase the trigger to >900
However, I cannot i.e. change the value 300 to 700 in hostb, since it is read-only.
Now comes the question:
What is the best way to achieve this?
I mean, being able to customize trigger value per host.
I can disable single Applications, Items, Triggers, etc. per host.. but I cannot change values per host. This confuses me.
I could
- create new templates for hostb and hostc where I customize the proc.num for each. Thus I would end up with 3 templates, one for each of the hosts. That seems to me somewhat overkill and not in the spirit of templates.
- in the host triggers: disable the respective trigger, clone, customize and assign it directly to the host (not so straightforward as i cannot clone a trigger within a template assigned to a host (for obvious reasons). I'll end up with a host having a template assigned, and one manually added trigger
- in the host triggers: disable the respectivetrigger, create new triggger exactly the same way, customize. I'll end up with a host having a template assigned, and one manually added trigger.
Perhaps there are better ways to do this?
My goal is also to be able to identify my changes/customization in a way. If there is a template/zabbix upgrade, I would not want to redo all my customizations.
Zabbix is so powerfull that is almost is
This is merely an example to understand the best practice:
Let's say I have 3 linux hosts (hosta, hostb, hostc). I only have assigned the template "Template OS Linux".
hosta has an average number of processes, but hostb and hostc, each have quite some high number of processes and I do want to customize the trigger for those.
Looking at i.e-. the trigger for the average number of processes over the last 5 minutes:
| Warning | Too many processes on {HOST.NAME} | {Template OS Linux roc.num[].avg(5m)}>300 |
hosta: keep the standard of >300
hostb: increase the trigger to >700
hostc: increase the trigger to >900
However, I cannot i.e. change the value 300 to 700 in hostb, since it is read-only.
Now comes the question:
What is the best way to achieve this?
I mean, being able to customize trigger value per host.
I can disable single Applications, Items, Triggers, etc. per host.. but I cannot change values per host. This confuses me.
I could
- create new templates for hostb and hostc where I customize the proc.num for each. Thus I would end up with 3 templates, one for each of the hosts. That seems to me somewhat overkill and not in the spirit of templates.
- in the host triggers: disable the respective trigger, clone, customize and assign it directly to the host (not so straightforward as i cannot clone a trigger within a template assigned to a host (for obvious reasons). I'll end up with a host having a template assigned, and one manually added trigger
- in the host triggers: disable the respectivetrigger, create new triggger exactly the same way, customize. I'll end up with a host having a template assigned, and one manually added trigger.
Perhaps there are better ways to do this?
My goal is also to be able to identify my changes/customization in a way. If there is a template/zabbix upgrade, I would not want to redo all my customizations.
Zabbix is so powerfull that is almost is
roc.num[]
Comment