Ad Widget

Collapse

Colour elements indication on maps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • evgeny elkin
    Member
    • Jul 2007
    • 52

    #1

    Colour elements indication on maps

    Hello community!
    Is it possible to realize the same feature in Zabbix like it realized in Zenoss (see attachment) - colour indicate of elements on maps? Colours depends of element's triggers severity, e.g. yellow - information, orange - high, red - disaster and so on. Thanks for any sugestions.
    Attached Files
  • jean
    Member
    • Apr 2006
    • 85

    #2
    I agree with you. This feature would be a plus for Zabbix !

    Comment

    • SMB
      Member
      • Sep 2007
      • 30

      #3
      In a way, yes it is. You would have to create your own icons however to do it.
      Attached Files

      Comment

      • evgeny elkin
        Member
        • Jul 2007
        • 52

        #4
        Icons indicates a status of a object - on, off or unknown, but i told about triggers severity indication. In short - viewing map i want to know about level of trigger's severity , like in 'Owerview" panel .

        Comment

        • savd
          Junior Member
          • Jul 2008
          • 7

          #5
          Well, I`m certainly not a coder, and know next to nothing about PHP, but this ugly fix works for me.

          For zabbix 1.5.3:
          1. open map.php;
          2. search for this code:
          PHP Code:
          if( ($img get_png_by_selementid($db_element["selementid"])) )
          {
          ImageCopy($im,$img,$db_element["x"],$db_element["y"],0,0,ImageSX($img),ImageSY($img));

          3. delete it;
          4. few lines after that change this:
          PHP Code:
          $color          $el_info['color']; 
          to this:
          PHP Code:
          $color          $el_info['color'];
          if ( 
          $color == $darkred)
          {
          ImageFilledRectangle($im,$db_element["x"],$db_element["y"],$db_element["x"]+ImageSX($img),$db_element["y"]+ImageSY($img),$gray);
          }
                          
          if( (
          $img get_png_by_selementid($db_element["selementid"])) )
          {
          ImageCopy($im,$img,$db_element["x"],$db_element["y"],0,0,ImageSX($img),ImageSY($img));

          After that every element with red label on the map would also had filled gray background. You should use icons with transparent background, like "Notebook" from standard set.

          Comment

          Working...