Comments (6)
Have a look on #48 , works well with this patch
from zabbix-threat-control.
similar problem with zabbix 5.4:
Checking the connection to the zabbix-server via zabbix_sender...
Сompleted successfully. For connecting with zabbix-server used address "localhost"
Host group "Vulners" already exists (id: 20). Use this group.
Can't create host vulners.hosts. Exception: ('Error -32601: Method not found., Incorrect API "application".', -32601)
from zabbix-threat-control.
If I go further giving the optional keys separately I get another issues:
Connected to Zabbix API v.5.4.0
Traceback (most recent call last):
File "/opt/monitoring/zabbix-threat-control/prepare.py", line 387, in <module>
{'type': '3', 'name': 'hostids', 'value': bulls_id}]},
NameError: name 'bulls_id' is not defined
BTW: if you run prepare.py with separate key (- v, -t, -d) It creates vhosts group, host, and even template but breaks on creating the Dashboard and then on creating an action. (-a)
from zabbix-threat-control.
nope, always the same, i've try with the patch 6ff832a
but don't resolve the problem
**root@server**~# /opt/monitoring/zabbix-threat-control/prepare.py -uvtda
Connected to Zabbix API v.5.4.3
Checking the connection to the zabbix-agent...
Сompleted successfully. For connecting with zabbix-agent used address "127.0.0.1"
Checking the connection to the zabbix-server via zabbix_sender...
Сompleted successfully. For connecting with zabbix-server used address "localhost"
Host group "Vulners" already exists (id: 20). Use this group.
Host "Vulners - Hosts" (id: 10365) was renamed to "Vulners - Hosts.bkp-2021-07-30_09-21-50" and deactivated.
Can't create host vulners.hosts. Exception: ('Error -32601: Method not found., Incorrect API "application".', -32601)
**root@server**:~# /opt/monitoring/zabbix-threat-control/prepare.py -u
Connected to Zabbix API v.5.4.3
Checking the connection to the zabbix-agent...
Сompleted successfully. For connecting with zabbix-agent used address "127.0.0.1"
Checking the connection to the zabbix-server via zabbix_sender...
Сompleted successfully. For connecting with zabbix-server used address "localhost"
**root@server~**# /opt/monitoring/zabbix-threat-control/prepare.py -v
Connected to Zabbix API v.5.4.3
Host group "Vulners" already exists (id: 20). Use this group.
Host "Vulners - Hosts" (id: 10366) was renamed to "Vulners - Hosts.bkp-2021-07-30_09-22-04" and deactivated.
Can't create host vulners.hosts. Exception: ('Error -32601: Method not found., Incorrect API "application".', -32601)
root@server:~# /opt/monitoring/zabbix-threat-control/prepare.py -t
Connected to Zabbix API v.5.4.3
Can't create template "Template Vulners OS-Report". Exception: ('Error -32601: Method not found., Incorrect API "application".', -32601)
root@Mr-Wolf:~# /opt/monitoring/zabbix-threat-control/prepare.py -a
Connected to Zabbix API v.5.4.3
Traceback (most recent call last):
File "/opt/monitoring/zabbix-threat-control/prepare.py", line 365, in <module>
{'conditiontype': 1, 'operator': 0, 'value': pkgs_id, 'value2': '',
NameError: name 'pkgs_id' is not defined
**root@server**:~# /opt/monitoring/zabbix-threat-control/prepare.py -d
Connected to Zabbix API v.5.4.3
Traceback (most recent call last):
File "/opt/monitoring/zabbix-threat-control/prepare.py", line 387, in <module>
{'type': '3', 'name': 'hostids', 'value': bulls_id}]},
NameError: name 'bulls_id' is not defined
```
`
from zabbix-threat-control.
I too have this same issue, running zabbix 5.4.8
[azureadmin@localhost ~]$ sudo /opt/monitoring/zabbix-threat-control/prepare.py -uvtda
Connected to Zabbix API v.5.4.8
Checking the connection to the zabbix-agent...
?ompleted successfully. For connecting with zabbix-agent used address "127.0.0.1"
Checking the connection to the zabbix-server via zabbix_sender...
?ompleted successfully. For connecting with zabbix-server used address "localhost"
Host group "Vulners" already exists (id: 46). Use this group.
Can't create host vulners.hosts. Exception: ('Error -32602: Invalid params., Invalid parameter "/1/macros/1/value": a character string is expected.', -32602)
from zabbix-threat-control.
I'm having this same issue.
Can't create host vulners.hosts. Exception: ('Error -32602: Invalid params., Invalid parameter "/1/macros/1/value": a character string is expected.', -32602)
from zabbix-threat-control.
Related Issues (20)
- Vulners action is empty HOT 1
- Fix action doesn't fix
- KeyError: 'OPTIONAL'
- Incorrect version and vulnerabilities detection
- Problems with parameters of prepare.py
- fix.py doesn't use port information
- Vulners - Suse leap 15.1
- Work with proxy
- no hosts or packages visible in dashboard - related to fix hostid in prepare.py? HOT 2
- OS - Packages - not fully populated HOT 2
- Problem with running plugin in docke
- Can't create host vulners.hosts. Exception: ('Error -32601: Method not found., Incorrect API "application" HOT 1
- ModuleNotFoundError: No module named 'pyzabbix' with Zabbix 5.0LTS on Ubuntu 20.04 via hand HOT 1
- Compatibility with Zabbix 5.4 and the future 6.0 HOT 2
- Unable to install Threat Control HOT 1
- Packages (at least for Debian) are not up to date
- empty string runing system.run[{$REPORT_SCRIPT_PATH} package] HOT 1
- prepare.py -uvtd : Failed with account is temporarily blocked.
- Use system.sw.packages.get to eliminate the need to have scripts on agents
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zabbix-threat-control.