Real-time performance monitoring and troubleshooting
Post Reply
bkain1
Enthusiast
Posts: 83
Liked: 5 times
Joined: Dec 23, 2020 4:43 pm
Full Name: Becki Kain
Contact:

powershell.exe ?

Post by bkain1 »

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.

wishr
Veeam Software
Posts: 2304
Liked: 290 times
Joined: Aug 07, 2018 3:11 pm
Full Name: Fedor Maslov
Contact:

Re: powershell.exe ?

Post by wishr »

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

bkain1
Enthusiast
Posts: 83
Liked: 5 times
Joined: Dec 23, 2020 4:43 pm
Full Name: Becki Kain
Contact:

Re: powershell.exe ?

Post by bkain1 » 1 person likes this post

thanks wishr. i'll edit that back out

bkain1
Enthusiast
Posts: 83
Liked: 5 times
Joined: Dec 23, 2020 4:43 pm
Full Name: Becki Kain
Contact:

[MERGED] triggering a simple script

Post by bkain1 »

i copied this from another post:

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
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

wishr
Veeam Software
Posts: 2304
Liked: 290 times
Joined: Aug 07, 2018 3:11 pm
Full Name: Fedor Maslov
Contact:

Re: triggering a simple script

Post by wishr »

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

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests