Monitor Ubuntu with sysstat

Installing sysstat on Ubuntu

1. Install
apt-get install sysstat

2. Enable collection of system performance data
vi /etc/default/sysstat
set “ENABLED” to “true”.

3. Start the sysstat service
/etc/init.d/sysstat start

4. Take a look at performance data every 10 minutes.
sar

If you'd like to change the interval (every 10 minutes) by which sysstat collects data.  You can change the interval by editing /etc/cron.d/sysstat

PATH=/usr/lib/sysstat:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin

# Activity reports every 10 minutes everyday
5-55/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1

# Activity reports every 5 minutes everyday
5-55/5 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1

Comments

Popular posts from this blog

Basic Send Message to MQ with Java and IBM MQ JMS

Basic Receive Message to MQ with Java and IBM MQ JMS

Creating a simple Alert / Success Message with ASP.NET/VB using Bootstrap