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

Update simplemon widget to show only unhandled problems #18

Closed

Conversation

mcktr
Copy link

@mcktr mcktr commented Jun 3, 2017

fixes #17

@bodsch
Copy link
Contributor

bodsch commented Jun 11, 2017

can i use these code part for my icinga2 gem?

@mcktr
Copy link
Author

mcktr commented Jun 11, 2017

Of course :)

bodsch added a commit to bodsch/ruby-icinga2 that referenced this pull request Jun 17, 2017
bodsch added a commit to bodsch/ruby-icinga2 that referenced this pull request Jun 18, 2017
take from mocdaniel/dashing-icinga2#18

that will be usable into any [dashing|smashing]-icinga2 environments
@dnsmichi
Copy link
Collaborator

Thanks for the patch. I do have a different solution in mind already. This does not change the interface of countProblems() but adds the possibility to pass a state number or an array of state numbers (or nil which means all problems).

This allows to count all unhandled problems, without any differences between CIB data and problem counts. See more details in #24 - the commits are split so you can see what I did exactly.

@dnsmichi dnsmichi closed this Jun 24, 2017
@mcktr mcktr deleted the fix/show-only-unhandled-problems branch June 25, 2017 08:32
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.

Update simplemon widget counts to only show unhandled problems (!ack && !downtime)
3 participants