Skip to content
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

prepare.py -uvtd : Failed with account is temporarily blocked. #62

Open
Cubitus06 opened this issue Mar 27, 2023 · 0 comments
Open

prepare.py -uvtd : Failed with account is temporarily blocked. #62

Cubitus06 opened this issue Mar 27, 2023 · 0 comments

Comments

@Cubitus06
Copy link

A new, fresh install with Zabbix 6.4 by Following the tuto on :
https://www.zabbix.com/fr/download

VERSION DE ZABBIX
6.4
OS DISTRIBUTION
Alma Linux
VERSION DU SYSTÈME D’EXPLOITATION
9
ZABBIX COMPONENT
Server, Frontend, Agent
BASE DE DONNÉES
MySQL
SERVEUR WEB
Apache

Zabbix work like a charm, discover host, no pb.
Install zabbix-threat control until the last command :
/opt/monitoring/zabbix-threat-control/prepare.py -uvtd

then i receive an error :

#/opt/monitoring/zabbix-threat-control/prepare.py -uvtd

Traceback (most recent call last):
File "/opt/monitoring/zabbix-threat-control/prepare.py", line 639, in
zapi.login(config.zbx_user, config.zbx_pwd)
File "/usr/local/lib/python3.9/site-packages/pyzabbix/api.py", line 135, in login
self.auth = self.user.login(username=user, password=password)
File "/usr/local/lib/python3.9/site-packages/pyzabbix/api.py", line 265, in call
return self._parent.do_request(self._method, args or kwargs)["result"]
File "/usr/local/lib/python3.9/site-packages/pyzabbix/api.py", line 236, in do_request
raise ZabbixAPIException(
pyzabbix.api.ZabbixAPIException: ('Error -32602: Invalid params., Incorrect user name or password or account is temporarily blocked.', -32602)

if i change into /usr/local/lib/python3.9/site-packages/pyzabbix/api.py then username and password by Admin/zabbix who are the default password and work into the console, i obtain :

/opt/monitoring/zabbix-threat-control/scan.py

Traceback (most recent call last):
File "/opt/monitoring/zabbix-threat-control/scan.py", line 469, in
Scan().run()
File "/opt/monitoring/zabbix-threat-control/scan.py", line 40, in init
self.zapi.login(config.zbx_user, config.zbx_pwd)
File "/usr/local/lib/python3.9/site-packages/pyzabbix/api.py", line 135, in login
self.auth = self.user.login(username=Admin, password=zabbix)
NameError: name 'Admin' is not defined

any help to lauch this script and correct this bug who be appreciated

Thanks in advance,

Marc

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

No branches or pull requests

1 participant