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.