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

server crashing on JSONpath preprocessing

    XMLWordPrintable

Details

    • Problem report
    • Status: Confirmed
    • Trivial
    • Resolution: Unresolved
    • 4.0.25
    • None
    • None
    • None
    • zabbix-server-mysql 4.0.25
      CentOS Linux release 7.6.1810 (Core)

    Description

      Conditions to reproduce:

      • master item (HTTPS check) returning output in 2 alternate forms:

      {"name1":{"name11":"value11","name12":"value12","name13":"value13","name14":{}}}

      {"name14":{"name141":

      {"name1411":"value1411","name1412":"value1412","name1413":"value1413","name1414":"value1414"}

      }}

      • (original JSON data are masked, in case exact original data would be required, I can send it other way)
      • dependent item configured with 1m update interval (via LLD, but maybe it is unimportant) with JSONpath preprocessing $[?(@.name14 =~ '.' || @.[0].[0].name14 =~ '.')]
      • (I see that JSONpath pattern is not valid, because using indefinite path inside filter, but I think it should not cause server crash anyway)
      • (I also see that input data sholud have fixed structure for efficient JSONpath preprocessing, and I am not sure, if I would be able retrieve any property without not supported items when alternating input JSON - any advice is welcome)

      Result:
      Server crashing (and restarting automatically) every minute (according to dependent item update interval). Crash information from server log attached.
      Expected:
      Not supported or not LL-discovered item.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            rico Richard Ostrochovský
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: