Ad Widget

Collapse

Maps-within-maps -- HOW TO MAKE YOUR ZABBIX SIMILAR TO MAP IN SCREENSHOTS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ypircc
    Junior Member
    • Jun 2006
    • 7

    #1

    Maps-within-maps -- HOW TO MAKE YOUR ZABBIX SIMILAR TO MAP IN SCREENSHOTS

    After downloading and playing around with Zabbix I found out there was _very_ little documentation, especially on Maps. Anyway, I really wanted a map similar to the one displayed in the screenshots. I could not figure this out for the life of me. After searching the forum I saw that you can add a map within a map, however I could not find that item anywhere. First off, create your basic 'network map'. This should contain your various servers, routers, switches, etc... Next, download your 'country' map, I'm attaching the one I am using. Okay, now first of all you need to do some things before uploading your map. Now, let's say you have some servers in the state of Florida, and you want Florida to be 'red' if there are any problems there. Open the map up in a image editor (I used GIMP). Next you want to outline the state (Florida in this example) that you'd like to use. (In GIMP you can use the Fuzzy Selector which will usually select the state you wish rather precisely with just one click) After selecting the state you are choosing, copy it to a new image. Now, first you want to choose how you'd like it to be displayed if everything is fine. Let's assume you don't want any colors, just the default image if its fine then just save this plain image as state-blank.png. Next, you want to show how it will look if there is a problem, (in this example red), so fill the state with the color red and save the image as state-red.png. Next you want to upload the 3 images you should now have. They should be the full map of the country, the state when everything is fine (blank), and the state when there are problems (red). You upload the images through Configuration --> General --> Images --> Create Image . You want to upload the full country as 'background' and the state images as Icon's.

    Next create a new map under Configuration-->Maps this is going to be the 'main country' map. I used a default 800x600 for the Background Image select the country image you uploaded. After you save it, go to edit the maps items and coordinates. Click on 'Add Element' Type is 'Map' then select the network map you created where it says 'Map'. Next, for the Icon OFF select the image you wanted to display when there are no problems and for Icon ON select the red image you uploaded that would confirm a problem. Set the coordinates of the state, in this example, Florida is at about 600x400 The URL can remain blank. If all is well you should have the country map with a state that is either blank or red if there is an issue.

    ** Attached are my sample Florida blank and Florida red. Here is the link to the full USA map I used...I changed it from a jpeg to a png but here is the jpeg http://www.lib.utexas.edu/maps/unite.../usa_blank.jpg
    Attached Files
    Last edited by ypircc; 05-06-2006, 20:18.
  • ypircc
    Junior Member
    • Jun 2006
    • 7

    #2
    Screenshot In Action



    Here's a final snapshot 'in action'

    Comment

    • illumin8
      Member
      • Jun 2005
      • 36

      #3
      Nice tutorial. Thanks.

      Comment

      • bailecm2
        Junior Member
        • May 2006
        • 8

        #4
        What happens if you have sites in multiple states? If you had two states go down at once which map would be used? Would they both not fight to be used? Either one red state map or the other? Just a thought!

        Comment

        • baz0r
          Junior Member
          • Jun 2006
          • 3

          #5


          Thanks for the guide Ypircc, I've successfully setup a map (with a nice background courtesy of microsoft maps!), but I have another question for you;

          How do you configure a location to have show multiple problems (your image shows florida office with 4 problems)? I am only able to configure a location to be 'OK' or 'FAIL/TRUE', but reporting the number of failures at a location would be much more helpful!

          What should I be doing differently?

          Comment

          • elkor
            Senior Member
            • Jul 2005
            • 299

            #6
            Originally posted by bailecm2
            What happens if you have sites in multiple states? If you had two states go down at once which map would be used? Would they both not fight to be used? Either one red state map or the other? Just a thought!
            both states would go red, and clicking on the red states would take you to the appropriate sub maps

            Comment

            • elkor
              Senior Member
              • Jul 2005
              • 299

              #7
              Originally posted by baz0r
              Thanks for the guide Ypircc, I've successfully setup a map (with a nice background courtesy of microsoft maps!), but I have another question for you;

              How do you configure a location to have show multiple problems (your image shows florida office with 4 problems)? I am only able to configure a location to be 'OK' or 'FAIL/TRUE', but reporting the number of failures at a location would be much more helpful!

              What should I be doing differently?
              the number of failures on the sub map should propagate up and display on the main map provided you have the "icon label type" on your main map configured to display that information

              Comment

              • raminix
                Member
                • Jun 2006
                • 37

                #8
                I'm having the same issue as well...



                My status icon will change when the nested map has an element with a problem, but the status label always reads OK and never changes, while if you check the nested map, the element itself has the correct status text.

                Comment

                • raminix
                  Member
                  • Jun 2006
                  • 37

                  #9
                  Patch for total number of problems and nested maps

                  Thanks to SLMitch for a working patch!



                  I tried this and it fixed my problem of when a nested map has an element with a problem, only the icon changing and text continuing to say "OK".

                  Comment

                  • SLMitch
                    Member
                    • May 2006
                    • 39

                    #10
                    Yes, it is OK now

                    Comment

                    • cdouglas97
                      Junior Member
                      • Aug 2006
                      • 5

                      #11
                      I am trying to implement the state map example. An example of the problem I am having is that the transparent part of the image for Texas takes up most of the states of OK and NM, so that you cant click on most of the state to go to the next map. Is there a way around this or do you have to use an exploded map where the states are far apart enough where they will not overlap?

                      Thanks
                      Chris

                      Comment

                      • AlfieRB
                        Junior Member
                        • Oct 2006
                        • 16

                        #12
                        Hello,

                        I followed this tutorial, and so far I'm able to get the map setup with the appropriate state overlays that change color if needed. I noticed in the screenshots on the main site (http://www.zabbix.com/screenshots_11_maps.php) that under each country with problems, the number of problems show up.

                        Anyone know exactly how to do that? I've been looking through the interface and I'm stumped...

                        Thanks in advance for any help...

                        Comment

                        • dantheman
                          Senior Member
                          • May 2006
                          • 209

                          #13
                          WHen you click on the name of your map in config mode, there is an option there that says Icon label type and mine is set to Element Name and I'm getting the status, there is also an option Status Only, which one would assume.. just displays the status.

                          Comment

                          • vrtareg
                            Senior Member
                            • May 2006
                            • 293

                            #14
                            Hi

                            Does anyone have an empty maps of the world?
                            Or parts of world ?

                            Thanks
                            Areg

                            Comment

                            Working...