Hi all,
We are using Zabbix to monitor the SSL certificates of our domains. So far we've been adding them manually each time we create a new domain but wondered if this can be done automatically based on a host prototype?
I've created a plug in that returns the domains hosted on one of our servers in JSON format. An example output of calling that item is:
I created a new template called 'domain discovery' with a discovery item that uses the key 'list.domains' and with the following host prototype settings:

Inherited macros:
The template for the host name should add test into the name to ensure there is a difference between existing hosts and those that are discovered. This template was attached to a test host, the item is showing as enabled but no hosts have been generated.
Is there something wrong with my JSON formatting, or something I have incorrectly configured in my template?
Thanks
We are using Zabbix to monitor the SSL certificates of our domains. So far we've been adding them manually each time we create a new domain but wondered if this can be done automatically based on a host prototype?
I've created a plug in that returns the domains hosted on one of our servers in JSON format. An example output of calling that item is:
Code:
list.domains [s|[
{
"{#DOMAIN}": "example.co.uk"
},
{
"{#DOMAIN}": "testing.co.uk"
},
{
"{#DOMAIN}": "wiki.example.co.uk"
},
{
"{#DOMAIN}": "docs.example.co.uk"
},
{
"{#DOMAIN}": "staging.example.co.uk"
}
]]
Inherited macros:
The template for the host name should add test into the name to ensure there is a difference between existing hosts and those that are discovered. This template was attached to a test host, the item is showing as enabled but no hosts have been generated.
Is there something wrong with my JSON formatting, or something I have incorrectly configured in my template?
Thanks
Comment