Forum Discussion

eh-xiber's avatar
eh-xiber
Icon for Neophyte rankNeophyte
2 months ago

Link SNMP Location to Google Map

I am trying to figure out how to link the location retrieved by SNMP with the Google Map.

I am very new to this but from what I am able to understand Map is 'triggered' only when you add 'Location' to Properties but as Value it needs to be entered manually.

Based on another forum I am able to retrieve the location from snmp and I do see it under the Info Tab of my devices.

Is there a way to call the respective oid of the location or any other way to link the snmp location with the google Map?

Thank you!

2 Replies

  • eh-xiber 

    That has never been tried before, but I thought you might want to give it a shot! You can use a custom script (Python, PowerShell, etc.) to query SNMP, extract the location data, and then update the Location property in LogicMonitor via its API. By scheduling this script to run periodically, you can ensure that the location remains consistently updated.

    https://www.logicmonitor.com/support/logicmodules/propertysources/creating-propertysources#snmp-basic

    You refer to something like this - https://community.logicmonitor.com/discussions/product-discussions/snmp-location-field/12084

  • Unless something changed, I'm not aware of any way to set the location property directly using what is normally available in LM. For example, you can't set it within a PropertySource which is where you normally would what you want. Attempts would create a "auto.location" which doesn't work.

    You likely can use dynamic groups though. Create one with all devices that are in the same site, then set the location property on the group itself. Would mean you have to create a dynamic group for every location/site, but it's very useful to have anyway. Makes it easy to say set a SDT for a whole site that lost internet or power.

    Otherwise, perhaps you can use the LM API to pull the snmp data and set the location property? I suggest submitting your request as feedback within LogicMonitor as a feature request though.