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

Handle null JSON output in Icinga DB Web checks #999

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

DeadHunter
Copy link
Contributor

@DeadHunter DeadHunter commented Jan 6, 2024

  • Fixes issue where a check with no output in Icinga DB Web is marked as null in JSON, resulting in 'none' in code
  • Resolves processing error by casting the value to a string

Solves: #996 #997

Before

image

After

Empty output will be displayed as None in the status information, instead of raising an error.
image

- Fixes issue where a check with no output in Icinga DB Web is marked as
  null in JSON, resulting in 'none' in code
- Resolves processing error by casting the value to a string
@HenriWahl HenriWahl merged commit 928e429 into HenriWahl:master Jan 8, 2024
2 checks passed
@HenriWahl
Copy link
Owner

Thank you!

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