Ad Widget

Collapse

LLD and HTTP Agent Prototypes (key issue)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brunohl
    Senior Member
    Zabbix Certified Specialist
    • Mar 2019
    • 215

    #1

    LLD and HTTP Agent Prototypes (key issue)

    Hello!

    I'm having some trouble with LLD + HTTP Agents Prototypes.

    My LLD Works just fine, but when the data is received it doesn't allow me to use received variables as KEY to HTTP Item.

    So it makes me stranded between two options that don't work:

    1) If I don't use variable on keys, I can create the prototype, but when the discovery rule is activated by the first time it crashes, because it tries to create multiple items with the same key;

    Template prototype creation:
    Click image for larger version

Name:	Screenshot_33.png
Views:	235
Size:	50.3 KB
ID:	375640
    Discovery first run:

    Click image for larger version

Name:	Screenshot_34.png
Views:	230
Size:	165.5 KB
ID:	375641

    2) If I try to put the variable name in key's name, it doesn't allow me to create the prototype (because of the type of characters):
    It doesn't allow me to create
    Click image for larger version

Name:	Screenshot_32.png
Views:	241
Size:	51.2 KB
ID:	375639

    I don't know what to do, did anyone have some scenario like this?
    I used to use LLD with Passive Checks and works very well, but I never needed to change Item Key, so I don't know.

    Thanks,
    Attached Files
  • brunohl
    Senior Member
    Zabbix Certified Specialist
    • Mar 2019
    • 215

    #2
    Thanks to Patrese Renan , I was able to make it work, just will update here if someone has the same problem:

    What you should do is create the key like this:
    auto-reports["{#PERIOD}","{#PARAM2}","{#PARAM3}"]
    Then it'll work.

    Comment

    Working...