Ad Widget

Collapse

Keep trigger of removed item

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • liranp1
    Junior Member
    • Feb 2023
    • 8

    #1

    Keep trigger of removed item

    Hi,
    i have Cisco switch C9200L and i'm monitoring it with Cisco IOS template.
    there is an option for the interface "Admin Status", when it is disables it removes the interface from the monitoring and zabbix changes the status of the triggers that created to disabled (because the switch does not show the port anymore).
    i use zabbix 7.0.2.
    is there a way to keep trigger enable even if the item not exist?
    or any other way to get alert when port disappear or something like that?

    thank you all
  • Answer selected by liranp1 at 11-12-2024, 14:03.
    ISiroshtan
    Senior Member
    • Nov 2019
    • 324


    Hey there

    Based on this template you have a Macro {$NET.IF.IFADMINSTATUS.NOT_MATCHES} set as '^2$'. This what defines admin statuses of interfaces to excluded from discovery. 2 is admin down. You can modify the value on template to '^$' (or any other unmatchable value) to make admin_down interfaces to be set into monitoring. Or you can overwrite it on host level to make only some hosts to set admin_down to monitoring.

    Alternatively you can go into template -> discoveries -> interface discovery and check what is set as "Disable lost resources", good chance it is set to "Immediately", then you can switch it to "Never" or "After X time", so that when interface is set to admin_down it kept enabled for some time.
    Also do note, some of triggers have extra checks in expression for interface to not to be admin_down. So it is possible that even if trigger will remain enabled it will not fire.

    All in all you'd need to test it out to see how to make it fit your requirement.

    Comment

    • ISiroshtan
      Senior Member
      • Nov 2019
      • 324

      #2

      Hey there

      Based on this template you have a Macro {$NET.IF.IFADMINSTATUS.NOT_MATCHES} set as '^2$'. This what defines admin statuses of interfaces to excluded from discovery. 2 is admin down. You can modify the value on template to '^$' (or any other unmatchable value) to make admin_down interfaces to be set into monitoring. Or you can overwrite it on host level to make only some hosts to set admin_down to monitoring.

      Alternatively you can go into template -> discoveries -> interface discovery and check what is set as "Disable lost resources", good chance it is set to "Immediately", then you can switch it to "Never" or "After X time", so that when interface is set to admin_down it kept enabled for some time.
      Also do note, some of triggers have extra checks in expression for interface to not to be admin_down. So it is possible that even if trigger will remain enabled it will not fire.

      All in all you'd need to test it out to see how to make it fit your requirement.

      Comment

      • liranp1
        Junior Member
        • Feb 2023
        • 8

        #3
        hi, thank you so much.

        Comment

        Working...