Ad Widget

Collapse

Discovery action - one time only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcdouglas
    Junior Member
    • Dec 2016
    • 3

    #1

    Discovery action - one time only

    Hi,

    I'm using a discovery rule with snmp check and a discovery action to automagically add my switches to zabbix. This is my discovery action:

    Condition:
    Custom expression: (A and B) and not C
    A Discovery rule equals MGMT network SNMP check
    B Received value contains .3.6.1.4.1.25506.11.1.
    C Discovery status equals Discovered

    Operation:
    Send message to user groups: Zabbix administrators via all media
    Add host
    Add to host groups: switches
    Link to templates: Template Net HP Comware HH3C SNMPv2
    Set host inventory mode: Automatic

    The problem is, it keeps doing these actions, even after the initial discovery is finished. So if I remove the discovered host from the group, or change the template association, the discovery action will keep reverting it, not to mention spamming me with notifications. Shouldn't the "and not Discovered status" condition prevent this?

    How can I ensure that discovery operation will only be performed once?
Working...