You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only the third "problems" are returning proper data, the two previous returns non filtered data, i.e. all the problems.
There's no any error nor exception in case of improper parameter, it seems dropped silently.
Zabbix_utils version: 2.0.1 installed via pip
I run script with debug mode, here's the outcomes:
For problems_dict: DEBUG Sending request to https://zabbix.intive.org/zabbix/api_jsonrpc.php with body: { "jsonrpc": "2.0", "method": "problem.get", "params": [ { "tags.value.0": "security", "tags.operator.0": "0", "tags.tag.0": "team" } ],
Hello,
I have an issue when I try tu use parameter to retrieve filtered results. here's an example
`
zabbix = ZabbixAPI(url=ZABBIX_URL, token=ZABBIX_API_TOKEN)
`
Only the third "problems" are returning proper data, the two previous returns non filtered data, i.e. all the problems.
There's no any error nor exception in case of improper parameter, it seems dropped silently.
Zabbix_utils version: 2.0.1 installed via pip
I run script with debug mode, here's the outcomes:
For problems_dict:
DEBUG Sending request to https://zabbix.intive.org/zabbix/api_jsonrpc.php with body: { "jsonrpc": "2.0", "method": "problem.get", "params": [ { "tags.value.0": "security", "tags.operator.0": "0", "tags.tag.0": "team" } ],
For problems:
` DEBUG Sending request to https://zabbix.intive.org/zabbix/api_jsonrpc.php with body: {
"jsonrpc": "2.0",
"method": "problem.get",
"params": {
"tags": [
{
"value": "security",
"operator": "0",
"tag": "team"
}
]
},
As you can note, the difference is params value is a list in first case and dict in the second
The text was updated successfully, but these errors were encountered: