New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Powershell - Update wmi disk sensor limits

Votes:

0

Your Vote:

Up

Down

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?

disk-free powershell prtg wmi-sensors

Created on Jul 4, 2020 8:55:37 AM by  JeroenDeckers (0) 1



6 Replies

Votes:

0

Your Vote:

Up

Down

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.

Created on Jul 6, 2020 9:33:35 AM by  Moritz Heller [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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.

Created on Jul 6, 2020 10:00:16 AM by  JeroenDeckers (0) 1



Votes:

0

Your Vote:

Up

Down

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.

Created on Jul 6, 2020 10:32:37 AM by  Moritz Heller [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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 ... :(

Created on Jul 6, 2020 10:49:29 AM by  JeroenDeckers (0) 1



Votes:

0

Your Vote:

Up

Down

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.

Created on Jul 6, 2020 6:28:46 PM by  Moritz Heller [Paessler Support]



Votes:

0

Your Vote:

Up

Down

thx this worked

Created on Jul 8, 2020 12:19:32 AM by  JeroenDeckers (0) 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.