Ad Widget

Collapse

How do I define a key in a low level discovery?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RonaldMcDonaldTrump
    Member
    • Jan 2018
    • 41

    #1

    How do I define a key in a low level discovery?

    hi everyone,

    I created a LLD (low level discovery) using zabbix agent and user parameter .

    I set up a script that outputs a json file which contains values that I'd like to use for Filesystem Discovery

    the json file looks like this:
    {
    "mountPoint": [
    {"{INDEX}":"1" ,"{#FSTYPE}":"rootfs", "{#MOUNTPOINT}":"/"}
    { "{INDEX}":"2" , "{#FSTYPE}":"sysfs", "{#MOUNTPOINT}":"/sys"}
    { "{INDEX}":"3", "{#FSTYPE}":"proc", "{#MOUNTPOINT}":"/proc"}

    .......
    Discovery works halfway, Items are found, but not their vaules(Unsupported Item Key).

    I think the problem is related to the definition of the keys in the items prototype. I don't know how to assing the macro value to the key.

    Thanks to everyone who tries to help me.

  • brunohl
    Senior Member
    Zabbix Certified Specialist
    • Mar 2019
    • 215

    #2
    I have the same problem here. I can't set keys with discovery variables (using http checks), so it doesn't make too much sense to use discovery if I can't create multiple itens on the return.

    Comment

    • brunohl
      Senior Member
      Zabbix Certified Specialist
      • Mar 2019
      • 215

      #3
      Hey man, I got some resolution, from Patrese Renan in other topic.

      What you should do is create the key like this:
      vfs.your.key["{INDEX}","{PARAM2}"]
      The only thing that you need to do is wrap your variables around quotes and it'll work

      Comment

      Working...