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 with more then 6 hours duration not appear in Query Mode Triggers Count #818

Closed
FlavioTelecall opened this issue Oct 11, 2019 · 3 comments

Comments

@FlavioTelecall
Copy link

Describe the bug
The Query for Trigger count only cound trigger that has duration lower than 6 hours.
I just did the test, if I remove the trigger on zabbix and create again, it count on grafana, and after the trigger hit the duration of 6 hours grafana not count it any more.

Expected behavior
We would like to count all the trigger that is selected.

Screenshots
Bug grafana
Bug grafana2
Bug grafana3
Bug grafana4
Bug grafana5
Bug grafana6

Network data
{
"xhrStatus": "complete",
"request": {
"method": "POST",
"url": "api/datasources/proxy/1",
"data": {
"jsonrpc": "2.0",
"method": "trigger.get",
"params": {
"output": "extend",
"hostids": [
"10307",
"10263",
"10266",
"10325",
"10294",
"10306",
"10297",
"10317",
"10367"
],
"min_severity": 3,
"filter": {
"value": 1
},
"expandDescription": true,
"expandData": true,
"expandComment": true,
"monitored": true,
"skipDependent": true,
"selectLastEvent": "extend",
"selectGroups": "extend",
"selectHosts": [
"host",
"name"
],
"countOutput": true,
"lastChangeSince": 1570770331,
"lastChangeTill": 1570791931
},
"id": 1,
"auth": "aed5c6dcb33590a4464670a35f3cee80"
}
},
"response": {
"jsonrpc": "2.0",
"result": "0",
"id": 1
}
}

{
"xhrStatus": "complete",
"request": {
"method": "POST",
"url": "api/datasources/proxy/1",
"data": {
"jsonrpc": "2.0",
"method": "trigger.get",
"params": {
"output": "extend",
"hostids": [
"10307",
"10263",
"10266",
"10325",
"10294",
"10306",
"10297",
"10317",
"10367"
],
"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,
"lastChangeSince": 1570770365,
"lastChangeTill": 1570791965
},
"id": 1,
"auth": "aed5c6dcb33590a4464670a35f3cee80"
}
},
"response": {
"jsonrpc": "2.0",
"result": "1",
"id": 1
}
}

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
6.3.2 4.2.5 and 4.4.0 3.10.4
@FlavioTelecall FlavioTelecall changed the title Trigger coult with duration more then 6 hours not count Trigger count with duration more then 6 hours not count Oct 11, 2019
@FlavioTelecall FlavioTelecall changed the title Trigger count with duration more then 6 hours not count Trigger with more then 6 hours duration not appear in Query Mode Triggers Count Oct 11, 2019
@deathtopigss
Copy link

Im having the same issue, Im trying to use query mode triggers count for a panel with singlestat and it allways shows 0!

@alexanderzobnin
Copy link
Collaborator

Try to increase panel time range. It returns only problems within selected time range.

@FlavioTelecall
Copy link
Author

Try to increase panel time range. It returns only problems within selected time range.

@alexanderzobnin could you put a button or checkbox to count the current trigguers alarms, dont matter the time range? Because Its not good for us the need of stay with the dashbord with a long time range, but we want to see all the current alarms all the time.
Normaly we use the time range on dashbord of 1 hour.

image

image

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

3 participants