zabbix-threat-control icon indicating copy to clipboard operation
zabbix-threat-control copied to clipboard

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

Open Cubitus06 opened this issue 1 year ago • 0 comments

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

Cubitus06 avatar Mar 27 '23 08:03 Cubitus06