Question

Collect resources taken by an application on centreon

  • 22 April 2022
  • 1 reply
  • 415 views

Badge +1

Hello,
I would like to be able to collect the resources taken by an application (CPU, RAM) but I can't find any information on the internet
Thanks to you


1 reply

Userlevel 5
Badge +16

 Hello @LAUP 

It’s possible to check the memory/cpu usage using SNMP for example:

/usr/lib/centreon/plugins/centreon_linux_snmp.pl --plugin os::linux::snmp::plugin --mode processcount --hostname=127.0.0.1 --process-name="centengine" --memory --cpu
OK: Number of current processes running: 1 - Total memory usage: 8.56 MB - Average memory usage: 8.56 MB - Total CPU usage: 0.00 % | 'nbproc'=1;;;0; 'mem_total'=8978432B;;;0; 'mem_avg'=8978432.00B;;;0; 'cpu_total'=0.00%;;;0;

Globaly the plugin os::linux::snmp::custom and plugin os::windows::snmp::custom with the mode processcount could use the option --memory --cpu to get what you want :)

Reply