Ad Widget

Collapse

Discovery Rules help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vardhasu
    Junior Member
    • Oct 2015
    • 17

    #1

    Discovery Rules help

    Hi All,

    I have a discovery rules set with the key being not defined, so I defined a UserParameter like

    UserParameter=Garbage_Collector[*], zabbix_get -s <hostname> -p 10055 -k 'zabbix.discovery["java", "java.lang:type=GarbageCollector,*", "name", "*"]'

    To give a list of Garabage collectors. The output I get is :

    {"data":[{"{#OBJECTNAME}":"java.lang:type=GarbageCollector, name=ParNew","{#NAME}":"ParNew"},{"{#OBJECTNAME}": "java.lang:type=GarbageCollector,name=ConcurrentMa rkSweep","{#NAME}":"ConcurrentMarkSweep"}]}

    How do I extract the #NAME from the above and put it as a variable to the items in this discovery rule?

    Any help will be greatly appreciated.

    Regards

    Vardhan
Working...