Skip to content

Instantly share code, notes, and snippets.

@stoneobscurity
Last active October 26, 2024 20:38
Show Gist options
  • Save stoneobscurity/71401199179b2b63f6d56981b1e493eb to your computer and use it in GitHub Desktop.
Save stoneobscurity/71401199179b2b63f6d56981b1e493eb to your computer and use it in GitHub Desktop.
scrutiny smart metrics on XCP-NG 8.3, see comments
host:
id: "hostname"
commands:
metrics_smartctl_bin: '/usr/sbin/smartctl'
@stoneobscurity
Copy link
Author

1] on the XCP-NG host, console as root:
mkdir /root/scrutiny

2]
cd /root/scrutiny

3] (adjust path for the newest release)
wget https://github.com/AnalogJ/scrutiny/releases/download/v0.8.1/scrutiny-collector-metrics-linux-amd64

4]
chmod +x scrutiny-collector-metrics-linux-amd64

5]
create /root/scrutiny/collector.yaml

6] test run
/root/scrutiny/scrutiny-collector-metrics-linux-amd64 run --config /root/scrutiny/collector.yaml --api-endpoint "http://ip.ad.dr.ess:8081"

7] add to crontab -e
30 3 * * * /root/scrutiny/scrutiny-collector-metrics-linux-amd64 run --config /root/scrutiny/collector.yaml --api-endpoint "http://ip.ad.dr.ess:8081"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment