back to home page

Simple Load Monitoring Script in BASH/Python/Perl

Posted on June 29th, 2008

Here is a simple Load monitoring / logging script . This will log the load in /var/log/load.log . You can execute the script as follows,

chmod +x /root/loadavg.sh

Now add it as cron

*/5 * * * * /root/loadavg.sh

One Comment on “Simple Load Monitoring Script in BASH/Python/Perl”

1 Vraminir said at 10:52 pm on July 4th, 2009:

This is crappy code for python there is much better way to do that (parsing /proc/loadvg)


Leave a Reply

    To syntax highlight code just use [cc lang="whatever language here"]your code here[/cc]