Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add SureBackup Jobs #104

Open
susishopware opened this issue Nov 27, 2023 · 1 comment
Open

Please add SureBackup Jobs #104

susishopware opened this issue Nov 27, 2023 · 1 comment

Comments

@susishopware
Copy link

Hey,
I'm not sure if its already integrated in "Successfull Backups" but it would be great if there is a separate column for SureBackup Jobs.

Thanks for your service!

@vMarkusK vMarkusK added this to Possible To Do in PRTG-VeeamBRStats via automation Nov 28, 2023
@SHellSys
Copy link

SHellSys commented Jan 3, 2024

I added the SureBackups in my sensor:

$allSureBkSesh = @(Get-VBRSureBackupSession | Where-Object{($_.CreationTime -ge (Get-Date).AddHours(-$HourstoCheck))}) # Get all Sure Backup Sessions

$successSessionSureBk = @($allSureBkSesh | Where-Object{$_.Result -eq "Success"})
    $warnungSessionSureBk = @($allSureBkSesh | Where-Object{$_.Result -eq "Warning"})
    $failsSessionSureBk = @($allSureBkSesh | Where-Object{$_.Result -eq "Failed"})
    $runningSessionSureBk = @($allSureBkSesh | Where-Object{$_.State -eq "working"})
 
$Count = $successSessionSureBk.Count
    $xmlOutput = $xmlOutput + "<result>
                <channel>Successful-SUREBackups</channel>
                <value>$Count</value>
                <showChart>1</showChart>
                <showTable>1</showTable>
                </result>"
    $Count = $warnungSessionSureBk.Count
    $xmlOutput = $xmlOutput + "<result>
                <channel>Warning-SUREBackups</channel>
                <value>$Count</value>
                <showChart>1</showChart>
                <showTable>1</showTable>
                <LimitMaxWarning>0</LimitMaxWarning>
                <LimitMode>1</LimitMode>
                </result>"
    $Count = $failsSessionSureBk.Count
    $xmlOutput = $xmlOutput + "<result>
                <channel>Failes-SUREBackups</channel>
                <value>$Count</value>
                <showChart>1</showChart>
                <showTable>1</showTable>
                <LimitMaxError>0</LimitMaxError>
                <LimitMode>1</LimitMode>
                </result>"
    $Count = $runningSessionSureBk.Count
    $xmlOutput = $xmlOutput + "<result>
                <channel>Running-SUREBackups</channel>
                <value>$Count</value>
                <showChart>1</showChart>
                <showTable>1</showTable>
                </result>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
PRTG-VeeamBRStats
  
Possible To Do
Development

No branches or pull requests

3 participants