False positive active trigger after xml to json preprocessicng

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.5
    • Component/s: Server (S)
    • None

      Steps to reproduce:

      1. Create script type item with this content:
        return '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>\
        <status>\
            <output>\
                <channel num="1">\
                    <message>no&#xa0;ttx&#xa0;data</message>\
                </channel>\
                <channel num="2">\
                    <message>ok</message>\
                </channel>\
            </output>\
        </status>' 
      1. Sets item preprocessing:
        1. XML to JSON
        2. JSON Path: $.status.output.channel.[?(@['@num'] == 1)].message.first() 
      1. Create trigger for item with expression:
        in(last(/test/test.in),"ok","no ttx data")=0 
      1. Wait 1m whet script will be execute

      Result:
      Trigger staus: PROBLEM
      Expected:
      Trigger staus: OK

            Assignee:
            Zabbix Development Team
            Reporter:
            Nick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: