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

no hosts or packages visible in dashboard - related to fix hostid in prepare.py? #51

Open
nislab-hslu opened this issue May 20, 2021 · 2 comments

Comments

@nislab-hslu
Copy link

Hi,

We are running zabbix version: 5.0.10.
There is no host or packages visible in my dashboard in zabbix. The "Template Vulners OS-Report" is linked to two hosts. Zabbix server by it self and another ubuntu server. I've updated the execution timer on the items scan.py and report.py.

vulners_dashboard_empty

My guess is, that it has something to do with the report.py or prepare.py script.
To run the prepare.py script without "host-id" error, i removed these entries documented in issue: #48

Anyone an idea whats wrong? Can i check some additional logs?

I can see that the ubuntu server is executing the report.py script in /var/log/zabbix/zabbix_agentd.log
2886:20210520:101218.820 Executing command '/opt/monitoring/os-report/report.py package'
2884:20210520:101219.912 Executing command '/opt/monitoring/os-report/report.py version'
2885:20210520:102217.795 Executing command '/opt/monitoring/os-report/report.py os'

The connection to zabbix and vulners.com seems to work:
./scan.py (output omitted)
INFO:ZTC:Connected to Zabbix API v.5.0.10
INFO:ZTC:Received from Zabbix 2 hosts for processing
INFO:ZTC:Receiving extended data about hosts from Zabbix
INFO:ZTC:[1 of 2] "host1". Successfully received extended data
INFO:ZTC:[2 of 2] "Zabbix server". Successfully received extended data
INFO:ZTC:Processed hosts: 2.
INFO:ZTC:Checking data from Zabbix
INFO:ZTC:After checking data from Zabbix, there are 2 entries left. Removed 0
INFO:ZTC:Receiving the vulnerabilities from Vulners
INFO:ZTC:[1 of 2] "host1". Successfully received data from Vulners
INFO:ZTC:[2 of 2] "Zabbix server". Successfully received data from Vulners
INFO:ZTC:Processed hosts: 2
INFO:ZTC:Exclude invalid response data from Vulners
INFO:ZTC:There are 2 entries left. Removed: 0
INFO:ZTC:Сreating an additional field in the host-matrix based on data from Vulners
INFO:ZTC:[1 of 2] "host1". Successfully processed
INFO:ZTC:[2 of 2] "Zabbix server". Successfully processed
INFO:ZTC:Processed hosts: 2
INFO:ZTC:Сreating an LLD-data: CVSS-Scores and Cumulative-Fix commands
INFO:ZTC:Creating a matrix of vulnerable packages of all hosts
INFO:ZTC:[1 of 2] "host1". No vulnerable packages found
INFO:ZTC:[2 of 2] "Zabbix server". No vulnerable packages found
INFO:ZTC:Processed hosts: 2
INFO:ZTC:Unique vulnerable packages processed: 0
INFO:ZTC:Сreating an LLD-data for package monitoring
INFO:ZTC:Creating an bulletin-matrix
INFO:ZTC:[1 of 2] "host1". No security bulletins found
INFO:ZTC:[2 of 2] "Zabbix server". No security bulletins found
INFO:ZTC:Processed hosts: 2
INFO:ZTC:Unique security bulletins processed: 0
INFO:ZTC:Сreating an LLD-data for bulletin monitoring
INFO:ZTC:Сreating an CVSS Score-based host-lists
INFO:ZTC:Сreating an aggregated data
INFO:ZTC:Pushing LLD-objects to Zabbix: zabbix_sender -z zabbix.xxx.xxx.intern -p 10051 -i /opt/monitoring/zabbix-threat-control/lld.zbx
INFO:ZTC:Response from "zabbix.xxx.xxx.intern:10051": "processed: 3; failed: 0; total: 3; seconds spent: 0.000150"
sent: 3; skipped: 0; total: 3

@nislab-hslu
Copy link
Author

Zabbix updated to version 5.2 <- issue still persists.

@LmceZap
Copy link

LmceZap commented Mar 3, 2023

Hi
Did find any solution for this @nislab-hslu

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

2 participants