-
Notifications
You must be signed in to change notification settings - Fork 159
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
support to new auth token #142
Comments
+1 |
zapi.login(api_token="xxx") |
zapi.login(api_token="xxx") |
I'm using 5.4.4. The token generated at "Administration -> General -> API token" |
Hi all! I not found support for api tokens in "/usr/local/lib/python3.8/dist-packages/pyzabbix/api.py". It seems like api tokens not supprorted now. Is planned to integrate this feature in this python module ? Or am I wrong? |
Is not supported. Actually this feature would be super useful as it will save the cost of authenticating with user and password, when you can just persist your session and reuse it (if it expired the log in again and get a new one) |
Hi, i think this is fixed, i can use a token with pyzabbix in version 6.0.19 code of script:
Execution:
|
@gdeleon23 hey man now there's the official python module from Zabbix, no more need to use third party modules, check it out at github.com/zabbix/python-zabbix-utils |
as zabbix 5.4 introduced support for auth token, is planned to integrate this feature in this python module ?
The text was updated successfully, but these errors were encountered: