Ad Widget

Collapse

Openstreetmap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikevmk
    Junior Member
    • May 2013
    • 1

    #1

    Openstreetmap

    Hi everyone,

    I'm trying to implement Openstreetmap support (on kiddie level mostly) and i'll be glad if you'll want to take participate in development. Here is the repo:

    OpenStreetMap/Openlayers support for Zabbix. Contribute to mikevmk/osm-zabbix development by creating an account on GitHub.


    Mike
  • alfsolli
    Junior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Aug 2010
    • 19

    #2
    Cool!

    This is really cool! I'm playing abit with it now.

    Can't get it to work though. Seems I have to input GET variables manually, and that's fine for testing roughly, but trying dev/osm/index.php?groupid=6&type=problem for example, throws a PHP error:
    PHP Notice: Undefined variable: hostids in /srv/www/htdocs/dev/osm/osm-zabbix.php on line 114,

    I've added long and lat values to the inventory field of one host in that groupID, and when testing, it's currently has one trigger in problem state.

    Map load, but no hosts are shown at my location.. :s

    Nevermind, zbx_min_severity was set above the trigger that was active. Now this is even cooler, good job!
    Last edited by alfsolli; 04-06-2013, 20:54. Reason: Found the error.

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      oh, wow, yeah. two great things combined
      wanna put up some screenshots here ?
      Zabbix 3.0 Network Monitoring book

      Comment

      • alexddf
        Junior Member
        • Jun 2013
        • 6

        #4
        Originally posted by alfsolli
        Map load, but no hosts are shown at my location.. :s
        For me, hosts appeared on the map after creating a user in the group "API access" (with the right to read the desired host) and changes osm-zabbix.conf.php.
        Attached Files

        Comment

        • alfsolli
          Junior Member
          Zabbix Certified Trainer
          Zabbix Certified Specialist
          • Aug 2010
          • 19

          #5
          Zoom problem?

          Am I the only one who loses hosts on the map sometimes when zooming in/out ?

          At the same time, I get PHP Notice: Undefined variable: hostids in /srv/www/htdocs/dev/osm/osm-zabbix.php on line 114, in apache's error log.

          The problem host is definitively within viewing area while zooming, so this shouldn't happen.

          Any idea why?

          Comment

          • rreilly1965
            Junior Member
            • Jan 2014
            • 2

            #6
            Osm

            so i added my zabbix user and pass the conf file but i get
            map = new OpenLayers.Map("basicMap", options);
            var mapnik = new OpenLayers.Layer.OSM();
            var zoom = 7;
            map.addLayer(mapnik);
            map.setCenter(centerPosition, zoom);

            function toggleLoadingPanel() {
            map.getControlsByClass('OpenLayers.Control.Loading Panel')[0].toggle();
            }

            API error -32602: Login name or password is incorrect.
            its simple zabbix/zabbix i am running latest stable 2.2

            Comment

            • alexddf
              Junior Member
              • Jun 2013
              • 6

              #7
              The user is in the group API access?

              Comment

              • rreilly1965
                Junior Member
                • Jan 2014
                • 2

                #8
                I am using admin for testing, i do not see a api access group in zabbix does it need to be added ?
                Thanks
                Rob

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  Originally posted by rreilly1965
                  I am using admin for testing, i do not see a api access group in zabbix does it need to be added ?
                  Thanks
                  Rob
                  since 2.0, there is no api access group - all users have access to the api
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • joseph_ven
                    Junior Member
                    • Feb 2014
                    • 5

                    #10
                    Experiment

                    Hey! Thanks
                    I will try this...

                    Comment

                    • EvgenyShakirov
                      Junior Member
                      • Feb 2014
                      • 6

                      #11
                      osm local

                      Thank you very much I have everything worked!
                      How do I configure it to not take maps from the Internet and from my server Locally OSM?

                      Comment

                      • AlexYoung
                        Member
                        • Jul 2013
                        • 37

                        #12
                        Has anyone got this to work i'm getting a blank screen at the moment when i look at the index

                        Comment


                        • shilpab
                          shilpab commented
                          Editing a comment
                          hi, Can you please explain how did it work for you, i am not able to get the map
                      • shilpab
                        Junior Member
                        • Jun 2020
                        • 17

                        #13
                        Originally posted by EvgenyShakirov
                        osm local

                        Thank you very much I have everything worked!
                        How do I configure it to not take maps from the Internet and from my server Locally OSM?
                        Hey did it work for you?

                        Comment

                        Working...