Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • Enterprise Edition
    • Poller

    Description

      When polling devices for geo-data with Google API, it times out in the poller.

      When I run the curl-command with my API-key that the debug outputs, it works:

       

      curl -i --connect-timeout 15 -X GET -H 'Connection: close' -H 'User-Agent: Observium/22.8.12250' 'https://maps.googleapis.com/maps/api/geocode/json?address=Kvinnerstaskolan+Orebro+Sweden&key=***&sensor=false&language=en&limit=1'

      Attachments

        Activity

          [OBS-4233] Geolocation Google API
          adama Adam Armstrong made changes -
          Comment [ _*General questions and device support can be discussed in [our Discord channel, click here to join|https://discord.gg/GjpNXKWm8W].*_
          ----

          Please make and attach additional information about the device:
           * full snmp dump from device:
          {noformat}
          snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1 > myagent.snmpwalk
          snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk
          {noformat}
            _If device not support SNMP version 2c, replace -v2c with -v1._

           * If you have problems with discovery or poller processes, please do and attach these debugs:
          {noformat}
          ./discovery.php -d -h <device>
          ./poller.php -d -h <device>
          {noformat}
           
          * additionally attach device and/or vendor specific MIB files

          ----
          {color:#505F79}_This comment is added automatically._{color} ]
          landy Mike Stupalov made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Pending Response [ 10000 ] New: Resolved [ 5 ]
          landy Mike Stupalov made changes -
          Status Original: In Review [ 10101 ] New: Pending Response [ 10000 ]

          This is somehow related with your network environment. Probably proxies or something.

          I just tested (also with your location string), all works fast:

          ./test_geo.php  -a google 'Kvinnerstaskolan Orebro Sweden'
          +--------------------------------+
          | Location                       |
          +--------------------------------+
          | Kvinnerstaskolan Orebro Sweden |
          +--------------------------------+
           
          +----------+------------+------------+---------+------------+---------+--------+-------+
          | Geo: API | Lat        | Lon        | Country | State      | County  | City   | Error |
          +----------+------------+------------+---------+------------+---------+--------+-------+
          | google   | 59.3565713 | 15.2429698 | Sweden  | Örebro län | Unknown | Örebro |       |
          +----------+------------+------------+---------+------------+---------+--------+-------+
          

          landy Mike Stupalov added a comment - This is somehow related with your network environment. Probably proxies or something. I just tested (also with your location string), all works fast: ./test_geo.php -a google 'Kvinnerstaskolan Orebro Sweden' +--------------------------------+ | Location | +--------------------------------+ | Kvinnerstaskolan Orebro Sweden | +--------------------------------+   +----------+------------+------------+---------+------------+---------+--------+-------+ | Geo: API | Lat | Lon | Country | State | County | City | Error | +----------+------------+------------+---------+------------+---------+--------+-------+ | google | 59.3565713 | 15.2429698 | Sweden | Örebro län | Unknown | Örebro | | +----------+------------+------------+---------+------------+---------+--------+-------+
          bamsegrill Tommy Jonsson made changes -
          Attachment New: curl-working-output.txt [ 20104 ]
          bamsegrill Tommy Jonsson made changes -
          Attachment New: poller-location-output.txt [ 20103 ]
          landy Mike Stupalov made changes -
          Status Original: Pending Response [ 10000 ] New: In Review [ 10101 ]
          bamsegrill Tommy Jonsson made changes -
          Attachment Original: poller-location-output.txt [ 20102 ]
          bot Observium Bot made changes -
          Status Original: Open [ 1 ] New: Pending Response [ 10000 ]
          bamsegrill Tommy Jonsson created issue -

          People

            landy Mike Stupalov
            bamsegrill Tommy Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: