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