Skip to main content
Question

Dashboard Centreon metrics can't be read in widget type "Top/bottom" but can be in "Single metric"


Hello, 

I’d like to use the Dashboard feature to see the remaining percentage of ink of multiple printers. 

If I try to use the “Single metric” Widget it works as you can see bellow : 

 

However when I put the same Datast selection in the “Top/bottom” Widget I have a “metrics not found” error : 

 

As said above, I would like to monitor multiple printers that way that’s why using the “Single metrics” widget on all printers plus all color (black, cyan, magenta, yellow) is not comfortable at all and would like to use 4 “Top/bottom” Widgets instead (one for each color). 

If you know a way to fix this issue, I request your assistance. 
If you need further information feel free to ask.

10 replies

Userlevel 5
Badge +17

The top/bottom widget is supposed to compare the same metric for multiple hosts/services. Have you tried adding another host that has the same metric?

 

I am thinking it could be an issue with the top/bottom widget mis-handling non-alphanumeric values. Let me check with the dev team.

Userlevel 5
Badge +17

The top/bottom widget is supposed to compare the same metric for multiple hosts/services. Have you tried adding another host that has the same metric?

 

I am thinking it could be an issue with the top/bottom widget mis-handling non-alphanumeric values. Let me check with the dev team.

Badge +3

The top/bottom widget is supposed to compare the same metric for multiple hosts/services. Have you tried adding another host that has the same metric?

 

I am thinking it could be an issue with the top/bottom widget mis-handling non-alphanumeric values. Let me check with the dev team.

I tried adding another host that has the same metric but the error still remains : 
 

 

The “PR--20” host also works just fine in Single metric :
 

 

Userlevel 2
Badge +5

Hello @TERPEZ , can you give me the URL that fails to check out if dynamic parameters are correctly parsed?

Badge +3

Hello @TERPEZ , can you give me the URL that fails to check out if dynamic parameters are correctly parsed?

Hello @Tom Darneix, Is this URL what you’re asking for ? Or are you asking for another one ? 

Badge +3

any update ?

Userlevel 2
Badge +5

Hello, can you open your browser's console, select the Network tab then filter out "performances/data". Select the request that fails then print us the full URL

Badge +3

Hello, can you open your browser's console, select the Network tab then filter out "performances/data". Select the request that fails then print us the full URL​​​​

Here : 
https://10.4.4.245/centreon/api/latest/monitoring/dashboard/metrics/top?limit=10&sort_by=%7B%22current_value%22%3A%22ASC%22%7D&search=%7B%22%24and%22%3A%5B%7B%22host.id%22%3A%7B%22%24in%22%3A%5B92%2C93%5D%7D%7D%2C%7B%22service.name%22%3A%7B%22%24in%22%3A%5B%22MarkerSupply-Usage%22%5D%7D%7D%5D%7D&metric_name=TK-8555C

Hope it gives you a hint of what’s wrong.

 

Badge +3

Was the URL helpfull ? 
Do you need me to provide further information ?

 

Userlevel 2
Badge +5

Thanks @TERPEZ , we will investigate on this. I hope the dash in the metric name is not the issue.

Reply