Here’s a nice little script for tracking load issues. Check it out!

curl https://raw.githubusercontent.com/sudofox/Loadstalker/master/Loadstalker.sh > /root/bin/Loadstalker.sh

root@host]# cd /usr/src/
root@host [/usr/src]# git clone https://github.com/sudofox/Loadstalker
Cloning into 'Loadstalker'…
remote: Enumerating objects: 18, done.
remote: Total 18 (delta 0), reused 0 (delta 0), pack-reused 18
Unpacking objects: 100% (18/18), done.
root@host [/usr/src]# ll
total 75M

root@host]# cd /usr/src/Loadstalker/

root@host [/usr/src/Loadstalker]# ll
 total 32K
 drwxr-xr-x   3 root root 4.0K Feb  8 11:10 ./
 drwxr-xr-x. 21 root root 4.0K Feb  8 11:10 ../
 drwxr-xr-x   7 root root 4.0K Feb  8 11:10 .git/
 -rwxr-xr-x   1 root root  15K Feb  8 11:10 Loadstalker.sh*
 -rw-r--r--   1 root root 1.6K Feb  8 11:10 README.md

root@host [/usr/src/Loadstalker]# chmod +x Loadstalker.sh

root@host [/usr/src/Loadstalker]# mv Loadstalker.sh /root/bin/loadstalker.sh

To set this script up as a cron, review the following:

root@host [/usr/src/Loadstalker]# crontab -e
#If you want to run every 3 minutes, do this:
 */3 * * * * /path/to/Loadstalker.sh
#If you want to run every 12 hours, do this:
 0 */12 * * * /root/bin/Loadstalker.sh

This site uses Akismet to reduce spam. Learn how your comment data is processed.