Hi,
Sort of new to Zabbix and don't really fully understand how all the components work, but I have successfully set up monitor for VMware and had it discover all virtual machines, as well as set up some LLD macros that links virtual machines to additional templates based on VMware tags.
What I would like to do now is something similar, but using arbitrary TCP services. So far I managed to create and link hosts to a template using a fixed port by using a simple check with a key like so:
I'm imagining retrieving the desired port from a VMware custom attribute using an LLD macro:
But I don't know how to get this into the item key, if at all possible. I tried using the variable directly in the key, but that gave me an "Invalid third parameter" message.
Ideally, I would also like to have a hardcoded fallback port if the custom attribute is not defined.
Thank you
Sort of new to Zabbix and don't really fully understand how all the components work, but I have successfully set up monitor for VMware and had it discover all virtual machines, as well as set up some LLD macros that links virtual machines to additional templates based on VMware tags.
What I would like to do now is something similar, but using arbitrary TCP services. So far I managed to create and link hosts to a template using a fixed port by using a simple check with a key like so:
Code:
net.tcp.service[tcp,,17041]
Code:
{#VM.CA.PORT} = $..vmcustomattribute[?(@.name == "my-port")].value.first()
Ideally, I would also like to have a hardcoded fallback port if the custom attribute is not defined.
Thank you
Comment