<div dir="auto">That&#39;s the cron job I couldn&#39;t recall the name of. If it stops running, sar data doesn&#39;t get saved.</div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 30, 2016 1:38 AM, &quot;Raj Wurttemberg&quot; &lt;<a href="mailto:rajaw@c64.us">rajaw@c64.us</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On my RHEL6 servers there is a cron job that calls sa and writes to the sar<br>
log files (/var/log/sa) every ten minutes:<br>
<br>
# run system activity accounting tool every 10 minutes<br>
*/10 * * * * root /usr/lib/sa/sa1 1 1<br>
<br>
# generate a daily summary of process accounting at 23:53<br>
53 23 * * * root /usr/lib/sa/sa2 -A<br>
<br>
(This is the default as installed by the sysstat pacakage)<br>
<br>
Kind regards,<br>
/Raj<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a> [mailto:<a href="mailto:ale-bounces@ale.org">ale-bounces@ale.org</a>] On Behalf Of Leam<br>
Hall<br>
Sent: Thursday, December 29, 2016 6:43 PM<br>
To: Atlanta Linux Enthusiasts &lt;<a href="mailto:ale@ale.org">ale@ale.org</a>&gt;<br>
Subject: Re: [ale] Lost sar data?<br>
<br>
Hmm...these were 6 and 8 hour losses, so probably not a disk sync issue.<br>
<br>
On 12/29/16 15:19, Jim Kinney wrote:<br>
&gt; Yes and no. It&#39;s stored in memory until a process writes it to disk.<br>
&gt; Basic sar data is really just reading /proc for numbers. But that is<br>
&gt; of course just in memory data. To store it requires a system process<br>
&gt; that collects it. That usually runs in cron or as a daemon.<br>
&gt;<br>
&gt; On Thu, 2016-12-29 at 13:50 -0500, leam hall wrote:<br>
&gt;&gt; On different VM hard resets, I&#39;ve noticed that sar data is lost. On<br>
&gt;&gt; one reset, all data prior to the reset (0000-reset) was missing, on<br>
&gt;&gt; another all data after (crash-2350) was missing.<br>
&gt;&gt;<br>
&gt;&gt; Any ideas why? Is the data stored in memory?<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Mind on a Mission &lt;<a href="http://leamhall.blogspot.com/" rel="noreferrer" target="_blank">http://leamhall.blogspot.com/</a><wbr>&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Ale mailing list<br>
&gt;&gt; <a href="mailto:Ale@ale.org">Ale@ale.org</a> &lt;mailto:<a href="mailto:Ale@ale.org">Ale@ale.org</a>&gt;<br>
&gt;&gt; <a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br>
&gt;&gt; See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt;&gt; <a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; James P. Kinney III<br>
&gt;<br>
&gt; Every time you stop a school, you will have to build a jail. What you<br>
&gt; gain at one end you lose at the other. It&#39;s like feeding a dog on his<br>
&gt; own tail. It won&#39;t fatten the dog.<br>
&gt; - Speech 11/23/1900 Mark Twain<br>
&gt;<br>
&gt; <a href="http://heretothereideas.blogspot.com/" rel="noreferrer" target="_blank">http://heretothereideas.<wbr>blogspot.com/</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Ale mailing list<br>
&gt; <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
&gt; <a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br>
&gt; See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt; <a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br>
&gt;<br>
<br>
--<br>
  Dec 2016<br>
I am a professional writer. My writing pleases my Father, encourages others,<br>
and pays the bills. I work on my craft, content, platform, and business. I<br>
show up for work every day, meet my goals, and let my Father determine<br>
success. I am a professional writer.<br>
______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br>
<br>
______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br>
</blockquote></div></div>