Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • Professional Edition
    • Scripts

    Description

      We had problems with Observium/OSM providing different results (correct city or unknown) for the same location string so I switched to LocationIQ.

      I found that now all Cities are Unknown. After running the test_geo.php script with debug mode I found that while LocationIQ returned the city correctly, the result was Unknown so I added more debug and found out that Observium was looking for a town index in the result while the result contained a city index.

      Maybe LocationIQ changed their result set at some point, so I patched it locally and it works now.

       

      So attached is my patch for includes/definitions/geo.inc.php

      Attachments

        Activity

          [OBS-4153] Patch: LocationIQ City missing

          Fixed in r12171.

          landy Mike Stupalov added a comment - Fixed in r12171.

          sysLocation string is "London, Telehouse Docklands East [51.5115146, -0.0012534]"

          AiYoriAoshi Benjamin Weik added a comment - sysLocation string is "London, Telehouse Docklands East [51.5115146, -0.0012534] "

          Seems as fine, but can you show me your sysLocation string?

          landy Mike Stupalov added a comment - Seems as fine, but can you show me your sysLocation string?

          General questions and device support can be discussed in our Discord channel, click here to join.


          Please make and attach additional information about the device:

          • full snmp dump from device:

            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

            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:

            ./discovery.php -d -h <device>
            ./poller.php -d -h <device>

          • additionally attach device and/or vendor specific MIB files

          This comment is added automatically.

          bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: 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 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: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

          People

            landy Mike Stupalov
            AiYoriAoshi Benjamin Weik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: