linux_wiki:produce_and_deliver_reports_on_system_utilization_processor_memory_disk_and_network

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:produce_and_deliver_reports_on_system_utilization_processor_memory_disk_and_network [2016/10/08 17:51]
billdozor
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. 
- 
----- 
- 
-====== Lab Setup ====== 
- 
-The following virtual machines will be used: 
-  * server1.example.com (192.168.1.150) -> Configure and test system reporting 
- 
----- 
- 
-====== Dstat ====== 
- 
-Dstat is good for real time monitoring and reporting. 
- 
-\\ 
-Install 
-<code bash> 
-yum install dstat 
-</code> 
- 
-\\ 
-Running dstat with default options 
-<code bash> 
-dstat 
-</code> 
-  * Defaults: -cdngy 
-    * c -> cpu 
-    * d -> disk 
-    * n -> network 
-    * g -> page stats 
-    * y -> system stats (interrupts, context switches) 
- 
-\\ 
-Write stats to a file/report 
-<code bash> 
-dstat -tcdm --output system-stats.csv 
-</code> 
-  * t -> time 
-  * c -> cpu 
-  * d -> disk 
-  * m -> memory 
- 
----- 
- 
-====== Sysstat ====== 
- 
-Sysstat runs periodically and provides historical statistics. 
- 
-[[linux_wiki:sar|See here for more sar commands.]] 
- 
-\\ 
-Install 
-<code bash> 
-yum install sysstat 
-</code> 
- 
-\\ 
-Sysstat config file 
-  * /etc/sysconfig/sysstat 
-    * Configure history, compression, and compression program 
- 
-\\ 
-Cron jobs 
-  * /etc/cron.d/sysstat 
-    * sa1 -> System activity every 10 mins by default 
-    * sa2 -> Daily summary 
- 
-\\ 
-System activity log files 
-  * /var/log/sa/ 
-    * sa## -> Number is the day of the month 
- 
-\\ 
-View info now from a system activity file 
-<code bash> 
-sar -urd -f /var/log/sa/sa01 
-</code> 
- 
-\\ 
-Semi Colon Separated: Print data from a system activity file, redirect to a file to view later 
-<code bash> 
-sadf -d /var/log/sa/sa01 -- -urd -n DEV > system-stats.txt 
-</code> 
-  * -d -> Print contents of the data file in an easy to ingest by database format (semi colon separated) 
-  * -- -> sar options will follow 
-  * -u -> sar option: CPU usage 
-  * -r -> sar option: Memory usage 
-  * d -> sar option: Disk usage (d) 
-  * -n DEV -> sar option: Network stats from devices 
- 
----- 
  
  • linux_wiki/produce_and_deliver_reports_on_system_utilization_processor_memory_disk_and_network.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)