Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-3022

[Solved] Geolocation with Google API not working

Details

    • Help
    • Resolution: Done
    • Minor
    • None
    • Community Edition
    • Web Interface

    Description

      I notice there seem to be a number of posts on this subject that have been closed off without resolution, however I have hit the same problem and have discovered what the issue is.

      The "config" table in MySQL is supposed to contain two entries for "direct_url" and "reverse_url", except it doesn't, so the API calls fail. I only discovered this after switching from the default Geolocation to Google, so I'm not sure if these entries were never there or blown away when I changed to Google.

      I added the correct API Endpoint URLs to "config" table and now Google API works. I don't really want to change things now its working, so not sure if the issue would occur again if I change the API provider.

      Needs investigation by the developers as to why the API Endpoints are missing when you install a vanilla Observium CE or change API provider in the GUI.

      I can't see anything in any documentation to say I should have to do anything other than change the API provider in the GUI, so I would expect the code to be setting the correct API Endpoint URLs for me.

       

      Attachments

        Activity

          [OBS-3022] [Solved] Geolocation with Google API not working

          cmit and please write output for:

          ./discovery.php -VV

          I need to see software versions for check.

          landy Mike Stupalov added a comment - cmit and please write output for: ./discovery.php -VV I need to see software versions for check.
          landy Mike Stupalov added a comment - - edited

          Please open/click "Full dump" menu entry in "Global Settings" the top right menu.

          Find there "geo_api" entry and open this thread with google entry,

          make sure that you same entries as in my screenshot:

           

          This params not in configs, that why you not see any documentation and other descriptions about this params.

          This is not editable definitions.

          landy Mike Stupalov added a comment - - edited Please open/click "Full dump" menu entry in "Global Settings" the top right menu. Find there "geo_api" entry and open this thread with google entry, make sure that you same entries as in my screenshot:   This params not in configs, that why you not see any documentation and other descriptions about this params. This is not editable definitions.

          api endpoint stored in definitions, which not readed in CE edition, but keeped there.

          landy Mike Stupalov added a comment - api endpoint stored in definitions, which not readed in CE edition, but keeped there.
          landy Mike Stupalov added a comment - - edited

          Did you watch the documentation here geocoding-configuration?

          And maybe you went to the global settings section "Locations" and selected required GEO APIs?

          landy Mike Stupalov added a comment - - edited Did you watch the documentation here geocoding-configuration ? And maybe you went to the global settings section "Locations" and selected required GEO APIs?

          People

            landy Mike Stupalov
            cmit Chris Macneill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: