Hi Andi,
I’ve found that Observium does look up Internet™ for map co-ordinates, I haven’t required to use Long/Lat. yet. I’m using “Armidale, NSW, Australia” in my overridden location text box and “UNE, Armidale, NSW, Australia”.
If you can search for the location by street address in Google Maps, you Should™ be able to find it inside Observium.
Have a fantastic day,
Jolyon Ansuz
Senior Network and Communications Administrator University of New England P: +61 2 6773 3568 M: +61 412 735 836
“If you want something new, you have to stop doing something old.”, Peter Drucker (IEEE)
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Andi Qirjazi Sent: Friday, 31 July 2015 01:56 To: Observium Network Observation System observium@observium.org Subject: Re: [Observium] Configuring map interface on new observium installation
Hi Tylla,
thanks for the explanation, but again the button doesn't want to move from Atlantic Ocean... :) I did the following configuration
1. At Cisco device: snmp-server location "TB HQ Office" 2. At config.php the following configuration: $config['location_map']['TB HQ Office']="Rruga Ibrahim Rugova, 1001, Tirana, [41.316667, 19.819135]"; and as Geocoding API I'm using "mapquest", but again no change on the map.
I added as default Lat & Long Tirana's Coordinates, as you suggested, but again no change on the button. :)
$config['geocoding']['default']['lat'] = "41.316667"; // Default latitude $config['geocoding']['default']['lon'] = "19.819135"; // Default longitude
at Observium web page, there is the following event log :
Recent Eventlog Entries Date Device Entity Message 2015-07-30 16:40:02 r_tr System Location -> Rruga Ibrahim Rugova, 1001, Tirana, [41.316667, 19.819135] 2015-07-30 16:35:08 r_tr System Location -> TB HQ Office
So, Observium has recognized as address or location, but is not reflected to the map...
So, I'm missing something , but what is it....:)
and something else, should observium connect to the internet for using the map? I'm check at firewall, but no traffic from Observium is generated. I have configured proxy settings at config.php file, but no traffic at all.
thanks in advance, Andi
On Tue, Jul 21, 2015 at 1:07 PM, Attila Nagy <tylla_at_memetic.org@tylla.humailto:tylla_at_memetic.org@tylla.hu> wrote: 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.commailto:gordon.wright@uk.bp.com> wrote: Adding this fixed it for me. I had to turn off authentication on my proxy ☹ so not ideal.
config.php $config['http_proxy'] = "yourproxy:80";
Gordon
From: observium [mailto:observium-bounces@observium.orgmailto: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.cxmailto: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.zamailto: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.commailto:aqirjazi@gmail.com> Reply-To: "observium@observium.orgmailto:observium@observium.org" <observium@observium.orgmailto:observium@observium.org> Date: Tuesday 07 July 2015 at 17:14 To: "observium@observium.orgmailto:observium@observium.org" <observium@observium.orgmailto: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=aaaaaaaaaaaaaaaaaaaaahttp://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.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.orgmailto:observium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.orgmailto:observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.orgmailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium