jobsinfo data is updated only when the backup session is finished.
I created new trigger. Its fire when backup session is not started in the last 26 hours.
It's a daily job and the trigger is fired when backup session is longer then 2 hour.
24+2 >=26 :)
last(/Veeam Backup And Replication/veeam.Jobs.LastStart['{#JOBTYPEID}','{#JOBID}']) + ({$VEEAM_JOB_NOTRUN_HOURS_WARN:"{#JOBNAME}"} * 3600) < now()
- Get-JobInfo function is select top 2 line ordered by creation_time (in progress session is the first one)
- Sort-Object end_time -Descending (change the order because the in prodress session end time is 1900)
I changed to: Sort-Object creation_time
It's working for me.
jobsinfo data is updated only when the backup session is finished.
I created new trigger. Its fire when backup session is not started in the last 26 hours.
It's a daily job and the trigger is fired when backup session is longer then 2 hour.
24+2 >=26 :)
I changed to: Sort-Object creation_time
It's working for me.