Open
Conversation
Member
Author
|
Here the Travis jobs for this PR |
Add info for crontab entry: write stdout/stderr to syslog/messages
| #set -x | ||
|
|
||
| # Set the output directory | ||
| outputDataDir="/opt/mem-measurements" |
tools/mem-measurements/README.md
Outdated
|
|
||
| In this example the script `mem-measurements.sh` will be executed once every hour at minute 20. | ||
|
|
||
| 1. Save the script `mem-measurements.sh` in the directory `/opt/mem-measurements/` |
tools/mem-measurements/README.md
Outdated
|
|
||
| ``` | ||
| # crontab -e | ||
| 20 * * * * /opt/mem-measurements/mem-measurements.sh 2>&1 | logger |
tools/mem-measurements/README.md
Outdated
| 20 * * * * /opt/mem-measurements/mem-measurements.sh 2>&1 | logger | ||
| ``` | ||
|
|
||
| 4. The directory `/opt/mem-measurements/data/` will keep one week of data. |
There was a problem hiding this comment.
@https://github.com/haruki-yamanashi:
I suggest not to write script output to installation directory of monasca-log-agent.
I changed the script so that output directory can be specified as an optional parameter when calling the script.
Readme.md has been adjusted as well.
Pls. check
Extend with description of parameter "output directory"
Signed-off-by: bandorf <Matthias.Bandorf@est.fujitsu.com>
adriancz
approved these changes
Sep 22, 2020
Tatarinho
approved these changes
Jan 21, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.