The answer is YES, it plots them on the map correctly!
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Thomas Peters Sent: Wednesday, May 23, 2018 8:26 AM To: Observium observium@observium.org Subject: Re: [Observium] Location of a switch
Can I put my location code into the syslocation field on the device, then transpose it in the config file, something like this? $config['location_map']['mcts-ad-sr'] = "[43.053962, -87.931614]";
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong Sent: Tuesday, May 22, 2018 4:10 PM To: Observium <observium@observium.orgmailto:observium@observium.org> Subject: Re: [Observium] Location of a switch
Hi,
We expect a street address in the location field (or more specifically a location field that can be parsed by whatever geolocation service is used).
You can put coordinates directly into sysLocation inside square brackets like :
http://docs.observium.org/config_options/#reverse-geocoding
To quickly repoll the basic device data when testing you can do ./poller.php -h <hostname/device_id> -m system
adam.
------ Original Message ------ From: "Thomas Peters" <TPeters@mcts.orgmailto:TPeters@mcts.org> To: "observium@observium.orgmailto:observium@observium.org" <observium@observium.orgmailto:observium@observium.org> Sent: 2018-05-22 21:41:48 Subject: [Observium] Location of a switch
I have installed Observium CE on CentOS 7.4 and am trying to get a handle on the question of location for devices.
I have 7 locations, all within the same city. I put in a default location in the configuration, by longitude and latitude. Sure enough, there’s a green checkmark on the map right where my main building is.
For Nagios purposes, we have location codes that consist of the company, site (may be omitted) building, and room. So you might find something like mcts-ad-sr (admin building, server room) or mcts-brg-1flidf (Bridge Street Garage, 1st floor IDF.) So far, I am using the same arbitrary codes for Observium, in the SNMP “location” on the switch.
I was hoping to use these sort of codes to precisely locate a switch for the humans that use Observium, while hoping there was already a table built into the tool to translate the codes to map coordinates.
I don’t know enough about the SNMP “location” code to understand if I’m using it correctly. We have always just treated it as a free-text locator code, usable only by my IT department.
Does Observium expect to see a street address in there? I tried that; doesn’t seem to work. I don’t have an API key for the geocoding, and it probably won’t work anyhow, since all these devices have non-routable 10.x.x.x addresses, which geocoding can’t make sense of.
Any help appreciated- Thanks.
Thomas M. Peters | Sr. Systems Administrator | tpeters@mcts.orgmailto:tpeters@mcts.org Desk: 414.343.1720 | Helpdesk: x3400 or helpdesk@mcts.orgmailto:helpdesk@mcts.org Milwaukee County Transit System http://www.ridemcts.com/
1942 N 17th Street | Milwaukee, WI 53205 Check us out on Facebookhttps://www.facebook.com/mcts & Twitter https://twitter.com/RideMCTS