add:https://www.blackmoreops.com/2014/06/18/sysstat-sar-examples-usage/
sysstat – SAR examples and usage
This first part describes SAR examples and usage along with installation.
Step 1. Install sysstat Package
sysstat is usually not installed in Linux system by default. You need to install it. You also need to make sure you have the correct repositories added. As I personally use Kali Linux, I’ve added Kali Linux official repositories. Follow your distro documentation to add yours. But it is pretty straight forward.
To install sysstat package:
Step 2. Enable stat collection
In new systems once you’ve installed sysstat, it enables statistics collections by default. In case it is not you can enable it by editing 1 word in the following file:
Change
to
Save the file. Restart sysstat.
Once it’s restarted, it will start collecting data.
Step 3. Changing collection intervals
Default sysstat configuration collects data every 10 minutes. You can change it easily. If you got a fast system or you need more intensive monitoring of your system (i.e. a web server with enough RAM and Processor), then you might want to reduce the collection interval from 10 minutes to 2 minutes. Alternatively, you can change it to 15 minutes if you got a slow system. Either way, it’s easy to do and here are the steps:
Change
To
Save the file and restart sysstat.
Step 4. Check sysstat version
Once installed, verify the sar version using the following command:
没有评论:
发表评论