Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25457

False positive active trigger after xml to json preprocessicng

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 7.0.5
    • 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

            zabbix.dev Zabbix Development Team
            nick.w Nick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: