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

UNKNOWN: No metric found (Are the filters properly set?) #5205

Open
gust102 opened this issue Sep 26, 2024 · 0 comments
Open

UNKNOWN: No metric found (Are the filters properly set?) #5205

gust102 opened this issue Sep 26, 2024 · 0 comments

Comments

@gust102
Copy link

gust102 commented Sep 26, 2024

Hi,

I have an issue with this command :

/usr/lib64/nagios/plugins/centreon_plugins.pl --plugin cloud::azure::management::monitor::plugin \
--custommode='api' \
--mode='get-metrics' \
--subscription=xxx \
--tenant=xxx \
--client-id=xxx \
--client-secret=xxx \
--resource=xxx \
--resource-group=xxx \
--resource-namespace=microsoft.insights/components \
--resource-type=  \
--metric=requests/failed \
--aggregation=Count \
--interval=PT30M \
--filter-dimension="request/resultCode sw '42'" \
--warning-metric=1 --critical-metric=5

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

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