File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
etc/kayobe/ansible/scripts Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ parse_smartctl_scsi_attributes() {
106
106
}
107
107
108
108
parse_smartctl_info () {
109
+ shopt -s nocasematch
109
110
local -i smart_available=0 smart_enabled=0 smart_healthy=
110
111
local disk=" $1 " disk_type=" $2 "
111
112
local model_family=' ' device_model=' ' serial_number=' ' fw_version=' ' vendor=' ' product=' ' revision=' ' lun_id=' '
@@ -199,4 +200,4 @@ for device in ${device_list}; do
199
200
exit
200
201
;;
201
202
esac
202
- done | format_output
203
+ done | format_output
Original file line number Diff line number Diff line change
1
+ ---
2
+ fixes :
3
+ - |
4
+ Fixes the smartmon script to be case insensitive when checking for
5
+ the inital SMART info. This is to ensure that the script works
6
+ correctly on systems where the output of `smartctl -i` is not
7
+ capitalised as previously expected by the script. This leads to
8
+ badly formatted .prom files which lead to node_exporter failing to
9
+ scrape the file.
You can’t perform that action at this time.
0 commit comments