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

Add support for truncating plugin output to specified size #265

Open
atc0005 opened this issue Oct 15, 2024 · 1 comment
Open

Add support for truncating plugin output to specified size #265

atc0005 opened this issue Oct 15, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request output/plugin plugin output intended for monitoring system ingest
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Oct 15, 2024

Overview

Make this behavior opt-in.

Allow specifying custom cutoff size (e.g., support older monitoring instances).

Allow also truncating to a default value (current Nagios plugin output length restriction is 8192 bytes).

References

@atc0005 atc0005 added enhancement New feature or request output/plugin plugin output intended for monitoring system ingest labels Oct 15, 2024
@atc0005 atc0005 added this to the Future milestone Oct 15, 2024
@atc0005 atc0005 self-assigned this Oct 15, 2024
@atc0005
Copy link
Owner Author

atc0005 commented Oct 16, 2024

Maybe add separate support for determining whether the plugin output accumulated thus far is approaching the cutoff?

Maybe useful to provide methods that allow appending to an output buffer vs accumulating locally and setting directly against LongServiceOutput and ServiceOutput fields.

A variation of the methods could return either the space remaining or whether a specific percentage has been reached?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request output/plugin plugin output intended for monitoring system ingest
Projects
None yet
Development

No branches or pull requests

1 participant