I have a powershell monitor running on a few application servers, that is supposed to return a Warning state if there are more or less than 1 instance of a particular process running (we've had issues with multiple versions being spawned). The powershell script that I'm using for the monitor works fine in isolation, and returns the correct process count - The monitor in Solarwinds takes that returned value as a Statistic and is supposed to issue a warning if the Statistic value is not 1.
Unfortunately, the monitor goes down multiple times a day, I see that the monitor status is "3" (meaning Critical). But I can't get any info on why / how this is happening. Is this a failure to connect to the monitored server (or a timeout)? Is the script returning a bad value? Are there good suggestions for how to troubleshoot this problem? I've created an Alert email with all of the variables that I can seem to find for this monitor, but it doesn't seem to be giving me any info of use except the Status "3" value.