grafana / grafana-zabbix

Zabbix plugin for Grafana dashboard
http://play.grafana-zabbix.org
Apache License 2.0
2.08k stars 460 forks source link

Singlestat panel doesn't show correct trigger count for specified host #776

Open 7abbix opened 5 years ago

7abbix commented 5 years ago

Describe the bug Hi, Right now zabbix shows 4 active problems for selected host. But Grafana panel shows only 2. Minimum trigger severity is set to "Information". This seems to be a bug. What additional info should I provide to fix this bug?

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

grafana-zabbix-bug-02

grafana-zabbix-bug-03

Network data If it's related to metric data visualization would be great to get the raw query and response for the network request (check this in browser dev tools network tab, there you can see metric requests, please include the request body and request response)

Output of Query Inspector: { "xhrStatus": "complete", "request": { "method": "POST", "url": "api/datasources/proxy/1", "data": { "jsonrpc": "2.0", "method": "trigger.get", "params": { "output": "extend", "hostids": [ "10323" ], "min_severity": 1, "filter": { "value": 1 }, "expandDescription": true, "expandData": true, "expandComment": true, "monitored": true, "skipDependent": true, "selectLastEvent": "extend", "selectGroups": "extend", "selectHosts": [ "host", "name" ], "countOutput": true, "applicationids": [ "1810", "1811", "1822", "1820", "1818", "1815", "1817", "1821", "1816", "1819", "1721", "1812", "1813", "1814" ], "lastChangeSince": 1533536443, "lastChangeTill": 1565072443 }, "id": 1, "auth": "85bda007042f1bda266033db1553313f" } }, "response": { "jsonrpc": "2.0", "result": "2", "id": 1 } }

Note: this bug occurs, when there are multiple applications in Zabbix item. In this case Application regex filter "/.*/" doesn't work correctly.

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
6.2.5 4.0.11 3.10.3
gabrielleiteecore commented 5 years ago

Hey man!

Facing same issue. I have updated grafana today to new version and still not working correctly

# grafana-cli plugins ls installed plugins: alexanderzobnin-zabbix-app @ 3.10.4

I have 1 trigger with problem and grafana is counting 0

response:Object jsonrpc:"2.0" result:0 id:1

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had activity in the last 2 years. It will be closed in 60 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!