Hi everyone,
I'm currently working on setting up a trigger to monitor SSL expiration dates for hosts with multiple websites. My approach involves running a script to fetch the expiration dates of these websites and passing these values to Zabbix, which I have managed to do successfully.
I created three test items for three different websites on one host. Each item correctly displays the number of days left until the SSL certificate expires. Now, I want to create a trigger that activates when any of these items have less than 30 days remaining until expiration. This part is also working; the trigger activates when any of the three items have a value less than 30.
My challenge now is ensuring that everyone knows which specific item (and therefore which website) triggered the alarm. I tried using macros like {ITEM.NAME} or {ITEM.DESCRIPTION}, but they didn't work.
Is my approach correct, or is there a better way to achieve this? I could create individual items and triggers for each website with absolute names/descriptions, but that would require manually adding around 40 items and 40 triggers per host. There must be a smarter solution that I'm missing. Any advice would be greatly appreciated!
If you need any further information please let me know.
I'm currently working on setting up a trigger to monitor SSL expiration dates for hosts with multiple websites. My approach involves running a script to fetch the expiration dates of these websites and passing these values to Zabbix, which I have managed to do successfully.
I created three test items for three different websites on one host. Each item correctly displays the number of days left until the SSL certificate expires. Now, I want to create a trigger that activates when any of these items have less than 30 days remaining until expiration. This part is also working; the trigger activates when any of the three items have a value less than 30.
My challenge now is ensuring that everyone knows which specific item (and therefore which website) triggered the alarm. I tried using macros like {ITEM.NAME} or {ITEM.DESCRIPTION}, but they didn't work.
Is my approach correct, or is there a better way to achieve this? I could create individual items and triggers for each website with absolute names/descriptions, but that would require manually adding around 40 items and 40 triggers per host. There must be a smarter solution that I'm missing. Any advice would be greatly appreciated!
If you need any further information please let me know.