Ad Widget

Collapse

Questions about maps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Thug
    Junior Member
    • Apr 2020
    • 5

    #1

    Questions about maps

    Hello, community. I'm new to zabbix and I've got 2 features to be done, but I don't have a clue yet. Please be so kind to give a hint.
    1. Is there a way to make links lines thicker on the map? Ideally about 8-10 px so they can be viewed by just a glance. Below is the image of default link and "ideal" for us (drawn as a line). If all links will be same as this - that's okay (i.e. if this is done somewhere in templates for all maps and links).
    Click image for larger version

Name:	Clipboard01.jpg
Views:	309
Size:	5.7 KB
ID:	400422

    2. Links changing color due to bandwidth (i.e. <50% green, <60 purple, <70 orange and so on). . I've found that this is realized by adding a set of triggers for the item like a port of the switch. So I created a test trigger {Juniper 4550:net.if.in[ifHCInOctets.511].avg(15m)}>({$IF.UTIL.MAX:"ae0"}/100)*5) which as I presume equals to "more than 5% utilisation in last 15 minutes". Added a trigger to the map and the link changed color. BUT it also fired an alarm and raised a problem in zabbix. So the question is either how to create a trigger that won't raise an alarm or how should this colorization be realized?


    Thanks in advance, Nikolay.
  • c1support
    Member
    • Apr 2020
    • 47

    #2
    Hi Nikolai

    1. I would also like this feature. If anybody has a solution, I would be interested to learn, too.

    2. How I would try to achieve this is as follows:
    - create three triggers, corresponding to the three levels (50%, 60%, 70%)
    - in Maps: add three link indicators, corresponding to the three triggers (first line 70%, then 60%, last line 50%)
    - in case you are referring to Actions (when you write "raise an alarm"): you can suppress/exclude triggers (does not equal): https://www.zabbix.com/documentation...ion/conditions
    - in case you are referring to Problems: you could set the severity of these triggers low (e.g. Not classified) and filter by severity (i.e. suppressing severity = Not classified)

    => Perhaps there is a more elegant way?

    Besides: at a first glance, there seems to be a bracket mismatch in the above snippet. Do you mean {Juniper 4550:net.if.in[ifHCInOctets.511].avg(15m)}>(({$IF.UTIL.MAX:"ae0"}/100)*5)?
    Last edited by c1support; 30-04-2020, 21:04.

    Comment

    • Thug
      Junior Member
      • Apr 2020
      • 5

      #3
      Originally posted by c1support
      Hi Nikolai

      1. I would also like this feature. If anybody has a solution, I would be interested to learn, too.

      2. How I would try to achieve this is as follows:
      - create three triggers, corresponding to the three levels (50%, 60%, 70%)
      - in Maps: add three link indicators, corresponding to the three triggers (first line 70%, then 60%, last line 50%)
      - in case you are referring to Actions (when you write "raise an alarm"): you can suppress/exclude triggers (does not equal): https://www.zabbix.com/documentation...ion/conditions
      - in case you are referring to Problems: you could set the severity of these triggers low (e.g. Not classified) and filter by severity (i.e. suppressing severity = Not classified)

      => Perhaps there is a more elegant way?

      Besides: at a first glance, there seems to be a bracket mismatch in the above snippet. Do you mean {Juniper 4550:net.if.in[ifHCInOctets.511].avg(15m)}>(({$IF.UTIL.MAX:"ae0"}/100)*5)?
      Thanks a lot for the answer.
      Yeah, I've found a feature to exclude the alarm from notifications, but totally forgot about minimum serverity (and found it only after having a close look on the map menu). This really solves most of the issues. And thanks for the mentioning the importance of the order of triggers - didn't even think that makes any difference unless it's AND/OR.
      And thanks for pointing to the bracket mismatch - in fact I've mistyped here, and Zabbix called me stupid for that

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Links line on map - svg grafics.
        Look at this file js/vector/class.svg.map.js to understand the line stroke-width making algorithm.
        Last edited by Hamardaban; 01-05-2020, 15:15.

        Comment

        • Thug
          Junior Member
          • Apr 2020
          • 5

          #5
          Originally posted by Hamardaban
          Links line on map - svg grafics.
          Look at this file js/vector/class.svg.map.js to understand the line stroke-width making algorithm.
          You made my day! This and previous answers solve the whole thing. Thank you very much!

          Comment

          Working...