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 a add_longoutput function for custom extensions #20

Open
Tontonitch opened this issue Sep 20, 2017 · 0 comments
Open

Add a add_longoutput function for custom extensions #20

Tontonitch opened this issue Sep 20, 2017 · 0 comments

Comments

@Tontonitch
Copy link

Hello,

That would be great to have a dedicated method for the extra lines / long output lines. Named for example "add_longoutput"

Currently, I do that via the add_perfdata method by adding a new line and all the needed lines.
For example:

$self->add_perfdata(sprintf "broken=%d;;1;0; failing=%d;1;;0; \nBroken jobs:%s\n\nFailing jobs:%s", $nb_broken, $nb_failures, $long_output_broken, $long_output_failures);

Example of output in Icingaweb2:
image

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