Running on Ubuntu. I need to monitor my program CPU and RAM , my prefer way is to monitor by SNMP.
Does someone know the OID for program CPU and RAM(not total)?
If there isnt so what is the simple way to get ? parse ps command?
Per-process performance information is found in
Given a PID,
Or you can walk the whole process list with
If you want to know what processes have which PID's, use
There are other tables in this family that have more info about each running PID.