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
Regards,
lordmilko
Add comment