I am attempting to monitor multiple environments with multiple instances containing multiple web applications run accross multiple hosts (sounds ridiculous on paper but it's actually very practical). The web apps can be on different hosts depending on how we choose to setup any given instance in a certain environment. I have tried to use a combination of Templates, Items, Triggers and Macros to accomplish this in the best possible way, however I have run in to an issue with the setup:
Please review the textual diagram of the Template setup in the following post and the review the following notes:
When I apply Template_web1 to my host 'hosta' it works well. The items are applied with the correct macros referenced and the triggers work when they should.
The problem occurs when I try to apply Template_web2 to 'hosta'. I get an error stating that the item(s) already exist(s) on the host.
It appears that rather than checking against the item name/key after the macros are substituted, it refers to the macro references as literal strings and therefore believes that I'm trying to add the same item to 'hosta' when obviously it is configured uniquely.
Has anybody experienced this drawback of Zabbix and if so what was the workaround?
Manually adding the same Items to each Template_webX is not really a scalable and time-efficient solution. I'd like to avoid it at all costs. Especially considering how many instances of this same scenario exist in our multiple environments.
I can provide more information if necessary.
Please review the textual diagram of the Template setup in the following post and the review the following notes:
When I apply Template_web1 to my host 'hosta' it works well. The items are applied with the correct macros referenced and the triggers work when they should.
The problem occurs when I try to apply Template_web2 to 'hosta'. I get an error stating that the item(s) already exist(s) on the host.
It appears that rather than checking against the item name/key after the macros are substituted, it refers to the macro references as literal strings and therefore believes that I'm trying to add the same item to 'hosta' when obviously it is configured uniquely.
Has anybody experienced this drawback of Zabbix and if so what was the workaround?
Manually adding the same Items to each Template_webX is not really a scalable and time-efficient solution. I'd like to avoid it at all costs. Especially considering how many instances of this same scenario exist in our multiple environments.
I can provide more information if necessary.
Comment