Hello,
I want to update all wmi disk sensor limits (+- 500 sensors). I want to remove the Size limit check for all disks. On the sensor, not on the channels (this is already done). I thought i could do this via powershell, but I don't find the correct variable. By doing get-sensor i don't get all variables.
For a channelproperty i've used Set-ChannelProperty LimitsEnabled "False" Is this possible for a sensor?
Article Comments
Hi thanks for your quick reply. Yes i tried that already. As soon as i select two or more sensors and do multiple edit the option for 'Size limit check' disappears. However, the 'Percentage limit check' I can change for a multiple selection edit for all 400+ sensors.
Jul, 2020 - Permalink
Unfortunately, this certain settings is not adjustable via the multi edit. Therefore, you can try to use this third-party API: https://github.com/lordmilko/PrtgAPI
This API contains more options to manipulate objects. However, we cannot support this API, since it's from a third party. Therefore, I cannot provide a certain command.
Jul, 2020 - Permalink
Yeah, that was what i was thinking about. But when doing a 'Get-Sensor -Id xxxxx| Get-ObjectProperty' i does not give me those objectproperties ... :(
Jul, 2020 - Permalink
I checked the setting via the browser developer tools and noticed the setting is called "limitbytes_" (with underscore). Please try to access the setting via this name.
Jul, 2020 - Permalink
Hi there,
Did you already tried to change the settings via the multi-edit feature from PRTG? Therefore, you should navigate to "Sensors > By Type > W.. > WMI Disk Sensor). Then you can select all sensors and with the wrench symbol in the right blue panel you can set each option, which is the same for each selected Sensor. Since you selected only the same type of Sensor, this should work.
Jul, 2020 - Permalink