Ad Widget

Collapse

LLD via a ssh.run script. Possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ivo Palli
    Junior Member
    • Jul 2021
    • 13

    #1

    LLD via a ssh.run script. Possible?

    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)
    Last edited by Ivo Palli; 26-10-2021, 13:55.
  • Ivo Palli
    Junior Member
    • Jul 2021
    • 13

    #2
    Ahh fixed it myself... it's "myvalue_{#NAME}".. needs the brackets

    Comment

    Working...