diff --git a/collect_fake_json.sh b/collect_fake_json.sh new file mode 100755 index 0000000..87ed1c7 --- /dev/null +++ b/collect_fake_json.sh @@ -0,0 +1,6 @@ +#! /bin/bash + +for device in $(smartctl --scan | awk '{ print $1}') +do + smartctl --json --xall $device | jq > $(basename $device).json +done diff --git a/smartctl_exporter.yaml b/smartctl_exporter.yaml index 7740083..798037b 100644 --- a/smartctl_exporter.yaml +++ b/smartctl_exporter.yaml @@ -1,7 +1,7 @@ smartctl_exporter: bind_to: "[::1]:9633" url_path: "/metrics" - fake_json: no + fake_json: yes smartctl_location: /usr/sbin/smartctl collect_not_more_than_period: 20s devices: