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

Support Multiline output #28

Open
cstegm opened this issue Nov 3, 2017 · 3 comments
Open

Support Multiline output #28

cstegm opened this issue Nov 3, 2017 · 3 comments
Assignees

Comments

@cstegm
Copy link

cstegm commented Nov 3, 2017

Hi,

i like this plugin! It would be nice if we can have a multiline output (activated by an option).

@slauger slauger self-assigned this Nov 4, 2017
@slauger
Copy link
Owner

slauger commented Nov 4, 2017

Hi,

thanks for your feedback!

Could you give me an example? How do you want the plugin output to look like?

I can implement a dymamic line seperator (for example „\n“) for each call of $plugin->add_message(), instead of the currently hardcoded semicolon if that is what you want.

Cheers, Simon

@cstegm
Copy link
Author

cstegm commented Nov 8, 2017

Hi,

I guess I have a nice example:

NetScaler OK - state servicegroup: GRUPPE_SERVICEGROUP1 UP: GRUPPE_SERVICEGROUP_2 UP: GRUPPE_SERVICEGROUP_3 UP: GRUPPE_SERVICEGROUP_4 UP: GRUPPE_SERVICEGROUP_5 UP: GRUPPE_SERVICEGROUP_6 UP: GRUPPE_SERVICEGROUP_7 UP: GRUPPE_SERVICEGROUP_8 UP: GRUPPE_SERVICEGROUP_9 UP: GRUPPE_SERVICEGROUP_10 UP: GRUPPE_SERVICEGROUP_11 DOWN: 0 UNKOWN: 0 PARTIAL-UP: 10 UP: 0 OUT OF SERVICE: 1 DOWN:

Ideal would be:

NetScaler 'servicegroup' OK

servicegroup(s):
[OK] GRUPPE_SERVICEGROUP1 UP
[OK] GRUPPE_SERVICEGROUP_2 UP
[OK] GRUPPE_SERVICEGROUP_3 UP
[OK] GRUPPE_SERVICEGROUP_4 UP
[OK] GRUPPE_SERVICEGROUP_5 UP
[OK] GRUPPE_SERVICEGROUP_6 UP
[OK] GRUPPE_SERVICEGROUP_7 UP
[OK] GRUPPE_SERVICEGROUP_8 UP
[OK] GRUPPE_SERVICEGROUP_9 UP
[OK] GRUPPE_SERVICEGROUP_10 UP
[CRITICAL] GRUPPE_SERVICEGROUP_11 DOWN

UNKOWN:           0
PARTIAL-UP:       0
UP:              10
OUT OF SERVICE:   0
DOWN:             1

Some Details
We Use Icingaweb2 - In a service overview or list view we see a the short output which is alway the first Line of the plugin Output:
NetScaler 'servicegroup' OK

In Icingaweb2 an occurance in the pluginoutput of [OK], [WARNING] or [CRITICAL] is automatically colored green, orange and red - so you see directly the issue that we detect with that check. ( Example of the Coloring https://cloud.githubusercontent.com/assets/25796110/25178084/bc486c4a-2504-11e7-889e-64c66559e52d.png )

@bb-Ricardo
Copy link
Contributor

+1

Maybe I got some time in the near future to add this. Important would be to output the CRITICAL/WARNING $SERVICE at the first line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants