Hi,
I would like be able to discover multiple SNMP services in one host, the service for autodiscover elements returns this json:
zabbix_get -s 10.153.0.46 -k midd_discover
{
"data":[
{ "{#TNAME}": "tomcat8080" ,"{#PORT}": "8080" ,"{#JMX_PORT}": "8089" ,"{#SNMP_PORT}": "18089" },
{ "{#TNAME}": "tomcat8180" ,"{#PORT}": "8180" ,"{#JMX_PORT}": "8189" ,"{#SNMP_PORT}": "18189" },
{ "{#TNAME}": "tomcat8280" ,"{#PORT}": "8280" ,"{#JMX_PORT}": "8289" ,"{#SNMP_PORT}": "18289" },
{ "{#TNAME}": "tomcat8380" ,"{#PORT}": "8380" ,"{#JMX_PORT}": "8389" ,"{#SNMP_PORT}": "18389" },
{ "{#TNAME}": "tomcat8480" ,"{#PORT}": "8480" ,"{#JMX_PORT}": "8489" ,"{#SNMP_PORT}": "18489" }
]
}
I created a template with a discovery rule and a Item prototype (attached screenshot).
But I'm getting the error:
I would like be able to discover multiple SNMP services in one host, the service for autodiscover elements returns this json:
zabbix_get -s 10.153.0.46 -k midd_discover
{
"data":[
{ "{#TNAME}": "tomcat8080" ,"{#PORT}": "8080" ,"{#JMX_PORT}": "8089" ,"{#SNMP_PORT}": "18089" },
{ "{#TNAME}": "tomcat8180" ,"{#PORT}": "8180" ,"{#JMX_PORT}": "8189" ,"{#SNMP_PORT}": "18189" },
{ "{#TNAME}": "tomcat8280" ,"{#PORT}": "8280" ,"{#JMX_PORT}": "8289" ,"{#SNMP_PORT}": "18289" },
{ "{#TNAME}": "tomcat8380" ,"{#PORT}": "8380" ,"{#JMX_PORT}": "8389" ,"{#SNMP_PORT}": "18389" },
{ "{#TNAME}": "tomcat8480" ,"{#PORT}": "8480" ,"{#JMX_PORT}": "8489" ,"{#SNMP_PORT}": "18489" }
]
}
I created a template with a discovery rule and a Item prototype (attached screenshot).
But I'm getting the error:
- Item "Heap Tomcat {#TNAME}:midd_discover[heap,{#TNAME}]" has invalid port: "{#SNMP_PORT}".