Linuxfabrik / lib

Python libraries used in various Linuxfabrik projects, including the Monitoring Plugins project.
https://linuxfabrik.ch
The Unlicense
13 stars 7 forks source link

veeam.py: ValueError: need more than 2 values to unpack #45

Closed NavidSassan closed 2 years ago

NavidSassan commented 2 years ago

In GitLab by @Simon.Brenner on Jan 18, 2022, 14:36

with the new "libraries". the check-veeam plugin brings the error:

File "/usr/lib64/nagios/plugins/veeam-status", line 331, in 'module'
    main()
  File "/usr/lib64/nagios/plugins/veeam-status", line 143, in main
    success, result, token = lib.veeam2.get_token(args)
  File "/usr/lib64/nagios/plugins/lib/veeam2.py", line 43, in get_token
    timeout=args.TIMEOUT, insecure=True, extended=True)
ValueError: need more than 2 values to unpack

check command: '/usr/lib64/nagios/plugins/veeam-status' '--critical' '90' '--password' '' '--timeout' '3' '--url' 'url' '--username' '' '--warning' '80'

NavidSassan commented 2 years ago

In GitLab by @markuslf on Jan 20, 2022, 17:13

mentioned in commit aa08ceac4f4be261887843a25e330ed66a4991da

NavidSassan commented 2 years ago

In GitLab by @markuslf on Jan 20, 2022, 17:14

The error is fixed for now. Unfortunately, I can't test if the check really works because our Veeam trial license has expired. The veeam-status checks and the veeam.py libs must be updated together.

NavidSassan commented 2 years ago

In GitLab by @markuslf on Jan 21, 2022, 15:16

mentioned in commit 8e1b9b989488763ea1c55f1f5b124b5669e462cf

NavidSassan commented 2 years ago

mentioned in commit 45381201cef1b4055abad05288eaf8beb4d73748