Ive seen quite a few php scripts to get and display the CPU usage as a % for all cores combined. But so far i have not been able to find a per core way of doing this.
Would it be possible to create a script that would be able to get CPU usage for just 1 core, then if the server had 4 cores, i could use the script 4 times, to get 4 different percentages for each core. The server im trying to do this on is linux, running Ubuntu 14.04, i can install any software onto it if required. If its possible could someone give me a point in the right direction.
Edit:
With the command htop i can get this data: im looking for something like the 4 core % usage.