1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/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 "46a6af9c5486809c4f1fb4f8fcdf2684">
|
---|
10 | <!ENTITY sysstat-size "124 KB">
|
---|
11 | <!ENTITY sysstat-buildsize "2 MB">
|
---|
12 | <!ENTITY sysstat-time "less than 0.1 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 role="recommended"><xref linkend="fcron"/></para>
|
---|
64 |
|
---|
65 | <para condition="html" role="usernotes">User Notes:
|
---|
66 | <ulink url="&blfs-wiki;/sysstat"/></para>
|
---|
67 |
|
---|
68 | </sect2>
|
---|
69 |
|
---|
70 | <sect2 role="installation">
|
---|
71 | <title>Installation of Sysstat</title>
|
---|
72 |
|
---|
73 | <para>Install <application>Sysstat</application> by running the
|
---|
74 | following commands:</para>
|
---|
75 |
|
---|
76 | <screen><userinput>make config &&
|
---|
77 | make</userinput></screen>
|
---|
78 |
|
---|
79 | <para>This package does not come with a test suite.</para>
|
---|
80 |
|
---|
81 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
82 |
|
---|
83 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
84 |
|
---|
85 | <!-- install -v -m644 sysstat.sysconfig /etc/sysconfig/sysstat</userinput></screen> -->
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2 role="commands">
|
---|
90 | <title>Command Explanations</title>
|
---|
91 |
|
---|
92 | <para><command>make config</command>: Runs the interactive configuration
|
---|
93 | process. The first question prompts you for an
|
---|
94 | <quote><computeroutput>Installation directory</computeroutput></quote>.
|
---|
95 | Reply with <filename class="directory">/usr</filename>, as this is
|
---|
96 | equivalent to <application>Autoconf</application>'s
|
---|
97 | <option>--prefix=/usr</option> parameter to <command>configure</command>.
|
---|
98 | For all other prompts, you may press <keycap>Enter</keycap> to accept the
|
---|
99 | (very sane) defaults. When prompted for <quote><computeroutput>Number of
|
---|
100 | daily data files to keep: [7]</computeroutput></quote>, you may wish to
|
---|
101 | keep a larger number of files.</para>
|
---|
102 |
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="configuration">
|
---|
106 | <title>Configuring Sysstat</title>
|
---|
107 |
|
---|
108 | <sect3>
|
---|
109 | <title>Cron Information</title>
|
---|
110 |
|
---|
111 | <para>To begin gathering <application>Sysstat</application> history
|
---|
112 | information, you must add to, or create a privileged user's crontab. The
|
---|
113 | default history data location is
|
---|
114 | <filename class="directory">/var/log/sa</filename>. The user running
|
---|
115 | <application>Sysstat</application> utilities via cron must have write
|
---|
116 | access to this location.</para>
|
---|
117 |
|
---|
118 | <para>Below is an example of what to install in the crontab. Adjust the
|
---|
119 | parameters to suit your needs. Use <command>man sa1</command> and
|
---|
120 | <command>man sa2</command> for information about the commands.</para>
|
---|
121 |
|
---|
122 | <screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
|
---|
123 | 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &
|
---|
124 |
|
---|
125 | # 7pm-8am activity reports every hour during weekdays
|
---|
126 | 0 19-7 * * 1-5 /usr/lib/sa/sa1 &
|
---|
127 |
|
---|
128 | # Activity reports every hour on Saturday and Sunday
|
---|
129 | 0 * * * 0,6 /usr/lib/sa/sa1 &
|
---|
130 |
|
---|
131 | # Daily summary prepared at 19:05
|
---|
132 | 5 19 * * * /usr/lib/sa/sa2 -A &</literal></screen>
|
---|
133 |
|
---|
134 | <para>Ensure you submit the revised crontab to the cron daemon.</para>
|
---|
135 |
|
---|
136 | </sect3>
|
---|
137 |
|
---|
138 | <sect3 id="sysstat-init">
|
---|
139 | <title>System Startup Information</title>
|
---|
140 |
|
---|
141 | <indexterm zone="sysstat sysstat-init">
|
---|
142 | <primary sortas="f-sysstat">sysstat</primary>
|
---|
143 | </indexterm>
|
---|
144 |
|
---|
145 | <para>At system startup, a LINUX RESTART message must be inserted in the
|
---|
146 | daily data file to reinitialize the kernel counters. This can be
|
---|
147 | automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
|
---|
148 | init script included in the <xref linkend="bootscripts"/>
|
---|
149 | package using the following command as the
|
---|
150 | <systemitem class="username">root</systemitem> user:</para>
|
---|
151 |
|
---|
152 | <screen role="root"><userinput>make install-sysstat</userinput></screen>
|
---|
153 |
|
---|
154 | </sect3>
|
---|
155 |
|
---|
156 | </sect2>
|
---|
157 |
|
---|
158 | <sect2 role="content">
|
---|
159 | <title>Contents</title>
|
---|
160 |
|
---|
161 | <segmentedlist>
|
---|
162 | <segtitle>Installed Programs</segtitle>
|
---|
163 | <segtitle>Installed Libraries</segtitle>
|
---|
164 | <segtitle>Installed Directories</segtitle>
|
---|
165 |
|
---|
166 | <seglistitem>
|
---|
167 | <seg>iostat, mpstat, sar, sa1, sa2, sadc and sadf</seg>
|
---|
168 | <seg>None</seg>
|
---|
169 | <seg>/usr/lib/sa, /usr/share/doc/sysstat-&sysstat-version; and
|
---|
170 | /var/log/sa</seg>
|
---|
171 | </seglistitem>
|
---|
172 | </segmentedlist>
|
---|
173 |
|
---|
174 | <variablelist>
|
---|
175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
176 | <?dbfo list-presentation="list"?>
|
---|
177 | <?dbhtml list-presentation="table"?>
|
---|
178 |
|
---|
179 | <varlistentry id="iostat">
|
---|
180 | <term><command>iostat</command></term>
|
---|
181 | <listitem>
|
---|
182 | <para>reports CPU statistics and input/output
|
---|
183 | statistics for devices and partitions.</para>
|
---|
184 | <indexterm zone="sysstat iostat">
|
---|
185 | <primary sortas="b-iostat">iostat</primary>
|
---|
186 | </indexterm>
|
---|
187 | </listitem>
|
---|
188 | </varlistentry>
|
---|
189 |
|
---|
190 | <varlistentry id="mpstat">
|
---|
191 | <term><command>mpstat</command></term>
|
---|
192 | <listitem>
|
---|
193 | <para>reports individual or combined processor related
|
---|
194 | statistics.</para>
|
---|
195 | <indexterm zone="sysstat mpstat">
|
---|
196 | <primary sortas="b-mpstat">mpstat</primary>
|
---|
197 | </indexterm>
|
---|
198 | </listitem>
|
---|
199 | </varlistentry>
|
---|
200 |
|
---|
201 | <varlistentry id="sar">
|
---|
202 | <term><command>sar</command></term>
|
---|
203 | <listitem>
|
---|
204 | <para> collects, reports and saves system activity
|
---|
205 | information.</para>
|
---|
206 | <indexterm zone="sysstat sar">
|
---|
207 | <primary sortas="b-sar">sar</primary>
|
---|
208 | </indexterm>
|
---|
209 | </listitem>
|
---|
210 | </varlistentry>
|
---|
211 |
|
---|
212 | <varlistentry id="sa1">
|
---|
213 | <term><command>sa1</command></term>
|
---|
214 | <listitem>
|
---|
215 | <para>collects and stores binary data in the system activity daily
|
---|
216 | data file. It is a front end to <filename>sadc</filename> designed
|
---|
217 | to be run from cron.</para>
|
---|
218 | <indexterm zone="sysstat sa1">
|
---|
219 | <primary sortas="b-sa1">sa1</primary>
|
---|
220 | </indexterm>
|
---|
221 | </listitem>
|
---|
222 | </varlistentry>
|
---|
223 |
|
---|
224 | <varlistentry id="sa2">
|
---|
225 | <term><command>sa2</command></term>
|
---|
226 | <listitem>
|
---|
227 | <para>writes a summarized daily activity report. It is a front end
|
---|
228 | to <command>sar</command> designed to be run from cron.</para>
|
---|
229 | <indexterm zone="sysstat sa2">
|
---|
230 | <primary sortas="b-sa2">sa2</primary>
|
---|
231 | </indexterm>
|
---|
232 | </listitem>
|
---|
233 | </varlistentry>
|
---|
234 |
|
---|
235 | <varlistentry id="sadc">
|
---|
236 | <term><command>sadc</command></term>
|
---|
237 | <listitem>
|
---|
238 | <para>is the system activity data collector, used as a backend for
|
---|
239 | <command>sar</command>.</para>
|
---|
240 | <indexterm zone="sysstat sadc">
|
---|
241 | <primary sortas="b-sadc">sadc</primary>
|
---|
242 | </indexterm>
|
---|
243 | </listitem>
|
---|
244 | </varlistentry>
|
---|
245 |
|
---|
246 | <varlistentry id="sadf">
|
---|
247 | <term><command>sadf</command></term>
|
---|
248 | <listitem>
|
---|
249 | <para>is used for displaying the contents of data files created by
|
---|
250 | the <command>sar</command> command. But unlike
|
---|
251 | <command>sar</command>, <command>sadf</command> can write its data
|
---|
252 | in many different formats.</para>
|
---|
253 | <indexterm zone="sysstat sadf">
|
---|
254 | <primary sortas="b-sadf">sadf</primary>
|
---|
255 | </indexterm>
|
---|
256 | </listitem>
|
---|
257 | </varlistentry>
|
---|
258 |
|
---|
259 | </variablelist>
|
---|
260 |
|
---|
261 | </sect2>
|
---|
262 |
|
---|
263 | </sect1>
|
---|