Ad Widget

Collapse

Unlinking Discovered Items from LDD?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gleepwurp
    Senior Member
    • Mar 2014
    • 119

    #1

    Unlinking Discovered Items from LDD?

    Hi,

    Is it possible to automatically unlink any "discovered" items from the Discovery Rules once they have been "added" to the host?

    Because of this, I'm unable to customize the Trigger Description like I can do with template-linked triggers.

    Also, is it possible to only unlink some items from a template, and not the whole template?

    I know I can make a template subset which only contains the discovery rule and unlink it once the items have been discovered, but the items still remain "linked" to the original discovery rule and can't be edited like normal items. Any way to convert "Discovered Items" into normal items?

    Thanks!

    Gleepwurp
    Last edited by gleepwurp; 13-03-2014, 23:39. Reason: Changed comment based on new test result.
  • gleepwurp
    Senior Member
    • Mar 2014
    • 119

    #2
    Well, for any people looking for the same thing I was, here's what I found so far:

    If you need to "unlink" the Discovered Items from the Discovery Rule, you need to do it from the Database:

    Code:
    UPDATE zabbix.items set flags=0 where hostid=<your_hostid> and flags=4;
    This will convert all the items that are "discovered" for your hostid.

    Now, apparently we need to remove the items from the "Item_discovery" table, and that I haven't finished figuring out.

    Also, the Triggers linked to your previously "Discovered" items still work, but are still linked to the Discovery Rule.

    Will post any updates I find.

    Would be nice to be able to do this from within Zabbix though, ie: Host-->Commit discovered items (or something like that).

    G.

    Comment

    • dulh
      Junior Member
      • Mar 2019
      • 1

      #3
      Well, run above script to set flags = 0 after that I can change the interval of this item. But they were auto reset to the interval of LLD item after a few seconds later.
      Anyone known how to keep the custom interval for discovered items, please help !

      Thanks.

      Comment

      Working...