Skip to content

kemp-services3: Credentials not converted correctly #653

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

Closed
5 of 6 tasks
asltbbg opened this issue Mar 15, 2023 · 1 comment
Closed
5 of 6 tasks

kemp-services3: Credentials not converted correctly #653

asltbbg opened this issue Mar 15, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@asltbbg
Copy link

asltbbg commented Mar 15, 2023

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

  • Compiled, from repo
  • Source Code, from GitHub

Bug description

The Plugin isn't working the error is:

Traceback (most recent call last):
File "/usr/local/lib/LinuxFabric/check-plugins/kemp-services/./kemp-services3", line 199, in 'module'
main()
File "/usr/local/lib/LinuxFabric/check-plugins/kemp-services/./kemp-services3", line 152, in main
base64.b64encode(args.USERNAME + ':' + args.PASSWORD)
File "/usr/lib/python3.9/base64.py", line 58, in b64encode
encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not 'str'

if I change

base64.b64encode(args.USERNAME + ':' + args.PASSWORD)

to

base64.b64encode(bytes(args.USERNAME + ':' + args.PASSWORD, encoding='ascii'))

I get the error

HTTP error "401 Unauthorized" while fetching https://********:443/access/listvs

but my credentials are correct

Steps to reproduce - Plugin call

./kemp-services -H *** --username *** --password *** --insecure

Steps to reproduce - Data

No response

Environment

Linux *** 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

Kemp:

Vers:7.2.57.0.21570.RELEASE (VMware)

Plugin Version

kemp-services3: v2023021701 by Linuxfabrik GmbH, Zurich/Switzerland

Python version

Python 3.9.2

List of Python modules

No response

Additional Information

No response

@asltbbg asltbbg added the bug Something isn't working label Mar 15, 2023
@markuslf markuslf changed the title kemp-services3 credentials not converted correctly kemp-services3: Credentials not converted correctly Mar 15, 2023
@markuslf markuslf self-assigned this Mar 15, 2023
@markuslf markuslf added this to the M003 milestone Mar 15, 2023
@markuslf
Copy link
Member

Can you give it a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants