Hello,
I apologize in advance for the long post, hopefully it explains my question well enough.
I am a relatively new user of Zabbix interested in rearchitecting our existing template structure to create an inheritance tree of templates wherein trigger thresholds can be overridden at different levels of the tree (including at the host level) using user macros.
As an example, let's say I create a base template for Windows, and then create separate templates for web servers and database servers which link to the Windows template. I then build discovery rules at the Windows level as well as trigger prototypes which base their threshold on a user macro. I decide I want the database servers to have different thresholds from the standard thresholds defined at the Windows template level, so I redefine the same user macro at the database server template levels. I then decide to redefine the threshold user macro for a specific host that's linked to the database server template.
How can I easily tell for any particular host where it's getting the value of the threshold user macro? It could be at the host level, database server template level, or Windows template level, and I could check the configuration at each level for a defined user macro until I find the highest order user macro, but is there an easier way to determine the highest level where this user macro is defined and what its value is without having to hunt for it? Ideally, I'd like to be able to map out threshold values for my entire configuration and see what the values are at each level and if they're being inherited, where they're being inherited from.
I hope that makes sense, and I'd appreciate any guidance on this matter.
I apologize in advance for the long post, hopefully it explains my question well enough.
I am a relatively new user of Zabbix interested in rearchitecting our existing template structure to create an inheritance tree of templates wherein trigger thresholds can be overridden at different levels of the tree (including at the host level) using user macros.
As an example, let's say I create a base template for Windows, and then create separate templates for web servers and database servers which link to the Windows template. I then build discovery rules at the Windows level as well as trigger prototypes which base their threshold on a user macro. I decide I want the database servers to have different thresholds from the standard thresholds defined at the Windows template level, so I redefine the same user macro at the database server template levels. I then decide to redefine the threshold user macro for a specific host that's linked to the database server template.
How can I easily tell for any particular host where it's getting the value of the threshold user macro? It could be at the host level, database server template level, or Windows template level, and I could check the configuration at each level for a defined user macro until I find the highest order user macro, but is there an easier way to determine the highest level where this user macro is defined and what its value is without having to hunt for it? Ideally, I'd like to be able to map out threshold values for my entire configuration and see what the values are at each level and if they're being inherited, where they're being inherited from.
I hope that makes sense, and I'd appreciate any guidance on this matter.