Hi!
Here it is an example that works for me:
I set "Qualitis Office" as an SNMP location string on my server and
$config['location_map']['Qualitis Office'] = "1131 Budapest, Béke utca 116 [47.541773,19.085868]";
in my observium config.
But it works also if I write only the coordinates to the SNMP location string like "[47.541773,19.085868]".
Oh and one small thing: it's written in Latitude, Longitude order not the other way around as you wrote. :)
Btw we are using the mapquest geocoding api:
$config['geocoding']['api'] = 'mapquest';
A workaround for the "green button in the Atlantic Ocean" problem is to set the default location of geocoding. This way at least those misbehaving hosts won't be thousands of kilometers/miles away from the other ones.
$config['geocoding']['default']['lat'] = "47.498372"; // Default latitude
$config['geocoding']['default']['lon'] = "19.040554"; // Default longitude
This is Budapest, but you can set any coordinate you whish.
And you should do a manual poll each time you change the server location string, otherwise it won't get updated for a few minutes.
One last thought. Check whether you are not using any accented characters (Unicode and like) only ASCII chars in your location string. I had all kind of funny results when I used Hungarian street names with accented characters in the SNMP location string.
Regards,
Tylla
On 2015-07-20 16:18, Andi Qirjazi wrote:
Hi,
Sorry for my late reply, but summer time :) and should work with project as well.So, unfortunately same situation. what I did:I found longitude & latitude from google map and configure SNMP-SERVER Location at Cisco router as follow: "street name. [long, lat]"I tried both configurations for API, google & MapQuest, but again same problem, green button at Atlantic Ocean.at Device\location is shown the location that I have configured at Snmp location, but no sign at the Observium's map.
Please could show me a sample of a working config file and snmp location, because is getting really frustrated this situation.. :)
thanks in advance,Andi
On Fri, Jul 10, 2015 at 2:50 PM, Wright, Gordon <gordon.wright@uk.bp.com> wrote:
Adding this fixed it for me. I had to turn off authentication on my proxy L so not ideal.
config.php
$config['http_proxy'] = "yourproxy:80";
Gordon
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Milton Ngan
Sent: 09 July 2015 18:16
To: Observium Network Observation System
Subject: Re: [Observium] Configuring map interface on new observium installation
The location_map maps the string retrieved from the sysLocation value of your devices and maps it to a location that can be geolocated via Google or Mapquest.
This is useful if you have special location names which cannot be geolocated, or your device doesn’t support strings long enough to enter in the full address. It doesn’t map the device name to a location which it looks like what you are trying to do. Try configuring the devices’ SNMP sysLocation with the string you have and it should work.
From: observium on behalf of Andi Qirjazi
Reply-To: Observium Network Observation System
Date: Thursday, July 9, 2015 at 8:11 AM
To: Observium Network Observation System
Subject: Re: [Observium] Configuring map interface on new observium installation
Hi,
Sorry, this I didn't get it. Should be same location_map for both devices?
Thanks,
Andi
On Thu, Jul 9, 2015 at 4:55 PM, Tom Laermans <tom.laermans@powersource.cx> wrote:
Hi,
The location_map maps locations from one to the other, it's not meant for specific devices, unless you have Device1 as location set for some devices...
If you want to override a single device's location, go to the device properties and set it there.
Tom
On 2015-07-09 16:53, Andi Qirjazi wrote:
Hi Rudolf,
Yes, I'm still having problems. The Map shows only the green button in Atlantic ocean.
I have the following sysLocation at config file for each device:
$config['location_map']['Device1']="HQ, Berlin, DE";
$config['location_map']['Device2']="HQ, Rome, IT";
Please, correct me if I'm wrong.
Thanks,
Andi
On Thu, Jul 9, 2015 at 1:30 PM, Rudolf Hoehler <rudolf@saicomvoice.co.za> wrote:
Hello Andi,
Are you still having the problem? What is the sysLocation string that you use?
Rudolf
From: Andi Qirjazi <aqirjazi@gmail.com>
Reply-To: "observium@observium.org" <observium@observium.org>
Date: Tuesday 07 July 2015 at 17:14
To: "observium@observium.org" <observium@observium.org>
Subject: [Observium] Configuring map interface on new observium installation
Hi,
I have just installed & configured observium for the first time. The first two devices are added and seems working, but I'm having problem displaying these devices on the map. All the time there is a blue sign on the middle on Atlantic ocean, it doesn't matter what I configure as device location.
Please any idea how to configure the map?
I have tried all the possible configurations at /opt/observium/config.php settings but with no success.
This installation is behind a proxy server, but I have allowed all the traffic from observium host and I don't see any traffic from this host towards proxy server.
I did the following configuration on monitored devices for SNMP settings as follow:
R_TR#sh run | s snmp
snmp-server community aaaaaaa RO
snmp-server ifindex persist
snmp-server location Berlin, DE
snmp-server contact bbbbbbbbbb
at Observium main page, at location tab, is listed Berlin, DE (or Rome, IT another device) but no indication on the map for both devices.
regarding proxy server configuration, at \opt\observium\config.php file I have the following settings:
//configure proxy server settings
$config['http proxy'] = "myproxy:8080";with no username and password, because I have allowed all the traffic from observium host and it has internet access, because I did manually update and it worked normally.
Please could you send me a sample of a working map configuration?
I have the following configuration regarding geolocation at config.php file:
// $config['frontpage']['map']['region'] = "https://developers.google.com/chart/interactive/docs/gall$
$config['geocoding']['enable'] =TRUE;
$config['geocoding']['dns'] = FALSE;
$config['location_menu_geocoded'] = FALSE;
$config['geocoding']['api'] = 'www.googleapis.com/geolocation/v1/geolocate?key=aaaaaaaaaaaaaaaaaaaaa';
I even tried with just 'google' as API, but it doesn't change anything.
thanks in advance,
Andi Qirjazi
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium