Exercise: CPU load


Check if the load on the computer is over a certain threshold and log the event to syslog. See the 3rd number from the right of the uptime command or the first number in the /proc/loadavg file on linux. The file looks like this:


0.15 0.26 0.72 1/128 9230

A sample file