[f384a9d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY sysstat-download-http "http://perso.wanadoo.fr/sebastien.godard/sysstat-5.0.5.tar.gz">
|
---|
| 8 | <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-5.0.5.tar.gz">
|
---|
| 9 | <!ENTITY sysstat-size "123 KB">
|
---|
| 10 | <!ENTITY sysstat-buildsize "1.2 MB">
|
---|
| 11 | <!ENTITY sysstat-time ".12 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
| 14 | <sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[f384a9d] | 19 | <?dbhtml filename="sysstat.html"?>
|
---|
| 20 | <title>Sysstat-&sysstat-version;</title>
|
---|
| 21 |
|
---|
| 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>Sysstat</application></title>
|
---|
| 24 |
|
---|
| 25 | <para>The <application>Sysstat</application> package contains utilities to
|
---|
| 26 | monitor system performance and usage activity.
|
---|
| 27 | <application>Sysstat</application> contains the <command>sar</command> utility,
|
---|
| 28 | common to many commercial Unixes, and tools you can schedule via cron to collect
|
---|
| 29 | and historize performance and activity data.</para>
|
---|
| 30 |
|
---|
| 31 | <sect3><title>Package information</title>
|
---|
| 32 | <itemizedlist spacing='compact'>
|
---|
| 33 | <listitem><para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download size: &sysstat-size;</para></listitem>
|
---|
| 36 | <listitem><para>Estimated Disk space required: &sysstat-buildsize;</para></listitem>
|
---|
| 37 | <listitem><para>Estimated build time: &sysstat-time;</para></listitem></itemizedlist>
|
---|
| 38 | </sect3>
|
---|
| 39 |
|
---|
| 40 | <sect3><title><application>Sysstat</application> dependencies</title>
|
---|
| 41 | <sect4><title>Recommended</title>
|
---|
| 42 | <para><xref linkend="fcron"/></para></sect4>
|
---|
| 43 | </sect3>
|
---|
| 44 |
|
---|
| 45 | </sect2>
|
---|
| 46 |
|
---|
| 47 | <sect2>
|
---|
| 48 | <title>Installation of <application>Sysstat</application></title>
|
---|
| 49 |
|
---|
| 50 | <para>Install <application>Sysstat</application> by running the
|
---|
| 51 | following commands:</para>
|
---|
| 52 |
|
---|
| 53 | <screen><userinput><command>make config &&
|
---|
| 54 | make &&
|
---|
| 55 | make install</command></userinput></screen>
|
---|
| 56 |
|
---|
| 57 | </sect2>
|
---|
| 58 |
|
---|
| 59 | <sect2>
|
---|
| 60 | <title>Command explanations</title>
|
---|
| 61 |
|
---|
| 62 | <para><command>make config</command>: Runs the interactive configuration
|
---|
| 63 | process. The first question prompts you for an "Installation directory".
|
---|
| 64 | Reply with <filename class="directory">/usr</filename>, as this is equivalent
|
---|
| 65 | to <application>Autoconf</application>'s <parameter>--prefix=/usr</parameter>
|
---|
| 66 | parameter to <command>configure</command>. For all other prompts, you may
|
---|
| 67 | press <command>Enter</command> to accept the (very sane) defaults.</para>
|
---|
| 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2>
|
---|
| 72 | <title>Configuring <application>Sysstat</application></title>
|
---|
| 73 |
|
---|
| 74 | <sect3><title>Cron information</title>
|
---|
| 75 |
|
---|
| 76 | <para>To begin gathering <application>Sysstat</application> history information,
|
---|
| 77 | you must add to, or create a privileged user's crontab. The default history
|
---|
| 78 | data location is <filename class="directory">/var/log/sa</filename>. The user
|
---|
| 79 | running <application>Sysstat</application> utilities via cron must have write
|
---|
| 80 | access to this location.</para>
|
---|
| 81 |
|
---|
| 82 | <para>Below is an example of what to install in the crontab. Adjust the
|
---|
| 83 | parameters to suit your needs. Use <command>man sa1</command> and
|
---|
| 84 | <command>man sa2</command> for information about the commands.</para>
|
---|
| 85 |
|
---|
| 86 | <screen><userinput># 8am-7pm activity reports every 10 minutes during weekdays
|
---|
| 87 | 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &
|
---|
| 88 |
|
---|
| 89 | # 7pm-8am activity reports every hour during weekdays
|
---|
| 90 | 0 19-7 * * 1-5 /usr/lib/sa/sa1 &
|
---|
| 91 |
|
---|
| 92 | # Activity reports every hour on Saturday and Sunday
|
---|
| 93 | 0 * * * 0,6 /usr/lib/sa/sa1 &
|
---|
| 94 |
|
---|
| 95 | # Daily summary prepared at 19:05
|
---|
| 96 | 5 19 * * * /usr/lib/sa/sa2 -A &</userinput></screen>
|
---|
| 97 |
|
---|
| 98 | <para>Ensure you submit the revised crontab to the cron daemon.</para>
|
---|
| 99 | </sect3>
|
---|
| 100 |
|
---|
[02912d44] | 101 | <sect3><title>System startup information</title>
|
---|
[f384a9d] | 102 |
|
---|
| 103 | <para>At system startup, a LINUX RESTART message must be inserted in the daily
|
---|
[02912d44] | 104 | data file to reinitialize the kernel counters. This can be automated by
|
---|
| 105 | installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script
|
---|
| 106 | included in the <xref linkend="intro-important-bootscripts"/> package using
|
---|
| 107 | the following command:</para>
|
---|
| 108 | <screen><userinput><command>make install-sysstat</command></userinput></screen>
|
---|
[f384a9d] | 109 | </sect3>
|
---|
| 110 |
|
---|
| 111 | </sect2>
|
---|
| 112 |
|
---|
| 113 | <sect2>
|
---|
| 114 | <title>Contents</title>
|
---|
| 115 |
|
---|
| 116 | <para>The <application>Sysstat</application> package contains
|
---|
| 117 | <command>iostat</command>,
|
---|
| 118 | <command>mpstat</command>,
|
---|
| 119 | <command>sar</command>,
|
---|
| 120 | <filename>sa1</filename>,
|
---|
| 121 | <filename>sa2</filename> and
|
---|
| 122 | <filename>sadc</filename>.</para>
|
---|
| 123 |
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | <sect2><title>Description</title>
|
---|
| 127 |
|
---|
| 128 | <sect3><title>iostat</title>
|
---|
| 129 | <para><command>iostat</command> reports <acronym>CPU</acronym> statistics and
|
---|
| 130 | input/output statistics for devices and partitions.</para></sect3>
|
---|
| 131 |
|
---|
| 132 | <sect3><title>mpstat</title>
|
---|
| 133 | <para><command>mpstat</command> reports individual or combined processor
|
---|
| 134 | related statistics.</para></sect3>
|
---|
| 135 |
|
---|
| 136 | <sect3><title>sar</title>
|
---|
| 137 | <para><command>sar</command> collects, reports and saves system activity
|
---|
| 138 | information.</para></sect3>
|
---|
| 139 |
|
---|
| 140 | <sect3><title>sa1</title>
|
---|
| 141 | <para><filename>sa1</filename> collects and stores binary data in the system
|
---|
| 142 | activity daily data file. It is a front end to <filename>sadc</filename>
|
---|
| 143 | designed to be run from cron.</para></sect3>
|
---|
| 144 |
|
---|
| 145 | <sect3><title>sa2</title>
|
---|
| 146 | <para><filename>sa2</filename> writes a summarized daily activity report. It
|
---|
| 147 | is a front end to <command>sar</command> designed to be run from
|
---|
| 148 | cron.</para></sect3>
|
---|
| 149 |
|
---|
| 150 | <sect3><title>sadc</title>
|
---|
| 151 | <para><filename>sadc</filename> is the system activity data collector, used as
|
---|
| 152 | a backend for <command>sar</command>.</para></sect3>
|
---|
| 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | </sect1>
|
---|