centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

Centreon Plugin Veeam Mode Vsb-Jobs not working with Veeam 12.1.2.172 cmdlet not supported anymore #5116

Open Pieso974 opened 1 month ago

Pieso974 commented 1 month ago

Hi,

Veeam just get updated to 12.1.2.172. We downloaded the last centreon_plugins.exe (July 2024) but got the same message for Sure Backup checks :

Command: scripts\centreon\centreon_plugins.exe --plugin=apps::backup::veeam::local::plugin --mode=vsb-jobs --critical-jobs-failed="$ARG1$" $ARG2$

Result: UNKNOWN: Command error: System.Exception: This cmdlet is no longer supported. Use Get-VBRSureBackupSession instead. - at Veeam.Backup.PowerShell.Cmdlets.GetVSBSession.Execute() - at Veeam.Backup.PowerShell.Cmdlets.PSCmdletBase.ProcessRecord() - at System.Management.Automation.CommandProcessor.ProcessRecord()

Thanks for your help

lucie-dubrunfaut commented 1 month ago

Hello :)

You indicated the "same message" which implies a problem already identified, could you tell me the issue in question or other information relating to a bug already reported? Could you also provide us the output of the plugin with the --debug option to help us troubleshooting this issue?

Pieso974 commented 1 month ago

Hi,

I said "same message" because I tried the centreon-plugins released in March too (and older ones). But since the Veeam update to 12.1.2.172, the vsb-jobs mode return that the cmdlet is not longer supported.

I'll be back with --debug soon

Thanks

Pieso974 commented 1 month ago

Hi, here the output with --debug:

PS C:\Program Files\Centreon NSClient++\scripts\centreon> .\centreon_plugins.exe --plugin=apps::backup::veeam::local::plugin --debug --mode=vsb-jobs --critical-jobs-failed=1

UNKNOWN: Command error: #< CLIXML - System.Exception: This cmdlet is no longer supported. Use Get-VBRSureBackupSession instead. - at Veeam.Backup.PowerShell.Cmdlets.GetVSBSession.Execute() - at Veeam.Backup.PowerShell.Cmdlets.PSCmdletBase.ProcessRecord() - at System.Management.Automation.CommandProcessor.ProcessRecord() - System.Management.Automation.InformationRecordSystem.ObjectSystem.Exception: This cmdlet is no longer supported. Use Get-VBRSureBackupSession instead._x000Dx000A_ at Veeam.Backup.PowerShell.Cmdlets.GetVSBSession.Execute()_x000Dx000A_ at Veeam.Backup.PowerShell.Cmdlets.PSCmdletBase.ProcessRecord()_x000Dx000A_ at System.Management.Automation.CommandProcessor.ProcessRecord()System.Management.Automation.HostInformationMessageSystem.ObjectSystem.Exception: This cmdlet is no longer supported. Use Get-VBRSureBackupSession instead._x000Dx000A_ at Veeam.Backup.PowerShell.Cmdlets.GetVSBSession.Execute()_x000Dx000A_ at Veeam.Backup.PowerShell.Cmdlets.PSCmdletBase.ProcessRecord()_x000Dx000A_ at System.Management.Automation.CommandProcessor.ProcessRecord()System.Exception: This cmdlet is no longer supported. Use Get-VBRSureBackupSession instead._x000Dx000A_ at Veeam.Backup.PowerShell.Cmdlets.GetVSBSession.Execute()_x000Dx000A_ at Veeam.Backup.PowerShell.Cmdlets.PSCmdletBase.ProcessRecord()_x000D_x000A at System.Management.Automation.CommandProcessor.ProcessRecord()falseDarkYellowDarkMagentaWrite-Host

2024-08-06T16:15:18.8724907+04:00
System.Collections.Generic.List`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXXX]]System.ObjectPSHOSTXXXXXXXXXX295522060417

Does the --mode=vsb-jobs uses the VBRSureBackupSession? Maybe it still use the obsolete Get-VSBSession cmdlet? (still ok in v10 and v11 but not in v12) https://helpcenter.veeam.com/docs/backup/powershell/get-vsbsession.html?ver=120

Thanks for your help

Pieso974 commented 2 weeks ago

Hello, any news?

Thanks

lucie-dubrunfaut commented 2 weeks ago

Hello :)

We have opened an internal analysis ticket which will be discussed and estimated in refinement with the dev team in the next session. Best regards.