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

Trigger Counts and Single Stat #726

Closed
jameskirsop opened this issue Apr 23, 2019 · 8 comments
Closed

Trigger Counts and Single Stat #726

jameskirsop opened this issue Apr 23, 2019 · 8 comments

Comments

@jameskirsop
Copy link

jameskirsop commented Apr 23, 2019

Describe the bug
The Single Stat plugin doesn't appear to render trigger counts correctly after upgrading to Zabbix to 4.0.x and Grafana and this Zabbix plugin to the latest available. I either see a blank panel or 'undefined' depending on the browser.

Other Single Stat panels backed on to Zabbix (not showing counts, but specific metrics) don't appear to be affected and are working as before the upgrades.

Expected behavior
Previously the Single Stat plugin would show the count of the number of triggers returned by the query.

Screenshots
Screen Shot 2019-04-23 at 11 18 05 am

Network data
This is the return data of one of two affected queries.

{
    "jsonrpc": "2.0",
    "result": "3",
    "id": 1
}

Other Notes
I've tried deleting the panel and adding it back in again but see the same results.

@cyberox
Copy link

cyberox commented Apr 23, 2019

I'm having the same issue after upgrading Zabbix from 4.2.0 to 4.2.1.
The default Zabbix System Status dashboard is no longer displaying the number in the blocks.

Screenshot 2019-04-23 at 08 17 00

@DrKomtur
Copy link

DrKomtur commented Apr 24, 2019

Same Issue for upgrading from 4.0.4 to 4.0.7
The API Query returns values, but they are not showed in the Single Stat Trigger counter

Seems like Zabbix changed the API Count Output Datafield in the last Update.
"Fixed api returns "countoutput", "select*": "count" results and "suppressed" property as integer"
https://support.zabbix.com/browse/ZBX-15762

Object
xhrStatus:"complete"
request:Object
method:"POST"
url:"api/datasources/proxy/1"
data:Object
jsonrpc:"2.0"
method:"trigger.get"
params:Object
output:"extend"
hostids:Array[50]
min_severity:4
filter:Object
value:1
expandDescription:true
expandData:true
expandComment:true
monitored:true
skipDependent:true
selectLastEvent:"extend"
selectGroups:"extend"
selectHosts:Array[2]
0:"host"
1:"name"
countOutput:true
applicationids:Array[50]
lastChangeSince:1546297200
lastChangeTill:1556083617
id:1
auth:"7e67168c67c0fd46dbce38e19783e4aa"
response:Object
jsonrpc:"2.0"
result:"1"
id:1

#############
Update
#############

if you disable the Queries->"Count" value (eq countOutput:true) and set the Severity in Visualisation->Column to the correct Severity then you get the correct value back

2019-04-24 08_17_58-Window
2019-04-24 08_18_17-Window

@alexanderzobnin
Copy link
Collaborator

Yes, now Zabbix returns result field as a string (was an integer number previously).

@jameskirsop
Copy link
Author

Can the commit be released in a 3.10.3 update? Seems like it just missed out on 3.10.2.

@heshammhafez
Copy link

Hello Guys
I'm having the same problem but I don't understand how to fixed, can anyone explain in more details the solution, by the way I'm a System Admin :)

Software Version

Zabbix Grafana Zabbix-Grafana-Plugin
4.0.7 6.1.6 3.10.2

@DrKomtur
Copy link

Well, but its explained here for Sys Admins -> you cant fix it until the next update is released, because its a bug in the current version, in cause of the change in the latest Zabbix Version you running.

@jameskirsop
Copy link
Author

@alexanderzobnin 2 months have passed since the patch was committed to master. Could a new release be pushed out so that this plugin will work with current versions of Zabbix?

@arend30
Copy link

arend30 commented Jul 1, 2019

I am tested new pre release verison zabbix 4.2.2rc1, still has problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants