WHOI is a private research institution spread out over many acres of Falmouth MA USA. The property is all privately held; so none of the local street addresses can be found on Google or MapQuest, etc. Several of these buildings are multistory and we have an IDF on each floor.
All that being said, it would be quite helpful if we use use regexp to map those locations:
$config['location_map']['/^Clark.*/'] = "Clark Lab [40.053962, -86.931614]";
On 05/23/2018 05:11 PM, Thomas Peters wrote:
This is my revised solution:
Edit the config.php file to include your locations as follows:
$config['location_map']['mcts-ad-sr'] = "mcts-ad-sr [40.053962, -86.931614]";
They will appear on the map, the map pop-up will give the friendly name, and the equipment list will show your location codes, along with the lat/long.
Not ideal, but it avoids the overhead of geocoding each device.
This solution is no good if you have a large number of sites- too much work.
*From:* observium [mailto:observium-bounces@observium.org] *On Behalf Of *Storer, Darren *Sent:* Wednesday, May 23, 2018 10:59 AM *To:* Observium observium@observium.org *Subject:* Re: [Observium] Location of a switch
Thanks Thomas,
I will be using your solution!
Regards
Darren
On 23 May 2018 at 15:01, Thomas Peters <TPeters@mcts.org mailto:TPeters@mcts.org> wrote:
The answer is YES, it plots them on the map correctly! *From:* observium [mailto:observium-bounces@observium.org <mailto:observium-bounces@observium.org>] *On Behalf Of *Thomas Peters *Sent:* Wednesday, May 23, 2018 8:26 AM *To:* Observium <observium@observium.org <mailto: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.org <mailto: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.org <mailto:TPeters@mcts.org>> To: "observium@observium.org <mailto:observium@observium.org>" <observium@observium.org <mailto: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, 1^st 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.org <mailto:tpeters@mcts.org> Desk: 414.343.1720 | Helpdesk: x3400 or helpdesk@mcts.org <mailto:helpdesk@mcts.org> _Milwaukee County Transit System <http://www.ridemcts.com/>_ 1942 N 17th Street | Milwaukee, WI 53205 Check us out on Facebook <https://www.facebook.com/mcts> & Twitter <https://twitter.com/RideMCTS> _______________________________________________ observium mailing list observium@observium.org <mailto: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