-
Notifications
You must be signed in to change notification settings - Fork 28
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
Invoke-IcingaCheckScheduledTask returns false perfdata #97
Comments
Also the output
should be more hnting the asked state it should have like
and if you are at it, i think making the State parameter an array would be nice. So we dont get an critical when the tasks runs ;) |
Thank you very much - I just created a PR to fix the invalid performance metrics of the plugin. That sadly slipped through. Renaming the check output For converting the argument to an array I agree that the current implementation did not consider this. How ever, there is a mayjor problem for this because as far as I can tell we would not be able to create generic arrays within the Icinga Director for example (will have to re-evaluate). I would want to have a list of fixed items (in this case the states) I can add into an array instead of having to Copy&Paste them from the help description. This will require a more detailed lookup. |
Same Problem with Invoke-IcingaCheckFirewall, True is not a correct perfdata :) |
I created a linked PR for the states of the plugin. This will change them from string to array, allowing to set multiple values. How ever: You will require to update the Framework as well to render a proper configuration, as arrays with a ValidateSet were not supported before. In addition, you will have to update your configuration once importing the Director basket and re-assign your values. I hope this is also clear by having a look on the upgrading docs Once I received feedback I will merge the PR. |
I will test it these days and give feedback |
Hello, did you have the opportunity to check the plugin yet? |
I did som tests and from my side it looks fine. I will merge it if no negative feedback is added by Monday. |
Invoke-IcingaCheckScheduledTask returns invalid perfdata. Either remove them at all (state check) or print out correct perfdata which can be used by icinga. Or disable them by default.
Why i dont disable it and be quiet. Most of the user will not disable them and then they will get a lot of warning entries in the icinga.log about broken perfdata from this check.
For perfdata see this guideline
The text was updated successfully, but these errors were encountered: