Ad Widget

Collapse

How to modify the trigger severity on a specific interface - Zabbix 5.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MonZabbix
    Junior Member
    • Dec 2021
    • 19

    #1

    How to modify the trigger severity on a specific interface - Zabbix 5.4

    Hello everyone,

    Im pretty new to Zabbix and I'm learning each day on how to use it through forums and documentations.

    But I'm stuck on one part, I'm trying to change the severity of a specific interface of my host (switch).

    I'm using the SNMP HP template where the severity when the link is down is set to be on the average severity. The thing I'm trying to do is on the 47th interface, I want it to be on the disaster severity when the link is down.

    On Configuration -> Hosts, I'm clicking on my host -> Triggers. In Triggers, I'm clicking on the 47th Interface Link down trigger, and when I want to switch the severity from Warning to Disaster, It's on grey and I cannot edit it.

    I tried many things but I cannot figure out on how to deal with this problem.

    Thank you for your help!
    Last edited by MonZabbix; 22-12-2021, 11:31.
  • MonZabbix
    Junior Member
    • Dec 2021
    • 19

    #2
    Update :

    I fixed my issue but i don't think it is the right way to do it...

    I went to Configuration -> Hosts, I'm clicking on my host -> Triggers. In Triggers, I'm clicking on the 47th Interface Link down trigger. I duplicate the browser tab, and I click on clone on the first one. On the second tab I'm selecting the trigger and I'm deleting it, and on the first tab since I cloned it, I can edit the severity to Warning -> Disaster and then i click on add.

    If I don't delete the original trigger, when I click on add after editing the severity, it says that this trigger already exist.

    The way I did on how to fix my problem doesn't feel right.. Is there any other way which is kind of cleaner than what I did to solve this issue?

    Many thanks in advance.
    Last edited by MonZabbix; 22-12-2021, 11:31.

    Comment

    • ISiroshtan
      Senior Member
      • Nov 2019
      • 324

      #3
      Hi mate.

      I can see two more approaches that I would rate as better one:

      1. Discovery overrides. Since Zabbix 5.0 Zabbix supports discovery override where you can define extra rules to change standard behavior of discovery. I personally have not used it before, but it seems to be able to do what you want to achieve.
      Downside - it will affect not only one host, but all hosts with same template. Maybe it's possible to add extra check in override for host name to affect only desired host. not sure. As I said, not used it yet.

      2. You can just unlink the template. When you do so you have 2 options: unlink or unlink and clear.
      Unlink will just remove the template keeping all items added by it intact. Meaning you will be able to modify them as you please.
      Downside - if later on you do any changes on template, it will not affect this host, and same changes would need to be done manually.

      Hope it helps.

      Comment

      • MonZabbix
        Junior Member
        • Dec 2021
        • 19

        #4
        Hi ISiroshtan,

        Thank you for your quick answer, i really appreciate that!

        For the 1st method that you are suggesting: I actually tried it and I couldn't click on ADD on the override tab. Maybe I'm just not in the right path?

        The path I used: Configuration -> Hosts into discovery rules tab, then i clicked on the "Network interfaces discovery" rules -> Override tab and it was in grey, couldn't edit...

        For the 2nd method : I unlinked the template from the host ( and not unlink and clear). After that, I went to the trigger that im searching for and it was still uneditable, I couldn't edit the severity. And then when I unlinked the template, most of my triggers had an Unknown state with macro issue.

        The path I used: Configuration -> Hosts into template tab unlink then I clicked on update. Click back to my host -> Trigger, then I clicked on the interface I wanted ( Interface X : Link down) and it was still in grey...

        Thank you for your help!

        Comment

        • ISiroshtan
          Senior Member
          • Nov 2019
          • 324

          #5
          In regards to overrides - I believe you would need to add them on template level, not on a host level. As that is where discovery is coming from, I assume.

          But I'm really surprised you can not edit the trigger after unlinking template. Maybe that is the case when it's coming from discovery. Will try to check on my Lab.

          Comment

          • MonZabbix
            Junior Member
            • Dec 2021
            • 19

            #6
            For the override part, I tried as you said in the template level. Still in grey can't edit but Hey!

            When I unlinked the template from the host and I went to the discovery rules tab of the host and clicked on the Network interfaces discovery rule, I could edit the override and click on ADD though!

            Many thanks you solved one of my issue .

            Edit: Actually, since when I unlink the template, most of my triggers are in the unknown state so when I made the override macro, the trigger : interface X link down is in an unknown state so no changes are getting applied... I'm very confused right now.

            Edit2: I went to the template level, clicked on the "link template" tab went to the discovery rule tab of that link template and then I could override. Then on the hosts level, I could see the override rules which i just wrote (still couldn't click ADD on override on the hosts level)But as you said, if I do this, it will apply to all the hosts that are link to that template.

            Thanks for your help.
            Last edited by MonZabbix; 22-12-2021, 13:47.

            Comment

            Working...