in v1, for alerts, action->run script->value - does this have to be just the full path to a powershell script or do I need "Powershell.exe C:\temp\veeam_alert.ps1" as the value?
i;m getting emails but not files being written out and I'm trying to figure out why. thank you in advance.
-
- Expert
- Posts: 137
- Liked: 8 times
- Joined: Dec 23, 2020 4:43 pm
- Full Name: Becki Kain
- Contact:
-
- Veteran
- Posts: 3077
- Liked: 455 times
- Joined: Aug 07, 2018 3:11 pm
- Full Name: Fedor Maslov
- Contact:
Re: powershell.exe ?
Hi Becki,
You just provide a path to the script file and, if necessary, may specify arguments to pass certain alarm data from the alarm to the script.
Thanks
You just provide a path to the script file and, if necessary, may specify arguments to pass certain alarm data from the alarm to the script.
Thanks
-
- Expert
- Posts: 137
- Liked: 8 times
- Joined: Dec 23, 2020 4:43 pm
- Full Name: Becki Kain
- Contact:
Re: powershell.exe ?
thanks wishr. i'll edit that back out
-
- Expert
- Posts: 137
- Liked: 8 times
- Joined: Dec 23, 2020 4:43 pm
- Full Name: Becki Kain
- Contact:
[MERGED] triggering a simple script
i copied this from another post:
i called it C:\Temp\simple_script.ps1
in Veeam One, i have emails working properly on the alert of "Veeam ONE agent client failure" but i cannot get my script to trigger. in the same box as I set the emails to go out, on "any state", i have "run script" with a value of "C:\Temp\simple_script.ps1". What am I doing wrong? The script runs fine, if just call it with powershell. thank you very much (I'm pulling out my hair)
-becki kain
Code: Select all
set Alarm=%1
set Node=%2
set Summary=%3
set time=%4
set status=%5
set oldstatus=%6
set id=%7
echo Alarmname: %Alarm% >> C:\Temp\ONEalarm.log
echo Node: %Node% >> C:\Temp\ONEalarm.log
echo Summary: %Summary% >> C:\Temp\ONEalarm.log
echo Date: %time% >> C:\Temp\ONEalarm.log
echo Status: %status% >> C:\Temp\ONEalarm.log
echo OldStatus: %oldstatus% >> C:\Temp\ONEalarm.log
echo ID: %id% >> C:\Temp\ONEalarm.log
echo -------------- >>C:\Temp\ONEalarm.log
in Veeam One, i have emails working properly on the alert of "Veeam ONE agent client failure" but i cannot get my script to trigger. in the same box as I set the emails to go out, on "any state", i have "run script" with a value of "C:\Temp\simple_script.ps1". What am I doing wrong? The script runs fine, if just call it with powershell. thank you very much (I'm pulling out my hair)
-becki kain
-
- Veteran
- Posts: 3077
- Liked: 455 times
- Joined: Aug 07, 2018 3:11 pm
- Full Name: Fedor Maslov
- Contact:
Re: triggering a simple script
Hi Becki,
Please, open a support case so our engineers could take a look at the details and post your case ID here.
I'm merging your post with the previously created topic.
Thanks
Please, open a support case so our engineers could take a look at the details and post your case ID here.
I'm merging your post with the previously created topic.
Thanks
Who is online
Users browsing this forum: No registered users and 3 guests