I have been banging my head on this issue for some time now. Here's the scenario:
We have some remote servers that have multiple websites on them. We are monitoring these sites using SAM and an https monitor. We've set up an alert that is triggered when one of the site https monitors fail and the first escalation point for us is to receive an email (done from alert action successfully), and have the NPM recycle the application pool for the particular site.
We've set up a service account and configured the Solarwinds Alerting Engine to use this service account. The account has admin rights. We've also set up an account on the remote server using the same service account credentials and made that account an administrator as well.
Here's the Execute Program Action that we've got set up on the alert
PSExec -h \\xx.xx.xx.196 appcmd.exe recycle apppool /apppool.name:appPoolName
Some notes from our troubleshooting so far:
1. Running this command from command line works fine.
2. According to the AlertLog table in the database, the alert is triggering the execution of this command, but there's no indication of any output.
3. We have set up the appropriate folder path in Environment Variables for both PSExec on the orion server and also appcmd.exe on the remote server
4. We've tried to move this command into a batch file that outputs the information returned on execution to a log file and when we do that, no log file is even generated which tells me it didn't even run (even though the AlertLog says otherwise).
Please help!
Thanks in Advance!