Advanced-PRTG-Sensors icon indicating copy to clipboard operation
Advanced-PRTG-Sensors copied to clipboard

Backup Copy Jobs now recognized

Open cerri opened this issue 2 years ago • 1 comments

Hello,

the sensor cannot recognize a Copy Job. I'm running the script directly on the Veeam Server with HTTP Push Data sensor type. On this server there are: 2 Backup Jobs 1 Backup Copy Job

But I cannot see any Copy Job result. Is it an issue or I am missing something?

Thank you

Schermata 2022-07-14 alle 15 16 16 Schermata 2022-07-14 alle 15 18 21 Schermata 2022-07-14 alle 15 18 28

cerri avatar Jul 14 '22 13:07 cerri

Hi @cerri ,

Do you use the -selChann parameter to change scope of the script?

Which VBR version do you use?

Might you please run the script run with -Debug switch and share the output?

I will also have a look at that in my lab.

Best wishes Markus

vMarkusK avatar Jul 21 '22 18:07 vMarkusK

Hello @vMarkusK,

I hope it's okay to revive this rather old thread. I have the same error as Cerri: Unfortunately our backup copy jobs are not displayed in PRTG.

To cover your previous points:

  • No, we didn't change anything in the -selChann parameter (or anything similar to change the scope).
  • we are on the latest version v12.0.0.1420
  • The output with the -Debug switch looks exactly like it is in PRTG: 0 Backup Copy Success, 0 Backup Copy Failed, 0 Backup Copy Idle, etc. ...

I thank you for your help in advance.

Best regards

OashaP

OashaP avatar Nov 14 '23 13:11 OashaP

Hello @OashaP ,

was it working at any time for you? What is the schedule frequency of your Copy Jobs?

This snippet will return all Copy Job-Runs within the last month, might you please verify the output:

$HourstoCheck = 720
$allSesh = Get-VBRBackupSession  
$seshListBkc = @($allSesh | Where-Object{($_.CreationTime -ge (Get-Date).AddHours(-$HourstoCheck)) -and $_.JobType -eq "BackupSync"})  
$seshListBkc

vMarkusK avatar Nov 16 '23 21:11 vMarkusK

Hello Markus,

firstly, thank you for helping us with this one. Regarding your points:

  • Everything else was working as expected, but backup copy never did
  • Mostly daily
  • The output of that command is empty. I run this command inside the Veeam PowerShell and just receive the Command Prompt back to start the next query

Best regards OashaP

OashaP avatar Nov 17 '23 13:11 OashaP

Might you please verify this Script Block, do you see all Copy Jobs?

$HourstoCheck = 48
$allSesh = Get-VBRBackupSession  
$seshListBkc = @($allSesh | Where-Object{($_.CreationTime -ge (Get-Date).AddHours(-$HourstoCheck)) -and $_.JobType -match "BackupSync|SimpleBackupCopyWorker"})  
$seshListBkc

vMarkusK avatar Nov 20 '23 19:11 vMarkusK

This script successfully returned all of our Backup Copy Jobs as it's output.

OashaP avatar Nov 21 '23 06:11 OashaP

@OashaP Might you please verify #102 ?

vMarkusK avatar Nov 21 '23 19:11 vMarkusK

The script works and our sensors now display the backup copies correctly. Thank you for your help!

OashaP avatar Nov 22 '23 08:11 OashaP