Skip to content

This script collects server performance metrics such as CPU usage, memory usage, disk usage, incoming traffic, and outgoing traffic. It then appends these metrics along with the current datetime to a CSV file (/var/log/performance_$(date +"%Y-%m-%d").txt). If the file is empty, it adds a header line to it.

License

Notifications You must be signed in to change notification settings

raza-hasnain/sysinfo.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Server Performance Metrics Script

This script collects various performance metrics of a server and saves them to a CSV file. It formats incoming and outgoing traffic data into human-readable format (KB, MB, GB, TB).

Usage

  1. Clone the repository:

    git clone https://github.com/your-username/server-performance-metrics.git
  2. Change directory to the script folder:

cd server-performance-metrics
  1. Run the script:
./server_performance.sh
  1. View the performance data:
cat /var/log/performance_$(date +"%Y-%m-%d").txt | column -s, -t

Author

If you liked it then

Buy Me A Coffee

About

This script collects server performance metrics such as CPU usage, memory usage, disk usage, incoming traffic, and outgoing traffic. It then appends these metrics along with the current datetime to a CSV file (/var/log/performance_$(date +"%Y-%m-%d").txt). If the file is empty, it adds a header line to it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages