< Back
Error
Post
NAME Error
SYNOPSIS
Generates an <Error></Error> XML tag for specifying that a fatal error has occurred in a custom PRTG Network
Monitor EXE/XML Sensor.
SYNTAX
Error [[-Value] <String>] [<CommonParameters>]
DESCRIPTION
The Error tag specifies that the sensor result returns an error and to ignore any channel results (if they are
included).
When returning an error, a Text tag should be included to indicate the reason the sensor failed.
PARAMETERS
-Value <String>
The value to use. Either 1 (error) or 0 (no error).
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 {
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 ... s/Error.md
Prtg
Text
Warning
SYNOPSIS
Generates an <Error></Error> XML tag for specifying that a fatal error has occurred in a custom PRTG Network
Monitor EXE/XML Sensor.
SYNTAX
Error [[-Value] <String>] [<CommonParameters>]
DESCRIPTION
The Error tag specifies that the sensor result returns an error and to ignore any channel results (if they are
included).
When returning an error, a Text tag should be included to indicate the reason the sensor failed.
PARAMETERS
-Value <String>
The value to use. Either 1 (error) or 0 (no error).
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 {
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 ... s/Error.md
Prtg
Text
Warning