Ad Widget

Collapse

Unable to test XPath Preprocessing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sdi-david
    Junior Member
    • Jul 2020
    • 2

    #1

    Unable to test XPath Preprocessing

    I have been trying to create some items using XPath after reading this blog post: https://blog.zabbix.com/zabbix-xpath...ocessing/7936/

    I created the HTTP agent item and it pulls in the XML data. I then started working a Dependent item and when I attempt to test the preprocessing, I get this error:
    cannot extract XML value with xpath "count(/server/devices/device/field)": cannot parse xml value
    I assumed I was making a mistake because I am not familiar with XPath so I continued researching and testing for another hour or so before I accidentally saved the item and noticed it was working.

    I installed Zabbix 5.0 on CentOS 8 from the Zabbix repo, is this an issue with my install or an issue with Zabbix itself?
  • sdi-david
    Junior Member
    • Jul 2020
    • 2

    #2
    I realized the issue is that test doesn't appear to pull the actual data, but lets you populate the data. If I put the xml data into the first value field in the test dialog it works. So the problem was how I thought test works. My bad!

    Comment

    Working...