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
Page 1 / 1
Hello
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
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.