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