Hi All
Is there a way i can add a Map(dynamic) created using python, stored as json into Solarwinds, Can anyone help with the process of doing this?
If you figure out the details of the json formats that orion maps use to place things yes this is within the realm of possible things, but I've talked to a lot of people about map automations and so far nobody has built it.
But there is also a question around what is your python going to be adding that Orion isn't already natively providing? Any entity relationships Orion knows about can already be displayed so the path of least resistance might be to create a group of the intended objects, make sure they have relationships defined, and then the automatic map that is made by orion could have what you need already.
Yes, Not much, in that orderas mesverrum said, it's technically doable but anyone's game
I want to attempt it, I have a JSON Map file ready to go. Can i get the steps? Do i use API or is there something else i can try?
Cant give steps with certainty because while it is definitely possible no-one's really figured it out yet outside the SW devs. I've not tried myself (but will probably need to for a project in this quarter) but have been in discussion with a couple people trying.. Maps seem to exist or mostly exist in the containers table, and so a step somewhere might be to use the API to insert a new entry in that table. There's almost certainly another step of querying your stuff to select a group of them to become objects on the map. The big one will be to format the data info the form that the container wants in order to display it properly as a map.
How are you planning to make sure that the devices on the Map are already on SolarWinds? The JSON file i have has an entire site on it. I am not even sure that those devices are there in the environment.
Its possible as I've done it before.Trick is to open Chrome Devtools (or browser of your choice equivalent) go to the network tab, and the make a map update or something.This will give you the endpoint you need to hit for updates, along with the rough format the json needs to be in.I was never able to get it to create the map, so I had to create it first as a blank map, and then send the json.
You'll need to pull a bit of data out of Solarwinds in order to map things correctly with IP address to orion nodes/interfaces. (This isn't overly hard if you understand what it needs/how to query the solarwinds api)
I'll warn that my data was valid enough to be accepted/update the map - but no other user was able to edit the map/would error if you tried to manually modify it.
As everyone in this thread said, "yes" it's possible, but it's highly unlikely because of the edge and node configuration you'll have to encapsulate in the call. In summary,
Possible: yes
Probable: no.
That'd have to be your plan not mine really as I dont have the same problem or starting data, generally I'd put not-in-monitoring as a problem higher than not-nicely-mapped though.The technical answer could be like: Parse out the devices from the JSON, put them in a discovery, return results, investigate those missing. Or run them through a node creation script. I'd be surprised if you had credentials in this JSON file though.-What is the JSON file, someone else's Map from SLW? - A different tool?Non-technical answer would be like: Upload a visio or whatever and add live labels in as it gets monitored - If it was someone else's map, you wouldnt likely be able to copypaste it into a new environment, because all the IDs and connections wouldnt likely match up. If you were copypasting it into the same environment then sure, but there's also a copy button in the UII think Kevin below is describing Graph stuff, capital G technical term, as in connections and topology, probably whoever solves the Maps-via-api problem has a good understanding of the fundamentals of that stuff first.I guess i'd try creating a number of demo maps, looking across their configuration and trying to understand it, probably with a bunch of tabs open about Graphs. Would try and create minimalistic equivalent demo maps, and experiment from there, layering up detail@Andrene Any good learnings? Gotchas to avoid or stuff that you figured out vs didnt figure out?