Skip to content

Add -M flag to map non-numeric perfdata values#111

Merged
martialblog merged 1 commit into
masterfrom
feature/perfdata
Apr 28, 2026
Merged

Add -M flag to map non-numeric perfdata values#111
martialblog merged 1 commit into
masterfrom
feature/perfdata

Conversation

@martialblog

Copy link
Copy Markdown
Collaborator

This PR adds a new -M flag that can be used to map non-numeric values to numeric values:

check_http_json.py -H host.internal --path example-data.json -e 'service.status' -m 'service.status'
OK: 'service.status'=Up  Status OK. |'service.requests'=Up

check_http_json.py -H host.internal --path example-data.json -e 'service.status' -m 'service.status' -M Up=1
OK: 'service.status'=1  Status OK. |'service.requests'=1

Fixes #108

@martialblog martialblog added this to the v2.4.0 milestone Apr 28, 2026
@martialblog martialblog self-assigned this Apr 28, 2026
@martialblog martialblog marked this pull request as ready for review April 28, 2026 10:04
@martialblog martialblog merged commit db907a1 into master Apr 28, 2026
3 checks passed
@martialblog martialblog deleted the feature/perfdata branch April 28, 2026 13:04
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.

Feature request: generate perfdata from checked values with datatype string

1 participant