I need to know if we can run a Powershell script with advanced alert manager. (I know we can but how??)
Scenario: I have set an alert for C drive , now I want My SolarWinds to clear the temp folder in C drive each time the threshold is breached for any server (for which I am, planning to write a Powershell script).
I want my Powershell to pick the affected server name from the alert triggered (like it does in service restart case).
If it is possible with some other way please share or if anyone have tried any such thing!
Thanks in Advance!
You can do it this way
Try this .. create a batch file in your primary polling engine that would accept affected Node IP Address (better than caption) as an argument, have it call your powershell script in which you may pass the same IP Address so that it knows which server to clean up. From the alert action, execute an external program, you can call your batch file. Please let me know if that worked out.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process. Learn more today by joining now.