< Back

CustomUnit

Sun Jan 19, 2020 5:46 pm

NAME CustomUnit



SYNOPSIS

Generates a <CustomUnit></CustomUnit> XML tag for specifying the custom unit of a channel in a custom PRTG Network

Monitor EXE/XML Sensor.





SYNTAX

CustomUnit [[-Value] <String>] [<CommonParameters>]





DESCRIPTION

The CustomUnit tag specifies the custom unit to display when the Unit of the channel is set to Custom. The custom

unit may be any valid string, however it is advisable to keep it short.





PARAMETERS

-Value <String>

The custom string to use for the unit.



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 "Frogs per capita"

Value 3

Unit Custom

CustomUnit Frogs

}

}



Create a sensor with a channel using a custom unit.



RELATED LINKS

Online Version: https://github.com/lordmilko/PrtgXml/bl ... tomUnit.md

Unit

Prtg

Result

Channel

Value