photogabble / php-rrdtools-server-monitor

Basic server monitoring with PHP & RRDTools
MIT License
2 stars 1 forks source link

Add Uptime graph #4

Open carbontwelve opened 7 years ago

carbontwelve commented 7 years ago

image

carbontwelve commented 7 years ago

cat /proc/uptime outputs two floats, the first is the time in seconds that the system has been switched on and the second is the time in seconds that the processors have been idle.

The second number can be and usually is higher on low load systems than the first number because its per core, so four cores being inactive for ten seconds increments the counter by forty seconds.

Maybe have a graph that shows both?