Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create template and group items by application? #1213

Open
djdejawu opened this issue Apr 19, 2024 · 0 comments
Open

How to create template and group items by application? #1213

djdejawu opened this issue Apr 19, 2024 · 0 comments

Comments

@djdejawu
Copy link

I'm want to find out - how is it possible to do?
I've got a task:

      community.zabbix.zabbix_template:
        # template_json: "{{ lookup('file', 'zbx_tmpl_aaaa_core.json') }}"
        state: present
        template_json:
          zabbix_export:
            version: "5.0"
            templates:
              - name: Status
                # applications:
                #   - name: Status
                template: AAAA_CORE
                groups:
                  - name: AAAA_CORE
              - name: AAAA_CORE
                # applications:
                #   - name: Status
                groups:
                  - name: AAAA_CORE
                template: AAAA_CORE
                items:
                  - name: Device status
                    # applications:
                    #   - name: Status
                    key: state_code
...

When I'm give this values applications into API it's response me:
connection error occurred: REST API returned {'code': -32500, 'message': 'Application error.', 'data': 'Item \"Device status\" on \"AAAA_CORE\": application \"Status\" does not exist.'} when sending ...

When I'm importing JSON file, I've got the same error.
Maybe it's possible to do in two steps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant