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.
- Host: GitHub
- URL: https://github.com/eat-sleep-code/urlstatistics
- Owner: eat-sleep-code
- Created: 2020-07-30T03:41:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-31T05:12:29.000Z (almost 6 years ago)
- Last Synced: 2025-01-19T12:48:31.577Z (over 1 year ago)
- Topics: bash-script
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).