-
Notifications
You must be signed in to change notification settings - Fork 277
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
[cloud::azure::management::monitor::plugin] - mode=(get-metrics): UNKNOWN: No metric found (Are the filters properly set?) #5205
Comments
Hello :) Have you tried the following generic options (which might do what you want):
or
|
Hello, But that would only change the output text, and still the exit code will be 3 (UNKNOWN)? BR |
Hello :) Ok I need more context about your needs, but my first impression is that you may need an additional option to accept certain return codes. Can you provide us the plugin output with the option |
|
Hello :) Sorry for waiting, there is a PR that could solve your problem. Would you be able to test it to see if it solves your problem? Here is the new option:
|
How do I use this PR? |
Hello :) It's normal not to be able to use the option in the current develop branch of centreon-plugins. You need to be familiar with git branches and their use to be able to use the PR as it is currently proposed. If this is not the case, the option should be available soon in the January 2025 release. |
Hello :) OK, I understand, but it's more complicated because this mode is designed with the philosophy that ‘No metrics’ is not good news given that we're trying to recover metrics. So changing the return code from 3 (UNKNOWN) to 0 (OK) seems to require a change in approach to what the mode proposes to do. So it would be more of an enhancement request to incorporate the behaviour you want rather than an issue itself. Enhancement requests are processed in the TheWatch Ideas section for voting (which helps us prioritise them). |
Hi @gust102, |
Hello :) Released in January 2025 |
Hi,
I have an issue with this command :
When there are no hits, i get:
UNKNOWN: No metric found (Are the filters properly set?)
Can't find any option to get OK instead of UNKNOWN when the filter is empty.
BR
Fredrik
The text was updated successfully, but these errors were encountered: