Ad Widget

Collapse

Cannot extract value from jsaon

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ahmad Abu hashem
    Junior Member
    • Jul 2019
    • 9

    #1

    Cannot extract value from jsaon

    I have zabbix_server 4.2.4 and I have this error in /var/log/zabbix_zabbix_server.log on ubuntu 18.4
    I have no idea what to do to not have this error. please help me to figure out?

    "0", "ReqEdns0": "11262482", "ReqBadEDNSVer": ...
    1. Failed: cannot extract value from json by path "$.cache.ANY": object not found starting with json path: "ANY"
    13787:20200116:120003.106 error reason for "DNS:bind.cache[NAPTR]" changed: Preprocessing failed for: {"counter": {"Requestv4": "15238832", "Requestv6": "0", "ReqEdns0": "11262482", "ReqBadEDNSVer": ...
    1. Failed: cannot extract value from json by path "$.cache.NAPTR": object not found starting with json path: "NAPTR"
    13787:20200116:120003.106 error reason for "DNS:bind.cache[SOA]" changed: Preprocessing failed for: {"counter": {"Requestv4": "15238832", "Requestv6": "0", "ReqEdns0": "11262482", "ReqBadEDNSVer": ...
    1. Failed: cannot extract value from json by path "$.cache.SOA": object not found starting with json path: "SOA"
    13787:20200116:120003.106 error reason for "DNS:bind.cache[MX]" changed: Preprocessing failed for: {"counter": {"Requestv4": "15238832", "Requestv6": "0", "ReqEdns0": "11262482", "ReqBadEDNSVer": ...
    1. Failed: cannot extract value from json by path "$.cache.MX": object not found starting with json path: "MX"
    13787:20200116:120003.106 error reason for "DNS:bind.cache[SPF]" changed: Preprocessing failed for: {"counter": {"Requestv4": "15238832", "Requestv6": "0", "ReqEdns0": "11262482", "ReqBadEDNSVer": ...
    1. Failed: cannot extract value from json by path "$.cache.SPF": object not found starting with json path: "SPF"
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Isn't there a place in the input JSON format that matches the set JSON Path expression? Check the content of the input JSON format.

    Comment

    • gert.derouck
      Member
      • Jan 2020
      • 69

      #3
      You can validate your expression with some online tester, eg https://jsonpath.com/

      Comment

      • Ahmad Abu hashem
        Junior Member
        • Jul 2019
        • 9

        #4
        Hi,

        I Have no idea from where these output come from. where Can I find the input that made this problems. Is it in the configuration files in zabbix installation or from the GUI there I see my triggers and items?
        It will be so great if you can take my hand step by step through that, please?

        Comment

        • gert.derouck
          Member
          • Jan 2020
          • 69

          #5
          You can start looking in the items which are in state 'Not Supported'; these DNS:bind.cache[XXX] items will be listed there.
          Check on which host they are configured and see how/what data is collected by the item.

          Comment

          • Ahmad Abu hashem
            Junior Member
            • Jul 2019
            • 9

            #6
            I found the host that made this problem and disabled the items that are not supported. It helps alot. Thank you very much Genius.
            But I didn't realy get how can I check the input Json format, or clearlt which expression shoud I test! Is it in item, Is it Key, where is the script that I need to foumd?
            But the problem is solved now thanks

            Comment

            • gert.derouck
              Member
              • Jan 2020
              • 69

              #7
              Hi, paste a screenshot of the relevant discovery item here, so we can see where the data is coming from...

              Comment

              • Ahmad Abu hashem
                Junior Member
                • Jul 2019
                • 9

                #8
                Do you mean this one. this is from the host that had the problem.
                Attached Files

                Comment

                • dimir
                  Zabbix developer
                  • Apr 2011
                  • 1080

                  #9
                  No, on the right from "Items" you have the "Discovery rules" tab. Click it and click item named "DNS: Bind - Master JSON".

                  Comment

                  • Ahmad Abu hashem
                    Junior Member
                    • Jul 2019
                    • 9

                    #10
                    I have to Bind-Master jSON som rule
                    Attached Files

                    Comment

                    • gert.derouck
                      Member
                      • Jan 2020
                      • 69

                      #11
                      Almost there...
                      In your last screenshot you see the 'Item Prototypes' (37). The one you're looking for must be one these.

                      Comment

                      Working...