Hi,
I have created a new management pack with a single discovery and a single monitor. The discovery finds my components (around 100) and the monitor works initially. However, after a couple of hours I start getting this error in the event log:
The PowerShell script will be dropped because the it has been waiting in the queue for more than 10 minutes.
Script Name: MonitorItem.ps1
One or more workflows were affected by this.
The script is very simple of takes 1-2 seconds when running manually. I have changes registry keys so the script shouldn't be dropped after 10 minutes. But doing this will simply make it drop after 30, 60 or 120 minutes, depending on the value
in QueueMinutes. If I bounce the Health Service it returns to normal, but then I get the error after a few hours. My questions are:
1. Why does it drop the script? This agent does literally nothing else.
2. What queue is this? I assume its the health service queue, but I have also tried changing the maximumQueueSizeKb without result
I have the management pack running elsewhere, where it works fine, so this is an issue limited to a specific installation.
Thanks!