< Back

Warning

Sun Jan 19, 2020 5:48 pm

NAME Warning



SYNOPSIS

Generates a <Warning></Warning> XML tag for specifying that a channel should enter a warning state in a custom

PRTG Network Monitor EXE/XML Sensor.





SYNTAX

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





DESCRIPTION

The Warning tag causes a sensor to enter a Warning state when specified on at least one channel. Default value is

0 (false).





PARAMETERS

-Value <String>

The value to use. Either 1 (warning) or 0 (no warning).



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

Warning 1

}

}



Trigger a warning state on a sensor.



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



Prtg {

Text "Bad things happened"

Result {

Channel "My channel"

Value 1

Warning 1

}

}



Trigger a warning with a custom message.



RELATED LINKS

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

Prtg

Text

Result

Channel

Value

Error