Skip to main content

I have a strange issue with Custom views. I am using the widget for top 10 cpu and memory usage. As of now, i have configured only linux servers which are connected to centreon using ssh (os-linux-ssh-custom) template. For 2 servers, I am using snmp to test some additional features. 

Issue is for cpu, i get all top 10 hosts but for memory, i get the result only for hosts connected via snmp. Any idea about this? is it a bug? or top 10 memory is not supported for ssh hosts. Memory Data is however collected for the hosts connected via ssh.  I asked support but they said its not something for Professional services, not for support. 

 

 

Hello,

It’s because the top 10 Memory widget use the metrics with the label ‘used’ on memory services

The memory service with SNMP has a metric with the label used, but not the memory service with SSH

SNMP Memory Perfdata
SSH Memory Perfdata

 

What you can do is relabel the perfdata ‘memory.usage.bytes’ to ‘used’ 

You can do this by adding --change-perfdata='memory.usage.bytes,used' to the EXTRAOPTIONS macro of your memory service (or service template)

Export and wait for the next check, and it should appear on your widget

 

Hope it helps


Reply