In https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/blob/master/smartmon.sh#L187, the -n standby skips monitoring if the disk is in standby. However if it is in the idle state (not standby), it will continue. Some of the metrics retrieved however will reset the idle timer on the disk, preventing standby from ever being reached.
To prevent this, we need to pass -n idle to avoid collecting metrics if the disk is idle, or change the data collection frequency to be greater than the standby timer of the disk.
In https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/blob/master/smartmon.sh#L187, the
-n standbyskips monitoring if the disk is in standby. However if it is in the idle state (not standby), it will continue. Some of the metrics retrieved however will reset the idle timer on the disk, preventing standby from ever being reached.To prevent this, we need to pass
-n idleto avoid collecting metrics if the disk is idle, or change the data collection frequency to be greater than the standby timer of the disk.