Results 1 to 4 of 4

Thread: A script to check load on the server

  1. #1
    Join Date
    Sep 2008
    Posts
    9

    Default A script to check load on the server

    Following is a script to check load on the server. This script will create a file called chkload wherein all the details will be saved in a time and date format. So any system irregularities can be verified in a much simpler way.

    ### Script is created to check the load on server ###
    echo >> chkload
    echo " Load `date +" on "%d-%m-%y" at "%H-%M` " >> chkload
    echo "------ Load detail from top --------" >> chkload
    #####added to display the top result
    /usr/bin/top -n 1 -b >> chkload
    uptime >> chkload
    echo "------ End of top --------" >> chkload

    echo >> chkload
    echo "------ Memory Free --------" >> chkload
    free -m >> chkload
    echo >> chkload
    echo "------ CPU Detail --------" >> chkload
    sar | head -n 3 >> chkload
    sar | tail -n 5 >> chkload
    echo >> chkload
    echo "----------- Few important Process Detail ------------" >> chkload
    echo >> chkload
    ps aux | egrep -v "STIME|$LOGNAME" | head -n 6 >> chkload
    echo >> chkload
    echo "---------------------------------------------------------------------------------------" >> chkload
    echo "---------------------------------------------------------------------------------------" >> chkload

  2. #2

    Default Nice work!

    When I saw this file the other day I was pretty pumped about it. I have tried it now and I much say that it really is much much simpler then what I was using! A great web hosting company and all inclusive forums. I am a happy camper!

  3. #3

    Default A script to check load on the server

    A lot of information gather and really very nice concept. thanks for sharing the information.

  4. #4

    Default Mercedes Logo

    i am also check these scripts many time.script check the load and also reduce the speed of browsing.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •