Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to Keep track on server load  (Read 1378 times)

0 Members and 1 Guest are viewing this topic.

sachinj

  • Guest
How to Keep track on server load
« on: August 05, 2017, 03:47:41 pm »
To keep a track on the server load, you can use any of the following scripts by setting a cronjob to run the script in a specific interval.

===>Create a new file trackload.sh and provide executable permission to the file.
===>Insert the code provided below to the script.

Code: [Select]
    #!/bin/bash
          export _loadavg=$( cat /proc/loadavg | awk ‘{ print $1}’)
          echo “Load Average:$_loadavg on `date`

===>Updated this script on your cronjob

Thank you!.. :) :)
« Last Edit: August 05, 2017, 03:55:55 pm by sachinj »