Ad Widget

Collapse

JSONpath preprocessing not working as intended

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dagrim
    Junior Member
    • Sep 2024
    • 2

    #1

    JSONpath preprocessing not working as intended


    Hello,
    We've been using the Azure cost management template since 6.4 without any problems. After upgrading to 7.0.0, the processing of certain items has broken. Our Zabbix is currently at version 7.0.3. I've tested the situation by creating a new host, but the problem is still present.

    In the screenshot the low level discovery doesn't work properly because it looks like the JSONpath preprocessing doesn't properly handle the data.
    Click image for larger version

Name:	image.png
Views:	161
Size:	54.1 KB
ID:	491659
    Like I mentioned, we didn't have this problem prior to upgrading. We have the latest version of the template as well and it has not been altered or edited. I've also experienced similar behavior when testing out similar JSONpath preprocessing.

    The two JSONpaths related to the Azure cost management templates are as follows:
    Code:
    $.serviceCost.data.[?(@.BillingMonth == "{#AZURE.BILLING.MONTH}")]
    ​$.[?(@.ServiceName == "{#AZURE.SERVICE.NAME}")].PreTaxCost.first()
Working...