Skip to content

readjson.go error "signal: segmentation fault" #284

Open
@4admin2root

Description

@4admin2root

run smartctl exporter in systemd

[Service] Type=simple ExecStart=/usr/local/bin/smartctl_exporter.sh User=root Group=root SyslogIdentifier=smartctl_exporter Restart=on-failure

file /usr/local/bin/smartctl_exporter.sh
#!/bin/bash /usr/local/bin/smartctl_exporter --web.listen-address=:19633 --smartctl.device="/dev/sda;cciss,0" --smartctl.device="/dev/sdb;cciss,0" --smartctl.device="/dev/sdc;cciss,0"

when run command "systemctl restart smartctl_exporter"
journalctl -u smartctl_exporter get as follow:

03-31T15:01:56.188Z level=WARN source=readjson.go:71 msg="S.M.A.R.T. output reading" err="signal: segmentation fault" device="/dev/sdc;cciss,0 (sdc_cciss_0)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions