Hi there, I would appreciate any assistance as I've spent two days trying to find solutions to my problem online.
The purpose of my powershell sensor (for PRTG) is to collect data from a corporate API and display the relevant stats in PRTG. Here's the problem(s): - I need the device IP (not the server IP) as it forms part of the API URL. - The device on which the sensor will be placed is very likely to be cloned in the future (several times), so I cannot hard-code the device ID. New clones will have their own API and a different IP address (API and device IPs are the same). - Similarly, I can't hard-code in the sensor ID - Since there are alot of other sensors, my manage does not want me to enter the IP/device-id as a param because the person doing the cloning could easily forget to update it. So no params.
From what I've researched online, I can get to the device IP if only I could just fetch the Sensor ID or device ID, but I don't know how to do that in powershell (and I didn't find any examples online that did either).
Thanks
Add comment