Hmmm. Now I’m not so sure this is a good solution. I think what I’m seeing is that the Devices list now shows the longitude and latitude in the Device/Location column, not the location codes I would rather see there.
Is there another way to go about this?
Locating my devices by lat/long is better because there are 3 to 5 separate buildings at some sites, and only a few have addresses.
-T
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> wrote:
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.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 :
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>
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.org
Desk: 414.343.1720 | Helpdesk: x3400 or helpdesk@mcts.orgMilwaukee County Transit System
1942 N 17th Street | Milwaukee, WI 53205
Check us out on Facebook & Twitter
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium