An open API service indexing awesome lists of open source software.

https://github.com/eat-sleep-code/urlstatistics

Bash script to check a web server's performance at a regular interval and log those results to JSON.
https://github.com/eat-sleep-code/urlstatistics

bash-script

Last synced: about 1 month ago
JSON representation

Bash script to check a web server's performance at a regular interval and log those results to JSON.

Awesome Lists containing this project

README

          

# URLStatistics
This script can be used to check a web server's performance at a regular interval and log those results to JSON.

## Git and run

```
sudo git clone https://github.com/eat-sleep-code/urlstatistics
sudo chown -R $USER:$USER urlstatistics
cd urlstatistics
sudo chmod +x urlstatistics.sh
```

### Usage

`./urlstatistics.sh url [output file] [interval in seconds]`

### Example

`./urlstatistics.sh https://example.com output.json 30`

## Customization

You may modify the body of the "urlstatistics.template" file to add or remove Curl variables from the JSON output.

For a list of available variables, please see the [Curl documentation](https://ec.haxx.se/usingcurl/usingcurl-verbose/usingcurl-writeout).