Ad Widget

Collapse

Create duplicate of discovery rule (LLD)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mpolitaev
    Member
    • Jun 2015
    • 32

    #1

    Create duplicate of discovery rule (LLD)

    I have a low-level discovery rule, depending on it returning Macro {#TYPE} i want create one or another collections of "Item prototypes". I would create a 2 (or 3 if there are 3 types of items prototypes should be created) identical discovery rules and filter them by creating a "Macro" with needed type ({#TYPE} == "FirstType").

    But I cannot create 2 identical discovery rules, Zabbix (v 4.0.4) throw me an error.

    Item with the same key already exist.
    (See screenshot)

    Is there a way create 2 (or more) identical discovery rules or i should doing this separation on discovery rules itself level?

    Thank you.
    Attached Files
    Last edited by mpolitaev; 06-02-2019, 08:18.
  • Andrzej PAwlik
    Junior Member
    • Feb 2019
    • 27

    #2
    Zabbis Server tell you

    Item with the same key already exist.

    Must by different key for next item on the discover rules.

    Cannot exist two Item in the same key on the host.

    Comment

    • mpolitaev
      Member
      • Jun 2015
      • 32

      #3
      Ok thank you, i see what Zabbix tell me)
      Do you have an idea how item prototypes can be separated based on Macro returned by Discovery rule?

      I want create one set of item prototypes where discovery rule return macro {#TYPE} == "A", and another one set of item prototypes by the same discovery rule where macro {#TYPE} == "B". There is "Filter" tab on settings of discovery rule which intended, i think to help with this, it would be very helpful if i can filter values from the same Discovery rule.

      Comment

      Working...