<div dir="auto">That's the cron job I couldn't recall the name of. If it stops running, sar data doesn't get saved.</div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 30, 2016 1:38 AM, "Raj Wurttemberg" <<a href="mailto:rajaw@c64.us">rajaw@c64.us</a>> 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 <<a href="mailto:ale@ale.org">ale@ale.org</a>><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>
> Yes and no. It's stored in memory until a process writes it to disk.<br>
> Basic sar data is really just reading /proc for numbers. But that is<br>
> of course just in memory data. To store it requires a system process<br>
> that collects it. That usually runs in cron or as a daemon.<br>
><br>
> On Thu, 2016-12-29 at 13:50 -0500, leam hall wrote:<br>
>> On different VM hard resets, I've noticed that sar data is lost. On<br>
>> one reset, all data prior to the reset (0000-reset) was missing, on<br>
>> another all data after (crash-2350) was missing.<br>
>><br>
>> Any ideas why? Is the data stored in memory?<br>
>><br>
>> --<br>
>> Mind on a Mission <<a href="http://leamhall.blogspot.com/" rel="noreferrer" target="_blank">http://leamhall.blogspot.com/</a><wbr>><br>
>> ______________________________<wbr>_________________<br>
>> Ale mailing list<br>
>> <a href="mailto:Ale@ale.org">Ale@ale.org</a> <mailto:<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>
> --<br>
><br>
> James P. Kinney III<br>
><br>
> Every time you stop a school, you will have to build a jail. What you<br>
> gain at one end you lose at the other. It's like feeding a dog on his<br>
> own tail. It won't fatten the dog.<br>
> - Speech 11/23/1900 Mark Twain<br>
><br>
> <a href="http://heretothereideas.blogspot.com/" rel="noreferrer" target="_blank">http://heretothereideas.<wbr>blogspot.com/</a><br>
><br>
><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>
><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>