Difference between revisions of "Troubleshooting (Ubuntu)"

Jump to navigation Jump to search
m
(Added "High System Load")
Line 131: Line 131:
# Simon Strutt - July 2012
# Simon Strutt - July 2012


LOGFILE="load_log.txt"
LOGFILE="/home/user/load_log.txt" # Update to a valid folder path
MAXLOAD=100                     # Multiple by 100 as if comparison can only handle integers
MAXLOAD=100                       # Multiple by 100 as 'if' comparison can only handle integers


LOAD=`cut -d ' ' -f 1 /proc/loadavg`
LOAD=`cut -d ' ' -f 1 /proc/loadavg`
Line 142: Line 142:
fi</source>
fi</source>


Schedule with something like...
Schedule with something like (update with correct path to <code>load_log</script>...
<pre>crontab -e
<pre>crontab -e
1 * * * * /bin/bash  /home/simons/load_log</pre>
1 * * * * /bin/bash  /home/user/load_log</pre>


== Network ==
== Network ==

Navigation menu