Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Tags
Author: UltratechHost - Replies: 0 - Views: 2466
Monitor virtual memory
To monitor your virtual memory in linux you can use vmstat command

Code:
root@sysgear [~]# vmstat

Ex:

Code:
root@sysgear [~]# vmstat

    procs ———–memory———- —swap– —–io—- –system– —–cpu—–                                     -
    r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
    3  0    148 2259104 330496 3247624    0    0     1   144    0    0 30  7 62  1
Author: UltratechHost - Replies: 0 - Views: 4923
Shell Script to Monitor Load Average on a Linux server
Load Average on a server reflects the current state of the server. Higher the load average, poorer is the server performance hence it is a necessity to monitor the load average on the server. The following shell script monitors the load average on the Linux server and inform the server administrator with the current running processes of the server if the load average is greater than the defined threshold.

Create a file, say, /root/loadmonitor.sh by running the command

[code]nano loadmonito
Author: UltratechHost - Replies: 0 - Views: 8473
Monitor UNIX / Linux Server Disk Space with Shell Script
Shell script to monitor or watch the disk space and send an email alert if the (free avilable) percentage of space is >= 80%

Create a file, say, /root/serverspace.sh by running the command

Code:
nano /root/loadmonitor.sh

and add the bellow script

[php]#!/bin/sh
# Shell script to monitor or watch the disk space
# It will send an email to $ADMIN, if the (free avilable) percentage
# of space is >= 80%
# -------------------------------------------------------------------------