Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #158: collect_fake_json.sh #159

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

NiceGuyIT
Copy link
Member

This fixes the issues in #158 for collect_fake_json.sh.

  1. The debug directory is created.
  2. The script works from other directories by using absolute paths and quoting them.
  3. Use sudo to gather the data to prevent permission denied in the JSON.
  4. Use jq and yq as alternatives to awk to extract the device names.

Signed-off-by: David Randall <David@NiceGuyIT.biz>
@NiceGuyIT NiceGuyIT requested a review from SuperQ August 26, 2023 14:39
@NiceGuyIT NiceGuyIT merged commit 25f2581 into prometheus-community:master Oct 25, 2023
5 checks passed
@NiceGuyIT
Copy link
Member Author

Thanks @robbat2 !

SuperQ added a commit that referenced this pull request Mar 3, 2024
* [CHANGE] Better SCSI/SAS support, and removing confused metrics #168
* [ENHANCEMENT] Impvoe the JSON collection script; now requires jq/yq #176
* [BUGFIX] Shell fixes for `collect-smartctl-json.sh` #178
* [BUGFIX] Various fixes to `collect_fake_json.sh` #159

Signed-off-by: SuperQ <superq@gmail.com>
@SuperQ SuperQ mentioned this pull request Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants