diff options
-rw-r--r-- | .circleci/config.yml | 2 | ||||
-rwxr-xr-x | text_collector_examples/md_info_detail.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 7fb9bf3..90a3a41 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml | |||
@@ -28,7 +28,7 @@ jobs: | |||
28 | steps: | 28 | steps: |
29 | - checkout | 29 | - checkout |
30 | - run: sudo pip install codespell | 30 | - run: sudo pip install codespell |
31 | - run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum" -L uint | 31 | - run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum" -L uint,packages\',uptodate |
32 | 32 | ||
33 | build: | 33 | build: |
34 | machine: | 34 | machine: |
diff --git a/text_collector_examples/md_info_detail.sh b/text_collector_examples/md_info_detail.sh index 6d45248..9806ebb 100755 --- a/text_collector_examples/md_info_detail.sh +++ b/text_collector_examples/md_info_detail.sh | |||
@@ -59,7 +59,7 @@ for MD_DEVICE in /dev/md/*; do | |||
59 | 59 | ||
60 | # Output RAID "Devices", "Size" and "Event" metrics, from the output of "mdadm --detail" | 60 | # Output RAID "Devices", "Size" and "Event" metrics, from the output of "mdadm --detail" |
61 | while IFS= read -r line ; do | 61 | while IFS= read -r line ; do |
62 | # Filter out these keys that have numberic values that increment up | 62 | # Filter out these keys that have numeric values that increment up |
63 | if echo "$line" | grep -E -q "Devices :|Array Size :| Used Dev Size :|Events :"; then | 63 | if echo "$line" | grep -E -q "Devices :|Array Size :| Used Dev Size :|Events :"; then |
64 | MDADM_DETAIL_KEY=$(echo "$line" | cut -d ":" -f 1 | tr -cd '[a-zA-Z0-9]._-') | 64 | MDADM_DETAIL_KEY=$(echo "$line" | cut -d ":" -f 1 | tr -cd '[a-zA-Z0-9]._-') |
65 | MDADM_DETAIL_VALUE=$(echo "$line" | cut -d ":" -f 2 | cut -d " " -f 2 | sed 's:^ ::') | 65 | MDADM_DETAIL_VALUE=$(echo "$line" | cut -d ":" -f 2 | cut -d " " -f 2 | sed 's:^ ::') |