Ad Widget

Collapse

zabbix item value in zabbix item key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fjrial
    Senior Member
    • Feb 2010
    • 140

    #1

    zabbix item value in zabbix item key

    Hi:

    I would like to know if it's possibly to set an item similar to this one:

    Suppose we have a host called Dom0 with two items: xen.name1 and cpu1

    Item Name= xen.name1
    Item Key: xen.name[1]

    this is an UserParameter defined in the zabbix_agentd.conf

    Item Name= cpu1
    Item Key= xen.cpu[{Dom0:xen.name[1].last()}]

    and this is another UserParameter also defined in zabbix_agentd.conf.

    The first one works, but second one doesn't.
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    That's not possible, and I wonder if it ever will be. However that is something you may be able to do via the API.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • fjrial
      Senior Member
      • Feb 2010
      • 140

      #3
      thanks nelsonab, but, can you explain how would I do that? Just a schematic idea..

      Comment

      Working...