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
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} ] |
Resolution | New: Cannot Reproduce [ 5 ] | |
Status | Original: Pending Response [ 10000 ] | New: Resolved [ 5 ] |
Status | Original: In Review [ 10101 ] | New: Pending Response [ 10000 ] |
Attachment | New: curl-working-output.txt [ 20104 ] |
Attachment | New: poller-location-output.txt [ 20103 ] |
Status | Original: Pending Response [ 10000 ] | New: In Review [ 10101 ] |
Attachment | Original: poller-location-output.txt [ 20102 ] |
Status | Original: Open [ 1 ] | 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 | |
+----------+------------+------------+---------+------------+---------+--------+-------+