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-&sysstat-version;.tar.gz">
|
---|
8 | <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-&sysstat-version;.tar.gz">
|
---|
9 | <!ENTITY sysstat-size "124 KB">
|
---|
10 | <!ENTITY sysstat-buildsize "1.2 MB">
|
---|
11 | <!ENTITY sysstat-time ".12 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
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
|
---|
29 | collect 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
|
---|
77 | information, you must add to, or create a privileged user's crontab. The
|
---|
78 | default history data location is
|
---|
79 | <filename class="directory">/var/log/sa</filename>. The user running
|
---|
80 | <application>Sysstat</application> utilities via cron must have write
|
---|
81 | access to this location.</para>
|
---|
82 |
|
---|
83 | <para>Below is an example of what to install in the crontab. Adjust the
|
---|
84 | parameters to suit your needs. Use <command>man sa1</command> and
|
---|
85 | <command>man sa2</command> for information about the commands.</para>
|
---|
86 |
|
---|
87 | <screen><userinput># 8am-7pm activity reports every 10 minutes during weekdays
|
---|
88 | 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &
|
---|
89 |
|
---|
90 | # 7pm-8am activity reports every hour during weekdays
|
---|
91 | 0 19-7 * * 1-5 /usr/lib/sa/sa1 &
|
---|
92 |
|
---|
93 | # Activity reports every hour on Saturday and Sunday
|
---|
94 | 0 * * * 0,6 /usr/lib/sa/sa1 &
|
---|
95 |
|
---|
96 | # Daily summary prepared at 19:05
|
---|
97 | 5 19 * * * /usr/lib/sa/sa2 -A &</userinput></screen>
|
---|
98 |
|
---|
99 | <para>Ensure you submit the revised crontab to the cron daemon.</para>
|
---|
100 | </sect3>
|
---|
101 |
|
---|
102 | <sect3><title>System startup information</title>
|
---|
103 |
|
---|
104 | <para>At system startup, a LINUX RESTART message must be inserted in the daily
|
---|
105 | data file to reinitialize the kernel counters. This can be automated by
|
---|
106 | installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script
|
---|
107 | included in the <xref linkend="intro-important-bootscripts"/> package using
|
---|
108 | the following command:</para>
|
---|
109 | <screen><userinput><command>make install-sysstat</command></userinput></screen>
|
---|
110 | </sect3>
|
---|
111 |
|
---|
112 | </sect2>
|
---|
113 |
|
---|
114 | <sect2>
|
---|
115 | <title>Contents</title>
|
---|
116 |
|
---|
117 | <para>The <application>Sysstat</application> package contains
|
---|
118 | <command>iostat</command>,
|
---|
119 | <command>mpstat</command>,
|
---|
120 | <command>sar</command>,
|
---|
121 | <filename>sa1</filename>,
|
---|
122 | <filename>sa2</filename> and
|
---|
123 | <filename>sadc</filename>.</para>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2><title>Description</title>
|
---|
128 |
|
---|
129 | <sect3><title>iostat</title>
|
---|
130 | <para><command>iostat</command> reports <acronym>CPU</acronym> statistics and
|
---|
131 | input/output statistics for devices and partitions.</para></sect3>
|
---|
132 |
|
---|
133 | <sect3><title>mpstat</title>
|
---|
134 | <para><command>mpstat</command> reports individual or combined processor
|
---|
135 | related statistics.</para></sect3>
|
---|
136 |
|
---|
137 | <sect3><title>sar</title>
|
---|
138 | <para><command>sar</command> collects, reports and saves system activity
|
---|
139 | information.</para></sect3>
|
---|
140 |
|
---|
141 | <sect3><title>sa1</title>
|
---|
142 | <para><filename>sa1</filename> collects and stores binary data in the system
|
---|
143 | activity daily data file. It is a front end to <filename>sadc</filename>
|
---|
144 | designed to be run from cron.</para></sect3>
|
---|
145 |
|
---|
146 | <sect3><title>sa2</title>
|
---|
147 | <para><filename>sa2</filename> writes a summarized daily activity report. It
|
---|
148 | is a front end to <command>sar</command> designed to be run from
|
---|
149 | cron.</para></sect3>
|
---|
150 |
|
---|
151 | <sect3><title>sadc</title>
|
---|
152 | <para><filename>sadc</filename> is the system activity data collector, used as
|
---|
153 | a backend for <command>sar</command>.</para></sect3>
|
---|
154 |
|
---|
155 | </sect2>
|
---|
156 |
|
---|
157 | </sect1>
|
---|