≡ Menu

Shell script to get uptime, disk , cpu , RAM , system load, from multiple Linux servers – output the information on a single server in html format

Shell script to get uptime, disk usage, cpu usage, RAM usage, system load, etc; from multiple Linux servers and output the information on a single server in html format

{ 18 comments… add one }
  • soulaf May 7, 2012, 6:19 pm

    cane i have a help on my project please?
    i’m a student in univercity in morocco and i have a project to do before the end of this week
    create a shell script with the name infoprocess wich ,when i tappe name proc1 name proc2…to name procn shows me informations about them like that:
    i’m waiting for your ansewer and thank you all

  • Lara February 10, 2012, 10:05 am

    No lo eiedtnno, me lo podrias explicar mjor paso a poso lo que tengo que hacer para conseguirlo?. Gracias

  • Samet Atdag September 15, 2011, 2:17 pm

    Thanks, great tool.
    We’ve got several servers at job, and they have different username/passwords. So I’ve modified the script to get servers with different usernames/passwords.

    I put the script to Github, here you can use if you want that version:

  • Mark April 4, 2010, 11:02 pm

    Thanks for this code.

    I am new to bash script and am making an application to gather system info. Your example of how too get CPU and RAM info is great.

  • Scrummie02 December 1, 2009, 9:09 pm

    I’m getting this when running the script:
    awk: BEGIN{print ”
    awk: ^ unterminated string

    has anyone seen this before?

    • Ankur December 15, 2009, 7:32 am

      u can make them in one line.. its just bcoz of the spacing problem in the script..

  • amran June 23, 2009, 9:16 am

    i am new in scripting. i try run this script, but it always promt me password

    [root@amranlinux src]# ./check-linux
    Network Status

    My Network Info
    Generated on Tue Jun 23 17:16:07 MYT 2009

    root@’s password:

    • tyrobert October 12, 2011, 9:09 pm

      hey did u ever figure out the issue here? I am running into the same problem

  • Vivek Gite April 15, 2009, 1:10 am
  • krish April 13, 2009, 2:13 pm

    where are those gif files?

  • Palani October 3, 2008, 12:51 pm

    i am very new to shell script program, i tried u r script but i don’t know how to proceed
    and if run the script i am getting this error
    kindly guide me how to run the script ,

    script output !

    My Network Info
    <span style=color:
    Generated on Fri Oct 3 16:41:02 GMT 2008

    ./109.sh: line 110: syntax error near unexpected token `newline’
    ./109.sh: line 110: ` echo ”

    thanks & regards


  • Panya July 10, 2008, 1:25 am

    This link

    is no longer valid…..

  • idiot hunter June 10, 2008, 7:35 am

    Moussa NDIAYE: If you were such a “guru” you would probably guess that he just copied the script as is,
    cat -n somefile gets you linenumbers…guru my ass ;)

  • Moussa NDIAYE May 26, 2008, 10:53 pm

    Hello Dipak.

    We cannot read what you put in lines 110 and 126.
    Try to be more explicit.. (next time if you want gurus to help you try to give them the informatons they need to debug ).

    this script is running under the linux box and display the results on a page, so try to visit http://the_server_where_the_script_is_running/info.html.

    Try it it post your results …

  • Dipak May 7, 2008, 11:15 pm

    I have installed this script in to /var/www/html/ directory and changed name to info.html.
    I ran this script from command line
    and I got an error line 110
    and 126

    What is next how do I run this script?

    • Yoyo July 6, 2009, 1:40 pm


      You cannot simply rename a Bash script to *.html.

      from the comments within the script itself:
      # Execute script as follows (and copy .gif file in this dir) :
      # this.script.name > /var/www/html/info.html


  • n2j3 April 22, 2008, 7:04 am

    echo “Load avarage: $LSTART $rload $LEND”

    should really read

    echo “Load average: $LSTART $rload $LEND”

Security: Are you a robot or human?

Leave a Comment