I am writing PowerShell scripts that are being executed by the EPAgent and print metrics in XML format.
These scripts are being run as stateful plugins, and run inside an infinite loop, to prevent resource usage spikes when PowerShell is called.
One script is capturing running process data, and reporting it every 15 seconds. The behavior is normal when the agent first starts, but new processes do not show up in the metric view in the web interface, despite them being outputted by my script. I can see which processes are running by looking at the raw output of the script.
I'm curious if anyone has any idea what could cause the agent to not accept the standard output from my script. Or any other suggestions when it comes to executing PowerShell scripts with the EPAgent.
Converting to a discussion since this is a customization. Do you have suggestions for Brian?