Comments (13)
You need to specify in ztc.conf username and password of the user with "Zabbix Super Admin" user type.
What credentials do you have specified in ztc.conf now?
from zabbix-threat-control.
Hi
currently, in the ztc.conf, i've specified the "ZabbixApiUser = Admin", which is the Zabbix Super Admin by default.
As for the other credentials, "ZabbixFrontUrl", "ZabbixServerFQDN" and "ZabbixServerPort", i did not specify any since they are optional.
Thanks!
from zabbix-threat-control.
If you do not specify a ZabbixFrontUrl - ztc uses fallback URL: http://localhost/zabbix.
Try specifying the URL.
from zabbix-threat-control.
Hi
I specified the ZabbixFrontUrl but I'm still getting the same error.
from zabbix-threat-control.
here is the code where the problem occurs
try:
zapi = ZabbixAPI(zbx_url, timeout=5)
zapi.session.verify = zbx_verify_ssl
zapi.login(zbx_user, zbx_pass)
zapi_ver = zapi.api_version()
print('Connected to Zabbix API v.{}\n'.format(zapi.api_version()))
zapi_ver_float = float(zapi_ver.split('.')[0] + '.' + zapi_ver.split('.')[1])
if zapi_ver_float < required_zapi_ver:
print('Required Zabbix version {} or higher\nExit.'.format(required_zapi_ver))
exit(0)
except Exception as e:
print('Error: Can\'t connect to Zabbix API. Exception: {}'.format(e))
exit(1)
it doesn't occur to me that there might be a problem.
Can I see the whole ztc.conf ?
from zabbix-threat-control.
sorry for the late reply. Was end of week.
This is the ztc.conf currently in the system.
I've masked out the IP in the ZabbixFrontURL. If you need that too, let me know.
Thanks!
from zabbix-threat-control.
check the connection type: http/https
index.php
- need to remove
As an example:
my prod env: ZabbixFrontUrl = https://zabbix.qiwi.com
my dev env: ZabbixFrontUrl = http://127.0.0.1/zabbix
from zabbix-threat-control.
Hello,
My connection type is http. I removed the index.php and the 'can't connect to api' error is solved.
Subsequently there was another error related to "zabbix_get" not able to run remote commands which i managed to fix.
However, i get another "zabbix_sender" error below which i can't resolve. Does it matter if my zabbix agents are running in active mode (active agents)?
Connected to Zabbix API v.4.0.5
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...
Error: Can't send data with zabbix-sender:
Command: zabbix_sender -z my.companydomain.comZabbixServerPort = 10051 -p 10051 -s zabbix_sender_ztc_test -k zabbix_sender_ztc_test -o 1 -vv
zabbix_sender [8778]: too few or mutually exclusive options used
usage:
.......
/bin/sh: line 3: ZabbixServerPort: command not foundPlease fix this for continue!
Thank you.
from zabbix-threat-control.
uncomment
# ZabbixServerPort = 10051
from zabbix-threat-control.
yes, i've uncommented it.
from zabbix-threat-control.
Hello I tried to integrate vulners with zabbix last version but I have the next issue when I execute "python3.6 /opt/monitoring/zabbix-threat-control/prepare.py -uvtda" I got:
Checking the connection to the zabbix-agent...
Error: Can't execute remote command on zabbix-agent:
Command: zabbix_get -s localhost -k system.run["echo CheckRemoteCommand"]
zabbix_get [3767]: Check access restrictions in Zabbix agent configuration
If I execute the same command with other item all seems works fine
zabbix_get -s 127.0.0.1 -k agent.hostname I got : Zabbix server
from zabbix-threat-control.
Differences:
zabbix_get -s localhost -k system.run["echo CheckRemoteCommand"]
zabbix_get -s 127.0.0.1 -k agent.hostname
To enable this functionality (system.run), agent configuration file must contain EnableRemoteCommands=1 option.
from zabbix-threat-control.
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
- problem with prepare.py HOT 6
- 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.