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

Rewrite zabbix returner to be more useful #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OrangeDog
Copy link
Contributor

Port of saltstack/salt#62055

Still no tests, but don't want to lose the code.

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@OrangeDog
Copy link
Contributor Author

I should also put this example somewhere useful

items:
  - name: 'Salt: state.apply'
    type: TRAP
    key: salt.return.state.apply
    delay: '0'
    history: 14d
    trends: '0'
    value_type: TEXT
    description: 'Return data from the state.apply function'
    tags:
      - tag: component
        value: salt
    triggers:
      - expression: 'find(//salt.return.state.apply,,"like","(changed=")=1'
        name: 'Salt state changed'
        priority: INFO
        type: MULTIPLE
        tags:
          - tag: scope
            value: notice
      - expression: 'find(//salt.return.state.apply,,"regexp","Failed:\s*0")=0'
        name: 'Salt state failed'
        priority: HIGH
        tags:
          - tag: scope
            value: availability
      - expression: 'nodata(//salt.return.state.apply,1d)=1'
        name: 'Salt state is stale'
        priority: WARNING
        tags:
          - tag: scope
            value: security

Alternatively, use the json output and create dependent items with some JSONPath.

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

Successfully merging this pull request may close these issues.

2 participants