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

template app redis keyspace per db wrong json

XMLWordPrintable

    • Team INT
    • 1

      Problem:
      Redis template agent 2 wrong json patch.

      // code placeholder
      

      This item is Parent for  redis.db.info_raw"{#DB}"
      parent already extracts .Keyspace 

                name: 'Redis: Get Keyspace info'
                type: DEPENDENT
                key: redis.keyspace.info_raw
                delay: '0'
                history: '0'
                trends: '0'
                value_type: TEXT
                preprocessing:
                  - type: JSONPATH
                    parameters:
                      - $.Keyspace 

      Child item JSONPATCH want .Keyspace witch dose not exist so need just '$."{#DB}"'

      name: 'DB {#DB}: Get Keyspace info'
      type: DEPENDENT
      key: 'redis.db.info_raw["{#DB}"]'
      delay: '0'
      history: '0'
      trends: '0'
      value_type: TEXT
      description: 'The item gets information about keyspace of {#DB} database.'  preprocessing:
       - type: JSONPATH
         parameters:
           - '$.Keyspace["{#DB}"]'
         error_handler: DISCARD_VALUE
      master_item:
       key: redis.keyspace.info_raw

      Template
      redis db agent 2 template

            drasikhov Denis Rasikhov
            agrisv agris
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: