< Back
Prtg
Post
NAME Prtg
SYNOPSIS
Generates a <Prtg></Prtg> XML tag for defining a custom PRTG Network Monitor EXE/XML Sensor.
SYNTAX
Prtg [[-ScriptBlock] <ScriptBlock>] [<CommonParameters>]
DESCRIPTION
The Prtg tag serves as the root node for all responses given under all EXE/Script Advanced sensors in PRTG,
generating the <Prtg></Prtg> XML.
If the sensor scan completed successfully, the result should contain one or more Result tags with an optional Text
message.
If the sensor should throw an error without returning any channel values, the Error tag should be set to 1 and a
Text message should be displayed.
PARAMETERS
-ScriptBlock <ScriptBlock>
A ScriptBlock containing Text, Error or Result nodes.
Required? false
Position? 1
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 "First channel"
Value 3
}
}
Generate a sensor with a single channel.
-------------------------- EXAMPLE 2 --------------------------
Prtg {
Error 1
Text "Woops!"
}
Display an error message.
-------------------------- EXAMPLE 3 --------------------------
Prtg {
Text "Hello world!"
Result {
Channel "First channel"
Value 3
}
}
Generate a sensor with a single channel and a custom message.
RELATED LINKS
Online Version: https://github.com/lordmilko/PrtgXml/bl ... cs/Prtg.md
Result
Channel
Value
Error
Text
about_PrtgXml
SYNOPSIS
Generates a <Prtg></Prtg> XML tag for defining a custom PRTG Network Monitor EXE/XML Sensor.
SYNTAX
Prtg [[-ScriptBlock] <ScriptBlock>] [<CommonParameters>]
DESCRIPTION
The Prtg tag serves as the root node for all responses given under all EXE/Script Advanced sensors in PRTG,
generating the <Prtg></Prtg> XML.
If the sensor scan completed successfully, the result should contain one or more Result tags with an optional Text
message.
If the sensor should throw an error without returning any channel values, the Error tag should be set to 1 and a
Text message should be displayed.
PARAMETERS
-ScriptBlock <ScriptBlock>
A ScriptBlock containing Text, Error or Result nodes.
Required? false
Position? 1
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 "First channel"
Value 3
}
}
Generate a sensor with a single channel.
-------------------------- EXAMPLE 2 --------------------------
Prtg {
Error 1
Text "Woops!"
}
Display an error message.
-------------------------- EXAMPLE 3 --------------------------
Prtg {
Text "Hello world!"
Result {
Channel "First channel"
Value 3
}
}
Generate a sensor with a single channel and a custom message.
RELATED LINKS
Online Version: https://github.com/lordmilko/PrtgXml/bl ... cs/Prtg.md
Result
Channel
Value
Error
Text
about_PrtgXml