Git Product home page Git Product logo

Comments (6)

JD-ISWT avatar JD-ISWT commented on August 26, 2024

Have a look on #48 , works well with this patch

from zabbix-threat-control.

 avatar commented on August 26, 2024

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.

takenp avatar takenp commented on August 26, 2024

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.

 avatar commented on August 26, 2024

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.

markd-bit avatar markd-bit commented on August 26, 2024

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.

jtoninger avatar jtoninger commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.