Differences
This shows you the differences between two versions of the page.
linux_wiki:produce_and_deliver_reports_on_system_utilization_processor_memory_disk_and_network [2016/08/16 21:55] billdozor [Sysstat] |
linux_wiki:produce_and_deliver_reports_on_system_utilization_processor_memory_disk_and_network [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Produce And Deliver Reports On System Utilization Processor Memory Disk And Network ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | System utilization reporting. | ||
- | |||
- | ---- | ||
- | |||
- | ====== Dstat ====== | ||
- | |||
- | Dstat is good for real time monitoring and reporting. | ||
- | |||
- | \\ | ||
- | Install | ||
- | <code bash> | ||
- | yum install dstat | ||
- | </ | ||
- | |||
- | \\ | ||
- | Running dstat with default options | ||
- | <code bash> | ||
- | dstat | ||
- | </ | ||
- | * Defaults: -cdngy | ||
- | * c -> cpu | ||
- | * d -> disk | ||
- | * n -> network | ||
- | * g -> page stats | ||
- | * y -> system stats (interrupts, | ||
- | |||
- | \\ | ||
- | Write stats to a file/report | ||
- | <code bash> | ||
- | dstat -tcdm --output system-stats.csv | ||
- | </ | ||
- | * t -> time | ||
- | * c -> cpu | ||
- | * d -> disk | ||
- | * m -> memory | ||
- | |||
- | ---- | ||
- | |||
- | ====== Sysstat ====== | ||
- | |||
- | Sysstat runs periodically and provides historical statistics. | ||
- | |||
- | \\ | ||
- | Install | ||
- | <code bash> | ||
- | yum install sysstat | ||
- | </ | ||
- | |||
- | \\ | ||
- | Sysstat config file | ||
- | * / | ||
- | * Configure history, compression, | ||
- | |||
- | \\ | ||
- | Cron jobs | ||
- | * / | ||
- | * sa1 -> System activity every 10 mins by default | ||
- | * sa2 -> Daily summary | ||
- | |||
- | \\ | ||
- | System activity log files | ||
- | * / | ||
- | * sa## -> Number is the day of the month | ||
- | |||
- | \\ | ||
- | Print data from a system activity file, redirect to a file to view later | ||
- | <code bash> | ||
- | sadf -d / | ||
- | </ | ||
- | * -d -> Print contents of the data file in an easy to ingest by database format | ||
- | * -- -> sar options will follow | ||
- | * -u -> sar option: CPU usage | ||
- | * -r -> sar option: Memory usage | ||
- | * dp -> sar option: Disk usage (d) with pretty print (p) device names | ||
- | * -n DEV -> sar option: Network stats from devices | ||
- | |||
- | ---- | ||