< Back

Value

Sun Jan 19, 2020 5:48 pm

NAME Value



SYNOPSIS

Generates a <Value></Value> XML tag for specifying the value of a single channel in a custom PRTG Network Monitor

EXE/XML Sensor.





SYNTAX

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





DESCRIPTION

The Value tag specifies the value to use for a channel. Must be an integer or a floating point number.



If the value is a float, the Float tag must be specified. If you specify a floating point number that contains any

value other than 0 after the decimal point without setting the Float tag to 1, the number will be displayed as 0

in PRTG.



If a result is being returned, this value is mandatory.





PARAMETERS

-Value <String>

The value 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 1

}

}



Generate a channel with a integer value.



-------------------------- EXAMPLE 2 --------------------------



Prtg {

Result {

Channel "My channel"

Value 3.5

Float 1

}

}



Generate a channel with a floating point number.



-------------------------- EXAMPLE 3 --------------------------



Prtg {

Result {

Channel "My channel"

Value ([int]1.23456789)

}

}



Show a floating point number as an integer in the PRTG UI.



RELATED LINKS

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

Prtg

Result

Channel

Float

Unit