< Back
Unit
Post
NAME Unit
SYNOPSIS
Generates a <Unit></Unit> XML tag for specifying the unit of a single channel in a custom PRTG Network Monitor
EXE/XML Sensor.
SYNTAX
Unit [[-Value] <String>] [<CommonParameters>]
DESCRIPTION
The Unit tag specifies the unit of the channel Value. The unit of the channel allows PRTG to automatically convert
values such as volumes and times based on their size. The default value is Custom.
The following values are supported
| Name | Default Unit |
| -------------- | -------------------- |
| BytesBandwidth | KByte |
| BytesDisk | MByte |
| BytesFile | Byte |
| BytesMemory | MByte |
| Count | # |
| CPU | % |
| Custom | Custom |
| Percent | % |
| SpeedDisk | /s |
| SpeedNet | /s |
| Temperature | ????C |
| TimeHours | h |
| TimeResponse | msec |
| TimeSeconds | Dynamic (s, m, h, d) |
PARAMETERS
-Value <String>
The unit to use.
Required? false
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------------------- EXAMPLE 1 --------------------------
Prtg {
Result {
Channel "My channel"
Value 30
Unit Percent
}
}
Create a sensor with a channel that uses a percentage unit.
RELATED LINKS
Online Version: https://github.com/lordmilko/PrtgXml/bl ... cs/Unit.md
Prtg
Result
Channel
Value
CustomUnit
SYNOPSIS
Generates a <Unit></Unit> XML tag for specifying the unit of a single channel in a custom PRTG Network Monitor
EXE/XML Sensor.
SYNTAX
Unit [[-Value] <String>] [<CommonParameters>]
DESCRIPTION
The Unit tag specifies the unit of the channel Value. The unit of the channel allows PRTG to automatically convert
values such as volumes and times based on their size. The default value is Custom.
The following values are supported
| Name | Default Unit |
| -------------- | -------------------- |
| BytesBandwidth | KByte |
| BytesDisk | MByte |
| BytesFile | Byte |
| BytesMemory | MByte |
| Count | # |
| CPU | % |
| Custom | Custom |
| Percent | % |
| SpeedDisk | /s |
| SpeedNet | /s |
| Temperature | ????C |
| TimeHours | h |
| TimeResponse | msec |
| TimeSeconds | Dynamic (s, m, h, d) |
PARAMETERS
-Value <String>
The unit to use.
Required? false
Position? 0
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------------------- EXAMPLE 1 --------------------------
Prtg {
Result {
Channel "My channel"
Value 30
Unit Percent
}
}
Create a sensor with a channel that uses a percentage unit.
RELATED LINKS
Online Version: https://github.com/lordmilko/PrtgXml/bl ... cs/Unit.md
Prtg
Result
Channel
Value
CustomUnit