dealing with locations
How does one go about changing the location, is there somewhere I can input gps coordinates to change the map pointers to a specific location. Most of my devices show up in the UK as they are tagged "Server Room".
Thanks Mike
I simply changed the location my SNMP devices provide. I used to set them all up as at DC (for Datacentre), but the map ended up placing everything in Washington, DC, US. When I changed the location param everywhere to "Prague", the map started looking much better
Not an elegant solution, but it worked in a pinch
-- D
On Mon, Aug 18, 2014 at 10:57 AM, Mike Glass MGlass@lccountymt.gov wrote:
How does one go about changing the location, is there somewhere I can input gps coordinates to change the map pointers to a specific location. Most of my devices show up in the UK as they are tagged "Server Room".
Thanks Mike
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
I'd recommend setting sysLocation on each of the devices but if this isn't an option, you can specify one under Device Settings > Override sysLocation > Custom location
Regards,
SG
On 8/18/2014 8:57 AM, Mike Glass wrote:
How does one go about changing the location, is there somewhere I can input gps coordinates to change the map pointers to a specific location. Most of my devices show up in the UK as they are tagged "Server Room". Thanks Mike
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
If you're not able to change the syslocation you can also 'override' the location being received by SNMP. You'd just need to add the below to config.php
$config['location_map']['WHATEVER IS RETURNED BY SNMP'] = "WHATEVER YOU WISH THIS TO BE";
This will then update the location and show on the map on the next poll/discovery of the device.
Jake ________________________________________ From: observium [observium-bounces@observium.org] on behalf of Spencer Gaw [spencerg@frii.net] Sent: 18 August 2014 16:02 To: Observium Network Observation System Subject: Re: [Observium] dealing with locations
I'd recommend setting sysLocation on each of the devices but if this isn't an option, you can specify one under Device Settings > Override sysLocation > Custom location
Regards,
SG
On 8/18/2014 8:57 AM, Mike Glass wrote:
How does one go about changing the location, is there somewhere I can input gps coordinates to change the map pointers to a specific location. Most of my devices show up in the UK as they are tagged "Server Room". Thanks Mike
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
This is intended primarily for when braindead vendors enforce a short (16 chars!) sysLocation, or when you have kit owned by someone else that you can't change the location on.
First choice is *always* to update your devices. Always.
adam.
On 2014-08-18 16:22, Jake Turner wrote:
If you're not able to change the syslocation you can also 'override' the location being received by SNMP. You'd just need to add the below to config.php
$config['location_map']['WHATEVER IS RETURNED BY SNMP'] = "WHATEVER YOU WISH THIS TO BE";
This will then update the location and show on the map on the next poll/discovery of the device.
Jake ________________________________________ From: observium [observium-bounces@observium.org] on behalf of Spencer Gaw [spencerg@frii.net] Sent: 18 August 2014 16:02 To: Observium Network Observation System Subject: Re: [Observium] dealing with locations
I'd recommend setting sysLocation on each of the devices but if this isn't an option, you can specify one under Device Settings > Override sysLocation > Custom location
Regards,
SG
On 8/18/2014 8:57 AM, Mike Glass wrote: How does one go about changing the location, is there somewhere I can input gps coordinates to change the map pointers to a specific location. Most of my devices show up in the UK as they are tagged "Server Room". Thanks Mike
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
here's an example of what I use cause i don't have control over the all servers (specially windoze) and routers.
$config['location_map']['Adelaide'] = "Adelaide, AU";
thanks
Peter Hine
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
This won’t work for everyone, but if you have a way to identify the location in the hostname of the device (Datacenter code name, such as server1.dc2.some.com) then you can have the poller automatically set the physical location based on that by adding some simple code to includes/polling/system.inc.php. This is what I’ve done and it makes adding hosts to Observium with the “correct” location automatic (TBH, I don’t even touch Observium when adding or removing hosts from it since I’ve automated that process and it’s opt-in, not automatic discovery). If you have a CM that manages snmpd.conf for your hosts then sure, you could use that to set the location with similar logic, but what if there’s no CM (Chef or other) or you don’t have access to change this setting (Switches managed by another team, for example)?
I correct/fix what I can at the host level, but sometimes it’s just easier to implement a change in the tool itself.
In system.inc.php, after this line (Should be line 102):
$poll_device['sysLocation'] = str_replace(array('"', '"'), "", $poll_device['sysLocation']);
You could just add some if statements containing preg_match…
if (preg_match(“/.dc2./i", $device['hostname'])) { $poll_device['sysLocation'] = “DataCenter City, CA"; }
During the next poll the location would be automatically set based on hostname. In my case, snmpd.conf isn’t managed and is part of the OS image so my choice was to either manage/update the snmpd config on the devices or make a quick change in Observium. I went with the latter choice due to the number and type of systems involved. Since every device we have has the datacenter location in the hostname, boom, automatically set for any device added to Observium.
Maybe this will help someone, thought I’d toss it out there.
-Hogan
On Aug 18, 2014, at 11:05 PM, Peter.Hine@familycourt.gov.au wrote:
here's an example of what I use cause i don't have control over the all servers (specially windoze) and routers.
$config['location_map']['Adelaide'] = "Adelaide, AU";
thanks
Peter Hine
The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
I put this in the config.php? my devices still do not update to the correct position on the maps, what is the determining factor that places the icons on the map, I am in Helena, MT and tried manually input this in a device - MT Helena Airport, Helena Airport, and still does not show correctly. I did finally put in Helena, MT Airport and that seemed to work best for that one, still when putting Helena, MT xxsitenamexx does not work for most. Does the map query google or some other source that placement is done on a map.
Thanks Mike
Peter.Hine@familycourt.gov.au 8/19/2014 12:05 AM >>>
here's an example of what I use cause i don't have control over the all servers (specially windoze) and routers.
$config['location_map']['Adelaide'] = "Adelaide, AU";
thanks
Peter Hine
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Is there a reason why you're editing config.php rather than using the portion of the web interface designed specifically for this purpose?
I use the following address format and have no issues with map rendering: "123 Fake Street, Denver, CO 80202"
Regards,
SG
On 8/19/2014 10:16 AM, Mike Glass wrote:
I put this in the config.php? my devices still do not update to the correct position on the maps, what is the determining factor that places the icons on the map, I am in Helena, MT and tried manually input this in a device - MT Helena Airport, Helena Airport, and still does not show correctly. I did finally put in Helena, MT Airport and that seemed to work best for that one, still when putting Helena, MT xxsitenamexx does not work for most. Does the map query google or some other source that placement is done on a map. Thanks Mike
Peter.Hine@familycourt.gov.au 8/19/2014 12:05 AM >>>
here's an example of what I use cause i don't have control over the all servers (specially windoze) and routers.
$config['location_map']['Adelaide'] = "Adelaide, AU";
thanks
Peter Hine
The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail.
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
On 08/19/2014 06:23 PM, Spencer Gaw wrote:
Is there a reason why you're editing config.php rather than using the portion of the web interface designed specifically for this purpose?
Probably because they are 2 very distinct things.
Either way, whatever string you use needs to be understood by the geolocation provider you choose.
Tom
I use the following address format and have no issues with map rendering: "123 Fake Street, Denver, CO 80202"
Regards,
SG
On 8/19/2014 10:16 AM, Mike Glass wrote:
I put this in the config.php? my devices still do not update to the correct position on the maps, what is the determining factor that places the icons on the map, I am in Helena, MT and tried manually input this in a device - MT Helena Airport, Helena Airport, and still does not show correctly. I did finally put in Helena, MT Airport and that seemed to work best for that one, still when putting Helena, MT xxsitenamexx does not work for most. Does the map query google or some other source that placement is done on a map. Thanks Mike
Peter.Hine@familycourt.gov.au 8/19/2014 12:05 AM >>>
here's an example of what I use cause i don't have control over the all servers (specially windoze) and routers.
$config['location_map']['Adelaide'] = "Adelaide, AU";
thanks
Peter Hine
The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail.
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
Ok, so how do I select the Geolocation Provider.
Thanks Mike
Tom Laermans tom.laermans@powersource.cx 8/19/2014 10:28 AM >>>
On 08/19/2014 06:23 PM, Spencer Gaw wrote:
Is there a reason why you're editing config.php rather than using the portion of the web interface designed specifically for this purpose? Probably because they are 2 very distinct things.
Either way, whatever string you use needs to be understood by the geolocation provider you choose.
Tom
I use the following address format and have no issues with map rendering: "123 Fake Street, Denver, CO 80202"
Regards,
SG
On 8/19/2014 10:16 AM, Mike Glass wrote:
I put this in the config.php? my devices still do not update to the correct position on the maps, what is the determining factor that places the icons on the map, I am in Helena, MT and tried manually input this in a device - MT Helena Airport, Helena Airport, and still does not show correctly. I did finally put in Helena, MT Airport and that seemed to work best for that one, still when putting Helena, MT xxsitenamexx does not work for most. Does the map query google or some other source that placement is done on a map. Thanks Mike
( mailto:Peter.Hine@familycourt.gov.au) 8/19/2014 12:05 AM >>>
here's an example of what I use cause i don't have control over the all servers (specially windoze) and routers.
$config['location_map']['Adelaide'] = "Adelaide, AU";
thanks
Peter Hine
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
_______________________________________________ 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 listobservium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
http://www.observium.org/wiki/Configuration_Options#Geocoding_Configuration
Tom
On 19/08/2014 18:58, Mike Glass wrote:
Ok, so how do I select the Geolocation Provider. Thanks Mike
Tom Laermans tom.laermans@powersource.cx 8/19/2014 10:28 AM >>>
On 08/19/2014 06:23 PM, Spencer Gaw wrote:
Is there a reason why you're editing config.php rather than using the portion of the web interface designed specifically for this purpose?
Probably because they are 2 very distinct things.
Either way, whatever string you use needs to be understood by the geolocation provider you choose.
Tom
I use the following address format and have no issues with map rendering: "123 Fake Street, Denver, CO 80202"
Regards,
SG
On 8/19/2014 10:16 AM, Mike Glass wrote:
I put this in the config.php? my devices still do not update to the correct position on the maps, what is the determining factor that places the icons on the map, I am in Helena, MT and tried manually input this in a device - MT Helena Airport, Helena Airport, and still does not show correctly. I did finally put in Helena, MT Airport and that seemed to work best for that one, still when putting Helena, MT xxsitenamexx does not work for most. Does the map query google or some other source that placement is done on a map. Thanks Mike
Peter.Hine@familycourt.gov.au 8/19/2014 12:05 AM >>>
here's an example of what I use cause i don't have control over the all servers (specially windoze) and routers.
$config['location_map']['Adelaide'] = "Adelaide, AU";
thanks
Peter Hine
The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail.
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
Yea figured it out, I switched to google and is working way better.
Thanks
Mike
Tom Laermans tom.laermans@powersource.cx 8/19/2014 4:04 PM >>>
http://www.observium.org/wiki/Configuration_Options#Geocoding_Configuration
Tom
On 19/08/2014 18:58, Mike Glass wrote:
Ok, so how do I select the Geolocation Provider.
Thanks Mike
Tom Laermans tom.laermans@powersource.cx
( mailto:tom.laermans@powersource.cx) 8/19/2014 10:28 AM >>>
On 08/19/2014 06:23 PM, Spencer Gaw wrote:
Is there a reason why you're editing config.php rather than using the portion of the web interface designed specifically for this purpose? Probably because they are 2 very distinct things.
Either way, whatever string you use needs to be understood by the geolocation provider you choose.
Tom
I use the following address format and have no issues with map rendering: "123 Fake Street, Denver, CO 80202"
Regards,
SG
On 8/19/2014 10:16 AM, Mike Glass wrote:
I put this in the config.php? my devices still do not update to the correct position on the maps, what is the determining factor that places the icons on the map, I am in Helena, MT and tried manually input this in a device - MT Helena Airport, Helena Airport, and still does not show correctly. I did finally put in Helena, MT Airport and that seemed to work best for that one, still when putting Helena, MT xxsitenamexx does not work for most. Does the map query google or some other source that placement is done on a map. Thanks Mike
( mailto:Peter.Hine@familycourt.gov.au) 8/19/2014 12:05 AM >>>
here's an example of what I use cause i don't have control over the all servers (specially windoze) and routers.
$config['location_map']['Adelaide'] = "Adelaide, AU";
thanks
Peter Hine
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
_______________________________________________ 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 listobservium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing listobservium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (8)
-
Adam Armstrong
-
Dan Yasny
-
Hogan Whittall
-
Jake Turner
-
Mike Glass
-
Peter.Hine@familycourt.gov.au
-
Spencer Gaw
-
Tom Laermans