< Back

Text

Sun Jan 19, 2020 5:48 pm

NAME Text



SYNOPSIS

Generates a <Text></Text> XML tag for specifying a custom message in a custom PRTG Network Monitor EXE/XML Sensor.





SYNTAX

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





DESCRIPTION

The Text tag specifies a message that should be displayed on the sensor. This replaces the "OK" text that is

normally displayed on the sensor when the sensor is up. When a sensor is returning a successful result, this value

optional. If the sensor has failed, this value should be provided.



Prior to PRTG 16 this tag cannot be used with LimitError or LimitWarning tags; if a channel surpasses a warning or

error limit threshold, the message will be overwritten with the LimitWarningMsg or LimitErrorMsg (which may be

null). From PRTG 16+ PRTG will display both the Text and Limit Message together.



If this value exceeds 2000 characters, additional characters will be truncated.





PARAMETERS

-Value <String>

The message to display.



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 {

Text "Everything's OK!"

Result {

Channel "My channel"

Value 1

}

}



Generate a sensor with one channel and a custom message.



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



Prtg {

Error 1

Text "A critical error occurred: The system could not find the file something.txt"

}



Generate an error response.



RELATED LINKS

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

Prtg

Result

Error