A Shell Script to Monitor Network, Disk Usage, Uptime, Load Average and RAM Usage in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

172 Responses

  1. Junaid says:

    How to send its output as an email?

    • Mansur Ul Hasan says:

      Redirect stdout to file and then use mail function to mail to your email

      for this wrap your script into another bash script and run that

      vim anotherscript.sh 
      

      Put below content into script

      #!/bin/bash
      ./Path/to/script/tecmint_monitor.sh 2>&1 > script.out
      
      mail -r [email protected] -s "Server monitoring result "  [email protected] < script.out
      

      Now run your script

      # sh anotherscript.sh
      
  2. Baljit Singh says:

    How to run this script against multiple servers?
    Do I need to install this script to all the servers then extract the data, Please advise

  3. Prasad M says:

    Hi Andres Tarallo,

    Good day!, as I am working on Migration work for 250+ servers, wanted to collect the server related info along with cluster details.

    I would need your help to how to identify the servers are configured in cluster (VCS, RedHat Cluster, SCS, VxVM).

    Please suggest.

  4. Rasheed says:

    the information loads up really slow on my server

  5. joejoe says:

    What if I want to run this script against a list of 100 remote servers and put that all that data in a nice spreadsheet how do I get that accomplished

    • Andres Tarallo says:

      You could run the script via ssh. It won’t be a difficult task to make it run. Putting data on a Spreadsheet will require more work, maybe programming in Python/PERL or your favourite language with a API for dealing with spreadsheets.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

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