Skip to content

expected float as value got "" on smartmon_avg_write_erase_count_raw_value #34

@rummens

Description

@rummens

Hi there,

first of all, thank you very much for this great script and the work you put into this. I just deployed the script and setup my NodeExporter to scape it (I am running Microshift on RHEL9 if that helps). The script runs on the OS and the NodeExporter scrapes it from within its container, as it has a mount of the filesystem. This seems to work.

The error I can see in the logs is the following:

ts=2024-12-14T10:14:30.208Z caller=textfile.go:245 level=error collector=textfile msg="failed to collect textfile data" file=smart_metrics.prom err="failed to parse textfile data from \"/host/root/var/lib/node_ex │
│ porter/textfile_collector/smart_metrics.prom\": text format parsing error in line 12: expected float as value, got \"\""

And indeed if checking the file, line 12 shows an empty value:
smartmon_avg_write_erase_count_raw_value{disk="/dev/sdc",type="sat",smart_id="173"}

I did try to enable the special seagate flag, eventhough I do have WD drives but figured I should try every combination. Unfortunately this did not change things:
smartmon_device_info{disk="/dev/sda",type="sat",model_family="Western Digital Red",model_name="WDC WD40EFRX-68WT0N0",device_model="",serial_number="WD-XXX",firmware_version="82.00A82",vendor="",product="",revision="",lun_id=""} 1

Could you point me in any directions? Thanks a lot!
Marcel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions