1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/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.bz2">
|
---|
8 | <!ENTITY sysstat-download-ftp "ftp://ibiblio.org/pub/linux/system/status/sysstat-&sysstat-version;.tar.bz2">
|
---|
9 | <!ENTITY sysstat-md5sum "075488cbb5979deec0ab05f3ca0c8d12">
|
---|
10 | <!ENTITY sysstat-size "118 KB">
|
---|
11 | <!ENTITY sysstat-buildsize "1.88 MB">
|
---|
12 | <!ENTITY sysstat-time "0.04 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;">
|
---|
16 | <?dbhtml filename="sysstat.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Sysstat-&sysstat-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="sysstat">
|
---|
26 | <primary sortas="a-Sysstat">Sysstat</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Sysstat</title>
|
---|
31 |
|
---|
32 | <para>The <application>Sysstat</application> package contains utilities
|
---|
33 | to monitor system performance and usage activity.
|
---|
34 | <application>Sysstat</application> contains the <command>sar</command>
|
---|
35 | utility, common to many commercial Unixes, and tools you can schedule via
|
---|
36 | cron to collect and historize performance and activity data.</para>
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download MD5 sum: &sysstat-md5sum;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download size: &sysstat-size;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated disk space required: &sysstat-buildsize;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated build time: &sysstat-time;</para>
|
---|
57 | </listitem>
|
---|
58 | </itemizedlist>
|
---|
59 |
|
---|
60 | <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
|
---|
61 |
|
---|
62 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
63 | <para><xref linkend="fcron"/></para>
|
---|
64 |
|
---|
65 | </sect2>
|
---|
66 |
|
---|
67 | <sect2 role="installation">
|
---|
68 | <title>Installation of Sysstat</title>
|
---|
69 |
|
---|
70 | <para>Install <application>Sysstat</application> by running the
|
---|
71 | following commands:</para>
|
---|
72 |
|
---|
73 | <screen><userinput>make config &&
|
---|
74 | make</userinput></screen>
|
---|
75 |
|
---|
76 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
77 |
|
---|
78 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
79 |
|
---|
80 | </sect2>
|
---|
81 |
|
---|
82 | <sect2 role="commands">
|
---|
83 | <title>Command Explanations</title>
|
---|
84 |
|
---|
85 | <para><command>make config</command>: Runs the interactive configuration
|
---|
86 | process. The first question prompts you for an
|
---|
87 | <quote><computeroutput>Installation directory</computeroutput></quote>.
|
---|
88 | Reply with <filename class="directory">/usr</filename>, as this is equivalent to
|
---|
89 | <application>Autoconf</application>'s <option>--prefix=/usr</option> parameter
|
---|
90 | to <command>configure</command>. For all other prompts, you may
|
---|
91 | press <keycap>Enter</keycap> to accept the (very sane) defaults. When
|
---|
92 | prompted for <quote><computeroutput>Number of daily data files to keep:
|
---|
93 | [7]</computeroutput></quote>, you may wish to keep a larger number of files.
|
---|
94 | However, don't exceed 25 because <application>Sysstat</application> will
|
---|
95 | resuse existing files the next month, leading to erroneous daily reports.</para>
|
---|
96 |
|
---|
97 | </sect2>
|
---|
98 |
|
---|
99 | <sect2 role="configuration">
|
---|
100 | <title>Configuring Sysstat</title>
|
---|
101 |
|
---|
102 | <sect3>
|
---|
103 | <title>Cron Information</title>
|
---|
104 |
|
---|
105 | <para>To begin gathering <application>Sysstat</application> history
|
---|
106 | information, you must add to, or create a privileged user's crontab. The
|
---|
107 | default history data location is
|
---|
108 | <filename class="directory">/var/log/sa</filename>. The user running
|
---|
109 | <application>Sysstat</application> utilities via cron must have write
|
---|
110 | access to this location.</para>
|
---|
111 |
|
---|
112 | <para>Below is an example of what to install in the crontab. Adjust the
|
---|
113 | parameters to suit your needs. Use <command>man sa1</command> and
|
---|
114 | <command>man sa2</command> for information about the commands.</para>
|
---|
115 |
|
---|
116 | <screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
|
---|
117 | 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &
|
---|
118 |
|
---|
119 | # 7pm-8am activity reports every hour during weekdays
|
---|
120 | 0 19-7 * * 1-5 /usr/lib/sa/sa1 &
|
---|
121 |
|
---|
122 | # Activity reports every hour on Saturday and Sunday
|
---|
123 | 0 * * * 0,6 /usr/lib/sa/sa1 &
|
---|
124 |
|
---|
125 | # Daily summary prepared at 19:05
|
---|
126 | 5 19 * * * /usr/lib/sa/sa2 -A &</literal></screen>
|
---|
127 |
|
---|
128 | <para>Ensure you submit the revised crontab to the cron daemon.</para>
|
---|
129 |
|
---|
130 | </sect3>
|
---|
131 |
|
---|
132 | <sect3 id="sysstat-init">
|
---|
133 | <title>System Startup Information</title>
|
---|
134 |
|
---|
135 | <indexterm zone="sysstat sysstat-init">
|
---|
136 | <primary sortas="f-sysstat">sysstat</primary>
|
---|
137 | </indexterm>
|
---|
138 |
|
---|
139 | <para>At system startup, a LINUX RESTART message must be inserted in the daily
|
---|
140 | data file to reinitialize the kernel counters. This can be automated by
|
---|
141 | installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script
|
---|
142 | included in the <xref linkend="intro-important-bootscripts"/> package using
|
---|
143 | the following command:</para>
|
---|
144 |
|
---|
145 | <screen role="root"><userinput>make install-sysstat</userinput></screen>
|
---|
146 |
|
---|
147 | </sect3>
|
---|
148 |
|
---|
149 | </sect2>
|
---|
150 |
|
---|
151 | <sect2 role="content">
|
---|
152 | <title>Contents</title>
|
---|
153 |
|
---|
154 | <segmentedlist>
|
---|
155 | <segtitle>Installed Programs</segtitle>
|
---|
156 | <segtitle>Installed Libraries</segtitle>
|
---|
157 | <segtitle>Installed Directories</segtitle>
|
---|
158 |
|
---|
159 | <seglistitem>
|
---|
160 | <seg>iostat, mpstat, sar, sa1, sa2, and sadc</seg>
|
---|
161 | <seg>None</seg>
|
---|
162 | <seg>/usr/lib/sa and /var/log/sa</seg>
|
---|
163 | </seglistitem>
|
---|
164 | </segmentedlist>
|
---|
165 |
|
---|
166 | <variablelist>
|
---|
167 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
168 | <?dbfo list-presentation="list"?>
|
---|
169 | <?dbhtml list-presentation="table"?>
|
---|
170 |
|
---|
171 | <varlistentry id="iostat">
|
---|
172 | <term><command>iostat</command></term>
|
---|
173 | <listitem>
|
---|
174 | <para>reports <acronym>CPU</acronym> statistics and input/output
|
---|
175 | statistics for devices and partitions.</para>
|
---|
176 | <indexterm zone="sysstat iostat">
|
---|
177 | <primary sortas="b-iostat">iostat</primary>
|
---|
178 | </indexterm>
|
---|
179 | </listitem>
|
---|
180 | </varlistentry>
|
---|
181 |
|
---|
182 | <varlistentry id="mpstat">
|
---|
183 | <term><command>mpstat</command></term>
|
---|
184 | <listitem>
|
---|
185 | <para>reports individual or combined processor related statistics.</para>
|
---|
186 | <indexterm zone="sysstat mpstat">
|
---|
187 | <primary sortas="b-mpstat">mpstat</primary>
|
---|
188 | </indexterm>
|
---|
189 | </listitem>
|
---|
190 | </varlistentry>
|
---|
191 |
|
---|
192 | <varlistentry id="sar">
|
---|
193 | <term><command>sar</command></term>
|
---|
194 | <listitem>
|
---|
195 | <para> collects, reports and saves system activity information.</para>
|
---|
196 | <indexterm zone="sysstat sar">
|
---|
197 | <primary sortas="b-sar">sar</primary>
|
---|
198 | </indexterm>
|
---|
199 | </listitem>
|
---|
200 | </varlistentry>
|
---|
201 |
|
---|
202 | <varlistentry id="sa1">
|
---|
203 | <term><command>sa1</command></term>
|
---|
204 | <listitem>
|
---|
205 | <para>collects and stores binary data in the system activity daily
|
---|
206 | data file. It is a front end to <filename>sadc</filename> designed to be run
|
---|
207 | from cron.</para>
|
---|
208 | <indexterm zone="sysstat sa1">
|
---|
209 | <primary sortas="b-sa1">sa1</primary>
|
---|
210 | </indexterm>
|
---|
211 | </listitem>
|
---|
212 | </varlistentry>
|
---|
213 |
|
---|
214 | <varlistentry id="sa2">
|
---|
215 | <term><command>sa2</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>writes a summarized daily activity report. It is a front end
|
---|
218 | to <command>sar</command> designed to be run from cron.</para>
|
---|
219 | <indexterm zone="sysstat sa2">
|
---|
220 | <primary sortas="b-sa2">sa2</primary>
|
---|
221 | </indexterm>
|
---|
222 | </listitem>
|
---|
223 | </varlistentry>
|
---|
224 |
|
---|
225 | <varlistentry id="sadc">
|
---|
226 | <term><command>sadc</command></term>
|
---|
227 | <listitem>
|
---|
228 | <para>is the system activity data collector, used as a backend for
|
---|
229 | <command>sar</command>.</para>
|
---|
230 | <indexterm zone="sysstat sadc">
|
---|
231 | <primary sortas="b-sadc">sadc</primary>
|
---|
232 | </indexterm>
|
---|
233 | </listitem>
|
---|
234 | </varlistentry>
|
---|
235 |
|
---|
236 | </variablelist>
|
---|
237 |
|
---|
238 | </sect2>
|
---|
239 |
|
---|
240 | </sect1>
|
---|