about_PrtgXml.help.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
TOPIC about_PrtgXml SHORT DESCRIPTION PrtgXml is a wrapper library for creating PRTG EXE/Script Advanced Sensor XML output. LONG DESCRIPTION PrtgXml provides a series of functions that correspond to the XML tags found in EXE/Script Advanded Sensors. Each function takes one of two arguments: * A ScriptBlock containing one or more inner tags, or * A literal numeric/string value. INSTALLATION To ensure your scripts incorporating PrtgXml are portable, include the following at the top of your script to ensure PrtgXml is automatically installed if it is not available if(!(Get-Module -ListAvailable PrtgXml)) { Install-Package PrtgXml -ForceBootstrap -Force | Out-Null } If you are emitting PRTG XML while remotely connected to another computer, you should also include this snippet inside of your script block passed to Invoke-Command. EXAMPLES Prtg { Result { Channel "First channel" Value 10 } } Generate a response containing a single channel with a specified value. KEYWORDS PRTG EXE Script Advanced Sensor XML SEE ALSO Prtg Result Channel Value gcm -Module PrtgXml |