Ad Widget

Collapse

Remove discovered resources/entities/items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mattrk
    Junior Member
    • Mar 2014
    • 18

    #1

    Remove discovered resources/entities/items

    I used the default "Template OS Windows" and a Zabbix agent to monitor a host. This template has a LLD for network interfaces. After it ran i realized it discovered a bunch of useless interfaces such as ISATAP and WAN Miniport. I have since added these the regex exclusion list for network interface discovery.

    However, these discovered interfaces still show up under the Overview page and the Latest Data. How do i get rid of these extra interfaces that were discovered?

    This question also extends to other discovery templates. For example, i altered a template that was discovering switchports the other day to use a different SNMP OID but the old switchports are still showing up. How do i prune these old discovered entities?
  • mattrk
    Junior Member
    • Mar 2014
    • 18

    #2
    Answering my own questions again.

    I was able to do this by setting the "Keep lost resources period" field in the LLD rule to 0. This cleared the old stuff out the next time the discovery ran. I then put it back to 30 days so that in the future it would keep temporarily lost resources instead of instantly deleting them.

    I'm still interested to know if there is a manual way of deleting these.

    Comment


    • dlogan
      dlogan commented
      Editing a comment
      For those of us who are new to Zabbix, it would be great if you could explain this. I don't know what an LLD rule is and no idea where to find it.

    • mr.exoman
      mr.exoman commented
      Editing a comment
      For those who don't know where to find it like dlogan, example - Configuration > Templates > Linux filesystems by Zabbix agent > Discovery rules > Mounted filesystem discovery > Keep lost resources period, default value is "30d", after setting it to "0d" all our former zfs snapshots were cleared after next discovery, like was mentioned by mattrk. Thanks!

      For manual way, Configuration > Hosts > click on one of the Items > clear host from "Hosts" filter, check "Not supported" State then Apply, you can see all problematic items, check what item you want delete then at the bottom you have "Delete" button.

      Zabbix ver.
      # zabbix_server --version
      zabbix_server (Zabbix) 5.4.2
      Revision 4c8f9aabe1 28 June 2021, compilation time: Jun 11 2021 14:01:39
  • clahti
    Senior Member
    • Jan 2007
    • 126

    #3
    Along the same lines I have several LLD templates. The ones where I have item prototypes seem to honor the "delete lost resources after x days" and get removed as expected. I have an LLD template with a host prototype that creates hosts based on a returned JSON list. This works great, however lost resources persist even if I set the "delete lost resources after x days" value to zero.

    Are the LLD expiry rules for discovered hosts different than discovered Items? Also is it possible to just disable the discovered host rather than delete this together with it's history? It might be nice to retain historical data on hosts that no longer appear in my production list.

    Thanks!

    /Christian

    Comment

    • blakilox
      Junior Member
      • Feb 2023
      • 1

      #4
      why on earth you dont just put a clear discovery button is beyond me

      Comment

      Working...