-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Labels
Projects
Comments
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
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!
The text was updated successfully, but these errors were encountered: