Ad Widget

Collapse

Using item as item key parameter?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • r0k5t4r
    Member
    • Jun 2009
    • 91

    #1

    Using item as item key parameter?

    Hi,

    is it possible to use an item as an item key parameter?

    e.g.

    UserParameter=myscript[*],myscript.sh $1

    myscript.[{gedaszabbix:agent.version.last(0)}}]

    Thanks
    Last edited by r0k5t4r; 15-11-2012, 17:20.
  • Pada
    Senior Member
    • Apr 2012
    • 236

    #2
    This is not possible, unless you go and modify the Zabbix source, which would be quite a lot of effort I would imagine.

    The example that you used is very much possible, because you can get the Zabbix Agent version very easily from a shell script:
    Code:
    zabbix_agent -V | xargs | awk '{print $3}'

    Comment

    Working...