Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion etc/kayobe/ansible/scripts/smartmon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ parse_smartctl_scsi_attributes() {
}

parse_smartctl_info() {
shopt -s nocasematch
local -i smart_available=0 smart_enabled=0 smart_healthy=
local disk="$1" disk_type="$2"
local model_family='' device_model='' serial_number='' fw_version='' vendor='' product='' revision='' lun_id=''
Expand Down Expand Up @@ -199,4 +200,4 @@ for device in ${device_list}; do
exit
;;
esac
done | format_output
done | format_output
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
fixes:
- |
Fixes the smartmon script to be case insensitive when checking for
the inital SMART info. This is to ensure that the script works
correctly on systems where the output of `smartctl -i` is not
capitalised as previously expected by the script. This leads to
badly formatted .prom files which lead to node_exporter failing to
scrape the file.