Hi,
I've been working with Zabbix API and it's really great to automate configurations, however i'm stucked on getting a trigger id trying to filter it by the expression configured on the trigger
I get no result from this query, but the expression on the trigger is exactly written as the one on the field expression, i've tryied with "key_" instead of "expression" but then the results are all the triggers and not just the one that says max(/Device1/icmpping,#3)=0
Any suggestions
Thank you!
I've been working with Zabbix API and it's really great to automate configurations, however i'm stucked on getting a trigger id trying to filter it by the expression configured on the trigger
Code:
json={
"jsonrpc": "2.0",
"method": "trigger.get",
"params": {
"output": ["triggerid"],
"filter": {
"expression": "max(/Device1/icmpping,#3)=0"
}
},
"id": 1,
"auth": token
})
I get no result from this query, but the expression on the trigger is exactly written as the one on the field expression, i've tryied with "key_" instead of "expression" but then the results are all the triggers and not just the one that says max(/Device1/icmpping,#3)=0
Any suggestions
Thank you!
Comment