Hi,
with the changes from V11 to V12, a failed health check no longer causes the overall backup job to fail, given that it now runs as its own system job.
As such I'm trying to figure out what powershell command I can use to check the status of the last health check(s).
I can find cmdlets to change the healthcheckoptions, but none that can give me a status on the jobs.
Can anyone help me query the success of health checks through the API? I consider them passing/failing to be kind of important information...
Thanks.
-
- Influencer
- Posts: 18
- Liked: 5 times
- Joined: Nov 30, 2020 11:29 am
- Contact:
-
- Veeam Software
- Posts: 2123
- Liked: 513 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Get status of VBR Health Check through API - V12
Hi!
Try
Get-VBRSession -Type HealthCheck
It will be unordered list so probably you should pass to Sort-Object by CreationTime property (-Descending to have most recent on top)
Try
Get-VBRSession -Type HealthCheck
It will be unordered list so probably you should pass to Sort-Object by CreationTime property (-Descending to have most recent on top)
David Domask | Product Management: Principal Analyst
-
- Influencer
- Posts: 18
- Liked: 5 times
- Joined: Nov 30, 2020 11:29 am
- Contact:
Re: Get status of VBR Health Check through API - V12
That works, thanks.
This should be plenty good enough for the monitoring.
This should be plenty good enough for the monitoring.
-
- Veeam Software
- Posts: 2123
- Liked: 513 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Get status of VBR Health Check through API - V12
Always welcome good luck with scripting. Glad it helps.
An addendum: Get-VBRSession returns fairly "concise" information -- for basic reporting it should be plenty as you noted, but you can get a more detailed object by passing the Id from the resulting VBRBackupSession object to Get-VBRBackupSession on the -Id flag for a more detailed object.
An addendum: Get-VBRSession returns fairly "concise" information -- for basic reporting it should be plenty as you noted, but you can get a more detailed object by passing the Id from the resulting VBRBackupSession object to Get-VBRBackupSession on the -Id flag for a more detailed object.
David Domask | Product Management: Principal Analyst
-
- Influencer
- Posts: 18
- Liked: 5 times
- Joined: Nov 30, 2020 11:29 am
- Contact:
Re: Get status of VBR Health Check through API - V12
The 'fairly concise' information should be plenty to judge if it needs to be manually checked by a backup admin.
Still - thanks for the heads up. I'm sure I'll find a use for it at some point.
Still - thanks for the heads up. I'm sure I'll find a use for it at some point.
Who is online
Users browsing this forum: Google [Bot] and 8 guests