We are using CheckMK on our Backup Servers. All Jobs are getting monitored in our CheckMK Server except of our SureBackup Job. The job to Test a full restore of a view virtual machines.
Is there any chance to see these jobs also as a check?
Hi @Chris47,
and welcome to the Checkmk forum!
Unfortunately, it’s something that’s not supported out of the box. I don’t know the reason behind it, but this type of Backup is not picked up by the Checkmk Check plugin.
I have a customer that is using the Sure Backup Feature in Veeam heavily and modified the existing Checkmk Check for it and just added the Sure Backup Status Output to be picked up by the default Checkmk Checks.
I just checked, but I don’t have the modified script any more on my machine. ![]()
You can use the cmdlet Get-VBRSureBackupJob to get all information about the Sure Backup Jobs. After that, you simply just have to convert it to the right format that Checkmk can understand it. ![]()
Hope this helps!
Best Regards
Norm
Thank You @Norm !
There is my script:
try {
$GetSureBackupJobs = Get-VBRSureBackupJob
foreach ($SureBackupJob in $GetSureBackupJobs) {
$SureBackupLastRun = $SureBackupJob.LastRun | Get-Date -Format "dd.MM.yyyy HH\:mm\:ss"
$SureBackupLastResult = $SureBackupJob.LastResult
$SureBackupNextRun = $SureBackupJob.NextRun | Get-Date -Format "dd.MM.yyyy HH\:mm\:ss"
$SureBackupLastState = $SureBackupJob.LastState
$SureBackupIsEnabled = $SureBackupJob.IsEnabled
$SureBackupName = $SureBackupJob.Name -replace "\'","_" -replace " ","_"
$SureBackupType = "SureBackup"
# Details als eine durch Semikolons getrennte Zeichenkette
$SureBackupOutput = "Result: $SureBackupLastResult; LastRun: $SureBackupLastRun; JobEnabled: $SureBackupIsEnabled; LastState: $SureBackupLastState; NextRun: $SureBackupNextRun; Type: $SureBackupType"
# Status bestimmen
if ($SureBackupLastResult -eq "Success") {
Write-Host 0 "$SureBackupName" - $SureBackupOutput
} elseif ($SureBackupLastResult -eq "Warning") {
Write-Host 1 "$SureBackupName" - $SureBackupOutput
} elseif ($SureBackupLastResult -eq "None") {
Write-Host 0 "$SureBackupName" - $SureBackupOutput
} else {
Write-Host 2 "$SureBackupName" - $SureBackupOutput
}
}
} catch {
Write-Host 3 "SureBackup" - "No SureBackup Jobs found or an error occurred."
}
Let this script as .ps1 file in this normal path: C:\ProgramData\checkmk\agent\local
Greetings.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.