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

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

Adding new sensors using PRTG-API



Your Vote:



So this is largely for the attention of Lord Milko however PRTG may be able to help. I need to add WMI Memory Sensor to PRTG for over 450 devices. How can this be achieved with API / Batch

api lordmilko prtg-api wmi

Created on Apr 13, 2018 11:37:05 AM by  Samuel Ashdown (62) 1 1

1 Reply



Your Vote:



Please see Object Creation / Dynamic Parameters

Creation of arbitrary sensor types is a three step process

1. Identify the raw sensor type name

2. Create a set of sensor parameters from a single compatible device

3. Mass deploy your parameters to all desired devices

The following example demonstrates how a set of sensor parameters were derived from a Domain Controller and then deployed to all Exchange Servers

Step 1: Identify the type name

PS C:\> get-sensortype *memory*

Id                     Name                               Description
--                     ----                               -----------
dockercontainer        Docker Container Status BETA       Monitors the status, upt
netappcdotsystem       NetApp System Health               Monitors CPU and memory
wmimemory              WMI Memory                         Monitors available syste
wmivitalsystemdata     WMI Vital System Data (V2)         Monitors vital system pa

From the Id column we can see the type we're after is "wmimemory".

Step 2: Now create a set of parameters, optionally modifying any properties you desire

PS C:\> $params = get-device dc-1|new-sensorparameters -rawtype wmimemory
PS C:\> $params

wmialternative    : 0
Targets           : {}
Source            : dc-1
SensorType        : wmimemory
Priority          : Three
InheritTriggers   : True
InheritInterval   : True
Interval          : 00:01:00
IntervalErrorMode : OneWarningThenDown
Name              : Memory
Tags              : {memorysensor, wmimemorysensor}

Step 3: Deploy your parameters to all desired devices

PS C:\> get-device exch* | Add-Sensor $params



Created on Apr 13, 2018 12:55:07 PM by  lordmilko (2,142) 2 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.