Author: manuel Date: 2005-05-07 04:41:02 -0600 (Sat, 07 May 2005) New Revision: 4004
Modified: trunk/BOOK/general/sysutils/sysstat.xml Log: Tagged sysstat.xml Modified: trunk/BOOK/general/sysutils/sysstat.xml =================================================================== --- trunk/BOOK/general/sysutils/sysstat.xml 2005-05-07 10:22:40 UTC (rev 4003) +++ trunk/BOOK/general/sysutils/sysstat.xml 2005-05-07 10:41:02 UTC (rev 4004) @@ -13,98 +13,107 @@ ]> <sect1 id="sysstat" xreflabel="Sysstat-&sysstat-version;"> -<sect1info> -<othername>$LastChangedBy$</othername> -<date>$Date$</date> -</sect1info> -<?dbhtml filename="sysstat.html"?> -<title>Sysstat-&sysstat-version;</title> -<indexterm zone="sysstat"> -<primary sortas="a-Sysstat">Sysstat</primary></indexterm> + <?dbhtml filename="sysstat.html"?> -<sect2> -<title>Introduction to <application>Sysstat</application></title> + <sect1info> + <othername>$LastChangedBy$</othername> + <date>$Date$</date> + </sect1info> -<para>The <application>Sysstat</application> package contains utilities to -monitor system performance and usage activity. -<application>Sysstat</application> contains the <command>sar</command> utility, -common to many commercial Unixes, and tools you can schedule via cron to -collect and historize performance and activity data.</para> + <title>Sysstat-&sysstat-version;</title> -<sect3><title>Package information</title> -<itemizedlist spacing='compact'> -<listitem><para>Download (HTTP): -<ulink url="&sysstat-download-http;"/></para></listitem> -<listitem><para>Download (FTP): -<ulink url="&sysstat-download-ftp;"/></para></listitem> -<listitem><para>Download MD5 sum: -&sysstat-md5sum;</para></listitem> -<listitem><para>Download size: -&sysstat-size;</para></listitem> -<listitem><para>Estimated disk space required: -&sysstat-buildsize;</para></listitem> -<listitem><para>Estimated build time: -&sysstat-time;</para></listitem></itemizedlist> -</sect3> + <indexterm zone="sysstat"> + <primary sortas="a-Sysstat">Sysstat</primary> + </indexterm> -<sect3><title><application>Sysstat</application> dependencies</title> -<sect4><title>Recommended</title> -<para><xref linkend="fcron"/></para></sect4> -</sect3> + <sect2 role="package"> + <title>Introduction to Sysstat</title> -</sect2> + <para>The <application>Sysstat</application> package contains utilities + to monitor system performance and usage activity. + <application>Sysstat</application> contains the <command>sar</command> + utility, common to many commercial Unixes, and tools you can schedule via + cron to collect and historize performance and activity data.</para> -<sect2> -<title>Installation of <application>Sysstat</application></title> + <bridgehead renderas="sect3">Package Information</bridgehead> + <itemizedlist spacing="compact"> + <listitem> + <para>Download (HTTP): <ulink url="&sysstat-download-http;"/></para> + </listitem> + <listitem> + <para>Download (FTP): <ulink url="&sysstat-download-ftp;"/></para> + </listitem> + <listitem> + <para>Download MD5 sum: &sysstat-md5sum;</para> + </listitem> + <listitem> + <para>Download size: &sysstat-size;</para> + </listitem> + <listitem> + <para>Estimated disk space required: &sysstat-buildsize;</para> + </listitem> + <listitem> + <para>Estimated build time: &sysstat-time;</para> + </listitem> + </itemizedlist> -<para>Install <application>Sysstat</application> by running the -following commands:</para> + <bridgehead renderas="sect3">Sysstat Dependencies</bridgehead> -<screen><userinput><command>make config && -make</command></userinput></screen> + <bridgehead renderas="sect4">Recommended</bridgehead> + <para><xref linkend="fcron"/></para> -<para>Now, as the root user:</para> + </sect2> -<screen><userinput role='root'><command>make install</command></userinput></screen> + <sect2 role="installation"> + <title>Installation of Sysstat</title> -</sect2> + <para>Install <application>Sysstat</application> by running the + following commands:</para> -<sect2> -<title>Command explanations</title> +<screen><userinput>make config && +make</userinput></screen> -<para><command>make config</command>: Runs the interactive configuration -process. The first question prompts you for an -<quote><computeroutput>Installation directory</computeroutput></quote>. Reply -with <filename class="directory">/usr</filename>, as -this is equivalent to <application>Autoconf</application>'s -<parameter>--prefix=/usr</parameter> parameter to -<command>configure</command>. For all other prompts, you may -press <command>Enter</command> to accept the (very sane) defaults. When -prompted for <quote><computeroutput>Number of daily data files to keep: -[7]</computeroutput></quote>, you may wish to keep a larger number of files. -However, don't exceed 25 because <application>Sysstat</application> will -resuse existing files the next month, leading to erroneous daily -reports.</para> + <para>Now, as the <systemitem class="username">root</systemitem> user:</para> -</sect2> +<screen role="root"><userinput>make install</userinput></screen> -<sect2> -<title>Configuring <application>Sysstat</application></title> + </sect2> -<sect3><title>Cron information</title> + <sect2 role="commands"> + <title>Command Explanations</title> -<para>To begin gathering <application>Sysstat</application> history -information, you must add to, or create a privileged user's crontab. The -default history data location is -<filename class="directory">/var/log/sa</filename>. The user running -<application>Sysstat</application> utilities via cron must have write -access to this location.</para> + <para><command>make config</command>: Runs the interactive configuration + process. The first question prompts you for an + <quote><computeroutput>Installation directory</computeroutput></quote>. + Reply with <filename class="directory">/usr</filename>, as this is equivalent to + <application>Autoconf</application>'s <option>--prefix=/usr</option> parameter + to <command>configure</command>. For all other prompts, you may + press <keycap>Enter</keycap> to accept the (very sane) defaults. When + prompted for <quote><computeroutput>Number of daily data files to keep: + [7]</computeroutput></quote>, you may wish to keep a larger number of files. + However, don't exceed 25 because <application>Sysstat</application> will + resuse existing files the next month, leading to erroneous daily reports.</para> -<para>Below is an example of what to install in the crontab. Adjust the -parameters to suit your needs. Use <command>man sa1</command> and -<command>man sa2</command> for information about the commands.</para> + </sect2> -<screen><userinput># 8am-7pm activity reports every 10 minutes during weekdays + <sect2 role="configuration"> + <title>Configuring Sysstat</title> + + <sect3> + <title>Cron Information</title> + + <para>To begin gathering <application>Sysstat</application> history + information, you must add to, or create a privileged user's crontab. The + default history data location is + <filename class="directory">/var/log/sa</filename>. The user running + <application>Sysstat</application> utilities via cron must have write + access to this location.</para> + + <para>Below is an example of what to install in the crontab. Adjust the + parameters to suit your needs. Use <command>man sa1</command> and + <command>man sa2</command> for information about the commands.</para> + +<screen><literal># 8am-7pm activity reports every 10 minutes during weekdays 0 8-18 * * 1-5 /usr/lib/sa/sa1 600 6 & # 7pm-8am activity reports every hour during weekdays @@ -114,101 +123,118 @@ 0 * * * 0,6 /usr/lib/sa/sa1 & # Daily summary prepared at 19:05 -5 19 * * * /usr/lib/sa/sa2 -A &</userinput></screen> +5 19 * * * /usr/lib/sa/sa2 -A &</literal></screen> -<para>Ensure you submit the revised crontab to the cron daemon.</para> -</sect3> + <para>Ensure you submit the revised crontab to the cron daemon.</para> -<sect3 id="sysstat-init"><title>System startup information</title> -<indexterm zone="sysstat sysstat-init"> -<primary sortas="f-sysstat">sysstat</primary></indexterm> + </sect3> -<para>At system startup, a LINUX RESTART message must be inserted in the daily -data file to reinitialize the kernel counters. This can be automated by -installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script -included in the <xref linkend="intro-important-bootscripts"/> package using -the following command:</para> + <sect3 id="sysstat-init"> + <title>System Startup Information</title> -<screen><userinput role='root'><command>make install-sysstat</command></userinput></screen> -</sect3> + <indexterm zone="sysstat sysstat-init"> + <primary sortas="f-sysstat">sysstat</primary> + </indexterm> -</sect2> + <para>At system startup, a LINUX RESTART message must be inserted in the daily + data file to reinitialize the kernel counters. This can be automated by + installing the <filename>/etc/rc.d/init.d/sysstat</filename> init script + included in the <xref linkend="intro-important-bootscripts"/> package using + the following command:</para> -<sect2> -<title>Contents</title> +<screen role="root"><userinput>make install-sysstat</userinput></screen> -<segmentedlist> -<segtitle>Installed Programs</segtitle> -<segtitle>Installed Libraries</segtitle> -<segtitle>Installed Directories</segtitle> + </sect3> -<seglistitem> -<seg>iostat, mpstat, sar, sa1, sa2 and sadc</seg> -<seg>None</seg> -<seg>/usr/lib/sa and /var/log/sa</seg> -</seglistitem> -</segmentedlist> + </sect2> -<variablelist> -<bridgehead renderas="sect3">Short Descriptions</bridgehead> -<?dbfo list-presentation="list"?> + <sect2 role="content"> + <title>Contents</title> -<varlistentry id="iostat"> -<term><command>iostat</command></term> -<listitem><para>reports <acronym>CPU</acronym> statistics and input/output -statistics for devices and partitions.</para> -<indexterm zone="sysstat iostat"> -<primary sortas="b-iostat">iostat</primary> -</indexterm></listitem> -</varlistentry> + <segmentedlist> + <segtitle>Installed Programs</segtitle> + <segtitle>Installed Libraries</segtitle> + <segtitle>Installed Directories</segtitle> -<varlistentry id="mpstat"> -<term><command>mpstat</command></term> -<listitem><para>reports individual or combined processor related -statistics.</para> -<indexterm zone="sysstat mpstat"> -<primary sortas="b-mpstat">mpstat</primary> -</indexterm></listitem> -</varlistentry> + <seglistitem> + <seg>iostat, mpstat, sar, sa1, sa2, and sadc</seg> + <seg>None</seg> + <seg>/usr/lib/sa and /var/log/sa</seg> + </seglistitem> + </segmentedlist> -<varlistentry id="sar"> -<term><command>sar</command></term> -<listitem><para> collects, reports and saves system activity -information.</para> -<indexterm zone="sysstat sar"> -<primary sortas="b-sar">sar</primary> -</indexterm></listitem> -</varlistentry> + <variablelist> + <bridgehead renderas="sect3">Short Descriptions</bridgehead> + <?dbfo list-presentation="list"?> + <?dbhtml list-presentation="table"?> -<varlistentry id="sa1"> -<term><command>sa1</command></term> -<listitem><para>collects and stores binary data in the system activity daily -data file. It is a front end to <filename>sadc</filename> designed to be run -from cron.</para> -<indexterm zone="sysstat sa1"> -<primary sortas="b-sa1">sa1</primary> -</indexterm></listitem> -</varlistentry> + <varlistentry id="iostat"> + <term><command>iostat</command></term> + <listitem> + <para>reports <acronym>CPU</acronym> statistics and input/output + statistics for devices and partitions.</para> + <indexterm zone="sysstat iostat"> + <primary sortas="b-iostat">iostat</primary> + </indexterm> + </listitem> + </varlistentry> -<varlistentry id="sa2"> -<term><command>sa2</command></term> -<listitem><para>writes a summarized daily activity report. It is a front end -to <command>sar</command> designed to be run from cron.</para> -<indexterm zone="sysstat sa2"> -<primary sortas="b-sa2">sa2</primary> -</indexterm></listitem> -</varlistentry> + <varlistentry id="mpstat"> + <term><command>mpstat</command></term> + <listitem> + <para>reports individual or combined processor related statistics.</para> + <indexterm zone="sysstat mpstat"> + <primary sortas="b-mpstat">mpstat</primary> + </indexterm> + </listitem> + </varlistentry> -<varlistentry id="sadc"> -<term><command>sadc</command></term> -<listitem><para>is the system activity data collector, used as a backend for -<command>sar</command>.</para> -<indexterm zone="sysstat sadc"> -<primary sortas="b-sadc">sadc</primary> -</indexterm></listitem> -</varlistentry> -</variablelist> + <varlistentry id="sar"> + <term><command>sar</command></term> + <listitem> + <para> collects, reports and saves system activity information.</para> + <indexterm zone="sysstat sar"> + <primary sortas="b-sar">sar</primary> + </indexterm> + </listitem> + </varlistentry> -</sect2> + <varlistentry id="sa1"> + <term><command>sa1</command></term> + <listitem> + <para>collects and stores binary data in the system activity daily + data file. It is a front end to <filename>sadc</filename> designed to be run + from cron.</para> + <indexterm zone="sysstat sa1"> + <primary sortas="b-sa1">sa1</primary> + </indexterm> + </listitem> + </varlistentry> + <varlistentry id="sa2"> + <term><command>sa2</command></term> + <listitem> + <para>writes a summarized daily activity report. It is a front end + to <command>sar</command> designed to be run from cron.</para> + <indexterm zone="sysstat sa2"> + <primary sortas="b-sa2">sa2</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="sadc"> + <term><command>sadc</command></term> + <listitem> + <para>is the system activity data collector, used as a backend for + <command>sar</command>.</para> + <indexterm zone="sysstat sadc"> + <primary sortas="b-sadc">sadc</primary> + </indexterm> + </listitem> + </varlistentry> + + </variablelist> + + </sect2> + </sect1> -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
