https://github.com/bigbitbus/mtr-formula
MTR is a network measurements tool
https://github.com/bigbitbus/mtr-formula
Last synced: 8 months ago
JSON representation
MTR is a network measurements tool
- Host: GitHub
- URL: https://github.com/bigbitbus/mtr-formula
- Owner: bigbitbus
- Created: 2018-05-03T19:45:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-15T13:18:25.000Z (about 8 years ago)
- Last Synced: 2025-03-02T11:25:38.590Z (over 1 year ago)
- Language: SaltStack
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MTR formula
[MTR](http://www.bitwizard.nl/mtr/) is a network benchmarking tool (a supercharged combination of ping and traceroute). This [salt formula](https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html) can be used to install it from the package repository or from source, and execute it and store the execution output in a specified directory.
See the full Salt Formulas installation and usage instructions [here](http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html).
## What this formula offers
* mtr.install - to install mtrg (from the OS packages - the default, or from source if the pillar mtr:lookup:install_from_source is set). For example:
```
salt \* state.apply mtr.install pillar='{"mtr":{"lookup": {"install_from_source": True}}}'
```
You can also set the mtr version via a lookup pillar *stressng_source_url*; the stress-ng source archives are [available here](https://www.bitwizard.nl/mtr/files/).
* stressng.execute - Run mtr.
The output directory (*out_dir*) is specified in the pillar. The formula will create a subdirectory under the out_dir folder whose name will correspond to the job-file name. All the stress-ng results for that job file will be stored in this subdirectory. The job file will also be stored in this subdirectory under the filename job.stress.
Look at the _pillar.example_ file for more examples.