Skip to content

Instantly share code, notes, and snippets.

@tolumide-ng
Last active March 8, 2024 22:04
Show Gist options
  • Select an option

  • Save tolumide-ng/3c0dd88800840cbb9a5ebbc4d7d7fb79 to your computer and use it in GitHub Desktop.

Select an option

Save tolumide-ng/3c0dd88800840cbb9a5ebbc4d7d7fb79 to your computer and use it in GitHub Desktop.

Revisions

  1. tolumide-ng revised this gist Mar 8, 2024. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions index.txt
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ sudo service sysstat restart
    4. ## To adjust the schedule the statistic is recorded run the command below, and update the activity report to your taste
    sudo vim /etc/cron.d/sysstat

    5. # You can use `sadf` for viewing in different formats (-j for json), (-g for svg), and (-d for csv)
    5. ## You can use `sadf` for viewing in different formats (-j for json), (-g for svg), and (-d for csv)
    e.g -> sadf -j sa06 #to view the log for in `/var/log/sysstat/sa06` in jsoin format

    6. # Archive data stored by `sar` can be viewed in `/var/log/sysstat`, each day of the months archive is stored as `sa*` where `*` represents the day of that month e.g `sa07` represents the data for the seventh data of that month
    6. ## Archive data stored by `sar` can be viewed in `/var/log/sysstat`, each day of the months archive is stored as `sa*` where `*` represents the day of that month e.g `sa07` represents the data for the seventh data of that month
  2. tolumide-ng revised this gist Mar 8, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion index.txt
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,6 @@ sudo service sysstat restart
    4. ## To adjust the schedule the statistic is recorded run the command below, and update the activity report to your taste
    sudo vim /etc/cron.d/sysstat

    5. # You can use `sadf` for viewing in different formats (-j for json), (-g for svg), and (-d for csv)
    5. # You can use `sadf` for viewing in different formats (-j for json), (-g for svg), and (-d for csv)

    6. # Archive data stored by `sar` can be viewed in `/var/log/sysstat`, each day of the months archive is stored as `sa*` where `*` represents the day of that month e.g `sa07` represents the data for the seventh data of that month
  3. tolumide-ng revised this gist Mar 8, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion index.txt
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,6 @@ sudo vim /etc/default/sysstat
    sudo service sysstat restart

    4. ## To adjust the schedule the statistic is recorded run the command below, and update the activity report to your taste
    sudo vim /etc/cron.d/sysstat
    sudo vim /etc/cron.d/sysstat

    5. # You can use `sadf` for viewing in different formats (-j for json), (-g for svg), and (-d for csv)
  4. tolumide-ng revised this gist Mar 8, 2024. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion index.txt
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,7 @@ sudo vim /etc/default/sysstat
    2. # Change the ENABLED="false" part to ENABLED="true" and save the changes

    3. # Restart sysstat:
    sudo service sysstat restart
    sudo service sysstat restart

    4. ## To adjust the schedule the statistic is recorded run the command below, and update the activity report to your taste
    sudo vim /etc/cron.d/sysstat
  5. tolumide-ng created this gist Mar 8, 2024.
    7 changes: 7 additions & 0 deletions index.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    1. # Open sysstat file
    sudo vim /etc/default/sysstat

    2. # Change the ENABLED="false" part to ENABLED="true" and save the changes

    3. # Restart sysstat:
    sudo service sysstat restart