Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy smartctl_exporter on router #4895

Closed
onedr0p opened this issue Feb 24, 2023 · 1 comment
Closed

Deploy smartctl_exporter on router #4895

onedr0p opened this issue Feb 24, 2023 · 1 comment

Comments

@onedr0p
Copy link
Owner

onedr0p commented Feb 24, 2023

Deploying this requires VyOS to support setting args for containers.

https://vyos.dev/T4014

@onedr0p
Copy link
Owner Author

onedr0p commented Mar 19, 2023

I am unable to get this to work, looks like a issue reported here prometheus-community/smartctl_exporter#91

Commands

set container name smartctl-exporter allow-host-networks
set container name smartctl-exporter cap-add 'sys-admin'
set container name smartctl-exporter image 'quay.io/prometheuscommunity/smartctl-exporter:v0.9.1'
set container name smartctl-exporter memory '0'
set container name smartctl-exporter shared-memory '0'
set container name smartctl-exporter volume smartctl-exporter-devfs destination '/dev'
set container name smartctl-exporter volume smartctl-exporter-devfs mode 'ro'
set container name smartctl-exporter volume smartctl-exporter-devfs source '/dev'

Logs

ts=2023-03-19T14:55:06.897Z caller=main.go:90 level=info msg="Starting smartctl_exporter" version="(version=0.9.1, branch=HEAD, revision=a58c632ea8fa0f4f10a9ac9e941e610a7bb2efc1)"
ts=2023-03-19T14:55:06.897Z caller=main.go:91 level=info msg="Build context" build_context="(go=go1.19.3, user=root@fa2a9a938fb5, date=20221106-21:46:18)"
ts=2023-03-19T14:55:06.967Z caller=main.go:119 level=info msg="No devices specified, trying to load them automatically"
ts=2023-03-19T14:55:07.025Z caller=readjson.go:69 level=warn msg="S.M.A.R.T. output reading" err="exit status 2"
ts=2023-03-19T14:55:07.025Z caller=readjson.go:123 level=error msg="Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode"
ts=2023-03-19T14:55:07.025Z caller=readjson.go:155 level=error msg="Smartctl open device: /dev/nvme0 failed: Permission denied"
ts=2023-03-19T14:55:07.026Z caller=tls_config.go:232 level=info msg="Listening on" address=[::]:9633
ts=2023-03-19T14:55:07.026Z caller=tls_config.go:235 level=info msg="TLS is disabled." http2=false address=[::]:9633

@onedr0p onedr0p closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant