How can I check the load on the server, without logging in to it?

Following script to check the load on the server could be referred:-

This script will create a file called chkload wherein all the details will be saved in a time and date

format. Any irregularities could be checked.

———————————————————————

### 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

  • 49 Korisnici koji smatraju članak korisnim
Je li Vam ovaj odgovor pomogao?

Vezani članci

Can I use my domain name or must I use my IP address as the hostname for FTP?

Using your IP address (192.168.22.22  is an example IP address) is the preferred entry for...

Can you transfer my sites from my current host to my new VPS?

Yes. We will transfer all of your sites free* of charge and will assure that you experience no or...

Do you allow MP3 files? Do you allow streaming of videos?

Yes we do with our special plans at http://hostripples.in/avs-hosting.php

Do you support Cold Fusion?

We do not support or Cold Fusion on our shared hosting servers, however you are more than welcome...