Skip to content

update/zabbix-api-params-changed-in-v6 #155

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jschoewe
Copy link

@jschoewe jschoewe commented Jun 7, 2023

This module does not work with Zabbix version 6 because they changed the user parameter in the user.login method. Added a version check to pass the correct params and removed user.authenticate method that has been deprecated since version 2.

https://www.zabbix.com/documentation/current/en/manual/api/reference/user/login

https://www.zabbix.com/documentation/2.0/en/manual/appendix/api/user/authenticate

jschoewe and others added 3 commits June 6, 2023 11:07
…6 and removed user.authenticate method that has been deprecated since version 2
…s-changed-in-v6

update/zabbix-api-params-changed-in-v6
Copy link

@DomiiBunn DomiiBunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great it this could be merged

Copy link
Owner

@adubkov adubkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to break compatibility with previous versions. And it is used by many projects already.
I think we should keep both use_authenticate and use_basic_auth options.

Copy link

@maratzzzxxx maratzzzxxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working

@jschoewe
Copy link
Author

I think this can be merged now

@jschoewe
Copy link
Author

jschoewe commented Feb 18, 2025

Do the maintainers of this module even use Zabbix any more? @adubkov

@fibbs
Copy link

fibbs commented Feb 18, 2025

Shouldn't this module be obsoleted in favor of zabbix_utils, which has been published officially by Zabbix?

I have migrated quite a number of scripts and automations and in a 99% of cases, at least when just interacting with Zabbix API (not talking about the "zabbix-sender" part of this module) this worked for me just out-of-the-box by exchanging the modules in the import statement of the script.

@jschoewe
Copy link
Author

Shouldn't this module be obsoleted in favor of zabbix_utils, which has been published officially by Zabbix?

I have migrated quite a number of scripts and automations and in a 99% of cases, at least when just interacting with Zabbix API (not talking about the "zabbix-sender" part of this module) this worked for me just out-of-the-box by exchanging the modules in the import statement of the script.

Ah, I didn't know this existed. Thanks for the reference!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants