unable to run a python script in alert actions

Hi All,

URGENT...!!!!!

I am trying to run the python script in trigger actions but unable to do so and getting the error execute program failed.

steps i have performed to run the script.

while adding the action i have selected the below highlighted option

then added the path from orion server 

then i tried to execute the script on the target machine and getting below error.

please let me know the solution for the same.

Thanks in Advance

Regards,

Purushottam Rathi

Parents
  • This is how I execute an external powershell script successfully. The same should work for Python if you get the path correct and you have the correct rights set. I run mine using an AD service account that has the correct user rights. The "'${N=SwisEntity;M=Caption}'" at the end is simply sending in a variable from SolarWinds to Powershell and can be skipped in your case. 

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "C:\scripts\deletefromalertaction.ps1 '${N=SwisEntity;M=Caption}'"

Reply
  • This is how I execute an external powershell script successfully. The same should work for Python if you get the path correct and you have the correct rights set. I run mine using an AD service account that has the correct user rights. The "'${N=SwisEntity;M=Caption}'" at the end is simply sending in a variable from SolarWinds to Powershell and can be skipped in your case. 

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command "C:\scripts\deletefromalertaction.ps1 '${N=SwisEntity;M=Caption}'"

Children
No Data