Skip to content

Ignore in progress sessions ?! #53

Description

@AkosGergely

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()
  1. Get-JobInfo function is select top 2 line ordered by creation_time (in progress session is the first one)
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions