< Back

NotifyChanged

Sun Jan 19, 2020 5:47 pm

NAME NotifyChanged



SYNOPSIS

Generates a <NotifyChanged></NotifyChanged> XML tag for triggering notifications when a channel value changes in a

custom PRTG Network Monitor EXE/XML Sensor.





SYNTAX

NotifyChanged [<CommonParameters>]





DESCRIPTION

The NotifyChanged tag causes a sensor to activate any Change Triggers that are defined on it.



Change Triggers will only activate when this tag is present and the the value of the channel is different to the

previous scan.





PARAMETERS

<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 ((Get-Date) - [DateTime]"1/1/17").TotalMinutes

NotifyChanged

}

}



Activate any Change Triggers that have been defined on the sensor. Sensor value is the number of minutes since

January 1st, 2017.



RELATED LINKS

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

Prtg

Result

Channel

Value