Hi,
I am trying to create an LLD rule for HAProxy. The JSON returned by the agent is as follows :
I have created one item prototype with the following parameters :
The items won't be created and Zabbix tells me :
Of course no such item exists prior to the rule activation on any host. It looks like the LLD macros are not expanded into their actual values. I created {#HAPROXYID} by concatenating {#HAPROXYPROXY} and {#HAPROXYSERVICE} for the sole purpose of having a unique identifier hoping it would solve my problem but it does not).
I fail to see what is different from other (perfectly working) LLD rules (SNMP, FS and such).
Thanks for your insight
I am trying to create an LLD rule for HAProxy. The JSON returned by the agent is as follows :
Code:
{
"data": [
{
"{#HAPROXYID}": "mysql-cluster.FRONTEND",
"{#HAPROXYPROXY}": "mysql-cluster",
"{#HAPROXYSERVICE}": "FRONTEND"
},
{
"{#HAPROXYID}": "mysql-cluster.db1",
"{#HAPROXYPROXY}": "mysql-cluster",
"{#HAPROXYSERVICE}": "db1"
},
{
"{#HAPROXYID}": "mysql-cluster.db2",
"{#HAPROXYPROXY}": "mysql-cluster",
"{#HAPROXYSERVICE}": "db2"
},
{
"{#HAPROXYID}": "mysql-cluster.db3",
"{#HAPROXYPROXY}": "mysql-cluster",
"{#HAPROXYSERVICE}": "db3"
},
{
"{#HAPROXYID}": "mysql-cluster.BACKEND",
"{#HAPROXYPROXY}": "mysql-cluster",
"{#HAPROXYSERVICE}": "BACKEND"
}
]
}
- Name : Service state for {#HAPROXYID}
- Type : Zabbix agent
- Key : haproxy.stats[{#HAPROXYID},{#HAPROXYPROXY},{#HAPROXYSERVICE},sta tus]
The items won't be created and Zabbix tells me :
Cannot create item : item with the same key "haproxy.stats[{#HAPROXYID},{#HAPROXYPROXY},{#HAPROXYSERVICE},sta tus]" already exists
Of course no such item exists prior to the rule activation on any host. It looks like the LLD macros are not expanded into their actual values. I created {#HAPROXYID} by concatenating {#HAPROXYPROXY} and {#HAPROXYSERVICE} for the sole purpose of having a unique identifier hoping it would solve my problem but it does not).
I fail to see what is different from other (perfectly working) LLD rules (SNMP, FS and such).
Thanks for your insight
Comment