source: general/sysutils/sysstat.xml@ e99fce3f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e99fce3f was e99fce3f, checked in by Randy McMurchy <randy@…>, 18 years ago

Added an additional command to the Sysstat installation so that a configuration file containing the history variable is installed

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6032 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.2 KB
Line 
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 "99ed143d7e753f0b2220baa115859b44">
10 <!ENTITY sysstat-size "120 KB">
11 <!ENTITY sysstat-buildsize "1.9 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 <keywordset>
22 <keyword role="package">sysstat-&sysstat-version;.tar</keyword>
23 <keyword role="ftpdir">sysstat</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Sysstat-&sysstat-version;</title>
28
29 <indexterm zone="sysstat">
30 <primary sortas="a-Sysstat">Sysstat</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Sysstat</title>
35
36 <para>The <application>Sysstat</application> package contains utilities
37 to monitor system performance and usage activity.
38 <application>Sysstat</application> contains the <command>sar</command>
39 utility, common to many commercial Unixes, and tools you can schedule via
40 cron to collect and historize performance and activity data.</para>
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &sysstat-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &sysstat-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &sysstat-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &sysstat-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead>
65
66 <bridgehead renderas="sect4">Recommended</bridgehead>
67 <para role="recommended"><xref linkend="fcron"/></para>
68
69 <para condition="html" role="usernotes">User Notes:
70 <ulink url="&blfs-wiki;/sysstat"/></para>
71
72 </sect2>
73
74 <sect2 role="installation">
75 <title>Installation of Sysstat</title>
76
77 <para>Install <application>Sysstat</application> by running the
78 following commands:</para>
79
80<screen><userinput>make config &amp;&amp;
81make</userinput></screen>
82
83 <para>This package does not come with a test suite.</para>
84
85 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
86
87<screen role="root"><userinput>make install &amp;&amp;
88install -v -m644 sysstat.sysconfig /etc/sysconfig/sysstat</userinput></screen>
89
90 </sect2>
91
92 <sect2 role="commands">
93 <title>Command Explanations</title>
94
95 <para><command>make config</command>: Runs the interactive configuration
96 process. The first question prompts you for an
97 <quote><computeroutput>Installation directory</computeroutput></quote>.
98 Reply with <filename class="directory">/usr</filename>, as this is
99 equivalent to <application>Autoconf</application>'s
100 <option>--prefix=/usr</option> parameter to <command>configure</command>.
101 For all other prompts, you may press <keycap>Enter</keycap> to accept the
102 (very sane) defaults. When prompted for <quote><computeroutput>Number of
103 daily data files to keep: [7]</computeroutput></quote>, you may wish to
104 keep a larger number of files. Note that anything entered larger than 28
105 will result in 28 being used.</para>
106
107 </sect2>
108
109 <sect2 role="configuration">
110 <title>Configuring Sysstat</title>
111
112 <sect3>
113 <title>Cron Information</title>
114
115 <para>To begin gathering <application>Sysstat</application> history
116 information, you must add to, or create a privileged user's crontab. The
117 default history data location is
118 <filename class="directory">/var/log/sa</filename>. The user running
119 <application>Sysstat</application> utilities via cron must have write
120 access to this location.</para>
121
122 <para>Below is an example of what to install in the crontab. Adjust the
123 parameters to suit your needs. Use <command>man sa1</command> and
124 <command>man sa2</command> for information about the commands.</para>
125
126<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays
1270 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 &amp;
128
129# 7pm-8am activity reports every hour during weekdays
1300 19-7 * * 1-5 /usr/lib/sa/sa1 &amp;
131
132# Activity reports every hour on Saturday and Sunday
1330 * * * 0,6 /usr/lib/sa/sa1 &amp;
134
135# Daily summary prepared at 19:05
1365 19 * * * /usr/lib/sa/sa2 -A &amp;</literal></screen>
137
138 <para>Ensure you submit the revised crontab to the cron daemon.</para>
139
140 </sect3>
141
142 <sect3 id="sysstat-init">
143 <title>System Startup Information</title>
144
145 <indexterm zone="sysstat sysstat-init">
146 <primary sortas="f-sysstat">sysstat</primary>
147 </indexterm>
148
149 <para>At system startup, a LINUX RESTART message must be inserted in the
150 daily data file to reinitialize the kernel counters. This can be
151 automated by installing the <filename>/etc/rc.d/init.d/sysstat</filename>
152 init script included in the <xref linkend="bootscripts"/>
153 package using the following command as the
154 <systemitem class="username">root</systemitem> user:</para>
155
156<screen role="root"><userinput>make install-sysstat</userinput></screen>
157
158 </sect3>
159
160 </sect2>
161
162 <sect2 role="content">
163 <title>Contents</title>
164
165 <segmentedlist>
166 <segtitle>Installed Programs</segtitle>
167 <segtitle>Installed Libraries</segtitle>
168 <segtitle>Installed Directories</segtitle>
169
170 <seglistitem>
171 <seg>iostat, mpstat, sar, sa1, sa2, sadc and sadf</seg>
172 <seg>None</seg>
173 <seg>/usr/lib/sa, /usr/share/doc/sysstat-&sysstat-version; and
174 /var/log/sa</seg>
175 </seglistitem>
176 </segmentedlist>
177
178 <variablelist>
179 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
180 <?dbfo list-presentation="list"?>
181 <?dbhtml list-presentation="table"?>
182
183 <varlistentry id="iostat">
184 <term><command>iostat</command></term>
185 <listitem>
186 <para>reports CPU statistics and input/output
187 statistics for devices and partitions.</para>
188 <indexterm zone="sysstat iostat">
189 <primary sortas="b-iostat">iostat</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="mpstat">
195 <term><command>mpstat</command></term>
196 <listitem>
197 <para>reports individual or combined processor related
198 statistics.</para>
199 <indexterm zone="sysstat mpstat">
200 <primary sortas="b-mpstat">mpstat</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="sar">
206 <term><command>sar</command></term>
207 <listitem>
208 <para> collects, reports and saves system activity
209 information.</para>
210 <indexterm zone="sysstat sar">
211 <primary sortas="b-sar">sar</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="sa1">
217 <term><command>sa1</command></term>
218 <listitem>
219 <para>collects and stores binary data in the system activity daily
220 data file. It is a front end to <filename>sadc</filename> designed
221 to be run from cron.</para>
222 <indexterm zone="sysstat sa1">
223 <primary sortas="b-sa1">sa1</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="sa2">
229 <term><command>sa2</command></term>
230 <listitem>
231 <para>writes a summarized daily activity report. It is a front end
232 to <command>sar</command> designed to be run from cron.</para>
233 <indexterm zone="sysstat sa2">
234 <primary sortas="b-sa2">sa2</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="sadc">
240 <term><command>sadc</command></term>
241 <listitem>
242 <para>is the system activity data collector, used as a backend for
243 <command>sar</command>.</para>
244 <indexterm zone="sysstat sadc">
245 <primary sortas="b-sadc">sadc</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="sadf">
251 <term><command>sadf</command></term>
252 <listitem>
253 <para>is used for displaying the contents of data files created by
254 the <command>sar</command> command. But unlike
255 <command>sar</command>, <command>sadf</command> can write its data
256 in many different formats.</para>
257 <indexterm zone="sysstat sadf">
258 <primary sortas="b-sadf">sadf</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 </variablelist>
264
265 </sect2>
266
267</sect1>
Note: See TracBrowser for help on using the repository browser.