Hi,
I'm writing scripts to add devices (servers, specifically) in PRTG. We monitor CPU,memory, and disk drives as a baseline. I can create a C drive just fine, using an example similar to this. https://kb.paessler.com/en/topic/79033-adding-new-sensors-using-prtg-api
The issue is when I need to add a 'D' or 'F' or any other drive letter than C. Me and the Powershell genius of our department can't figure this out. The parameter set for the snmpdiskfree sensor type will only give you C drives.
This is the most common error we get Add-Sensor : PRTG was unable to complete the request. The server responded with the following error: 'The validation of at least one of the new objects failed because of the following: Disk: Required field, not defined. The object was not created.'.
Here's another one Add-Sensor : PRTG was unable to complete the request. The server responded with the following error: Nothing was selected, no sensors could be created.
Do we have to make a raw set of parameters, like so? This hasn't worked. $raw = @{name_ = "Disk L" sensortype = "snmpdiskfree"; priority = "3"; disk_ = "1"; tags_ = 'snmpdiskfreesensor'; disk__check_ = 'L'; }
Thanks
Add comment