Hello,
I'm trying to access some trigger information, grouped by application, using ZabbixApi with Python.
Accessing trigger information work great, but I the applicationids filter doesn't seems to have any effects in trigger.get.
I think the "applicationids" parameter from function trigger.get is not working.
Documenttion is saying:
* applicationids string/array
Return only triggers that contain items from the given applications.
I'm using the API this way:
triggers = zapi.trigger.get({
'filter':{
'hostid': h['hostid'],
'applicationids': [app_id],
'withAcknowledgedEvents':'1',
},
'only_true': True,
selectItems': [],
'output':'extend',
'expandDescription': True
})
But for any application, I got the trigger.
Any clue ?
Cheers,
Stéphane
I'm trying to access some trigger information, grouped by application, using ZabbixApi with Python.
Accessing trigger information work great, but I the applicationids filter doesn't seems to have any effects in trigger.get.
I think the "applicationids" parameter from function trigger.get is not working.
Documenttion is saying:
* applicationids string/array
Return only triggers that contain items from the given applications.
I'm using the API this way:
triggers = zapi.trigger.get({
'filter':{
'hostid': h['hostid'],
'applicationids': [app_id],
'withAcknowledgedEvents':'1',
},
'only_true': True,
selectItems': [],
'output':'extend',
'expandDescription': True
})
But for any application, I got the trigger.
Any clue ?
Cheers,
Stéphane