Hello !
I followed this tutorial (https://blog.zabbix.com/security-rel...h-zabbix/8659/), the part "Advanced Vulnerability scans".
But the problem is, when I tried to get the value of id, instead of having something like 235768 I have ["235768"].
And when the item is created, it looks like : Vulnerability LLD: Vulnerability data ["999955"]: Vulnerability ["999955"] and the key : vulnerability["["999955"]"]
Here is the JSONPath that I set : $.[?(@.id == {#ID})].msg if i replaced the value {#ID} by 235768 for example, it is working and I get the message.
My LLD macro is : {#ID} = $..['id']
And I don't know what to do, because the value comes from the macro... and I don't think it's possible to modify the macro.
Thank you.
Best regards.
I followed this tutorial (https://blog.zabbix.com/security-rel...h-zabbix/8659/), the part "Advanced Vulnerability scans".
But the problem is, when I tried to get the value of id, instead of having something like 235768 I have ["235768"].
And when the item is created, it looks like : Vulnerability LLD: Vulnerability data ["999955"]: Vulnerability ["999955"] and the key : vulnerability["["999955"]"]
Here is the JSONPath that I set : $.[?(@.id == {#ID})].msg if i replaced the value {#ID} by 235768 for example, it is working and I get the message.
My LLD macro is : {#ID} = $..['id']
And I don't know what to do, because the value comes from the macro... and I don't think it's possible to modify the macro.
Thank you.
Best regards.
Comment