I want to do a LLD via a script on a machine that can be reached via SSH.
I create a new Template and Discovery rule that runs '/home/user/discovery_test.sh discovery'
This works fine, but now to get the values. I create an item prototype to run '/home/user/discovery_test.sh getnum #NAME'
However now Zabbix is complaining that the keys are not unique because the actual Key is used to configure the SSH options, and even if I do 'ssh.run["myvalue_#NAME","localhost",22,"utf8"]' it doesn't look like #NAME gets expanded.
How do I make this work?
(Zabbix 6 btw, if that matters)
I create a new Template and Discovery rule that runs '/home/user/discovery_test.sh discovery'
This works fine, but now to get the values. I create an item prototype to run '/home/user/discovery_test.sh getnum #NAME'
However now Zabbix is complaining that the keys are not unique because the actual Key is used to configure the SSH options, and even if I do 'ssh.run["myvalue_#NAME","localhost",22,"utf8"]' it doesn't look like #NAME gets expanded.
How do I make this work?
(Zabbix 6 btw, if that matters)
Comment