Ad Widget

Collapse

Discovery actions not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • attilla
    Junior Member
    Zabbix Certified Specialist
    • Feb 2011
    • 25

    #1

    Discovery actions not working

    Hi All,

    For our switch environment I created templates for each type of blade we have and for each slot. So I have 84 templates at the moment like this: blade_a-slot_x, blade_b-slot_x.

    Now each switch has a maximum of 32 slots and I created a discovery rule for each slot by doing an snmp check (each slot has a corresponding oid which returns a string with the module type).

    So I made rules for each slot (if the type for slot x was a, add template a for slot x). These rules worked fine and each host got nicely filled with all templates.

    However, we removed some modules from the switches and I manually removed the templates from the host, but the templates keep being added, while the snmp result it actually empty:

    SNMPv2-SMI::enterprises.1991.1.1.2.8.1.1.4.1 = No Such Instance currently exists at this OID

    Now I've been told to add delete actions for these slots as well, since I never told zabbix to actually delete the templates from the host. But that doesn't seem to work either.

    I also created a delete action to remove hosts from the "discovered hosts" group, but that also doesn't work.

    I'm out of ideas. Can someone tell me what I have to do to make this work?
    Attached Files
  • attilla
    Junior Member
    Zabbix Certified Specialist
    • Feb 2011
    • 25

    #2
    I solved the part on removing templates from the hosts. The remove didn't work because the snmp query doesn't return anything and therefore it doesn't match the result. So I made an action that removes the template if the snmp check is "down" in zabbix (the state it gets when the oid is unavailable).

    The only thing that still doesn't work entirely is my remove from discovery group action. I configured separate actions for each chassis (mlx8, 16 and 32) and I got a very weird result .. it now works for the mlx8 chassis, but not for 16 and 32, while the actions are exactly the same. Can anyone explain this to me?
    Attached Files

    Comment

    Working...