Created
July 8, 2025 09:50
-
-
Save varuzhnikov/17314f164874766c32510fa461bcbf4e to your computer and use it in GitHub Desktop.
Systemd service for smartctl_exporter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=smartctl_exporter for Prometheus | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/smartctl_exporter \ | |
--smartctl.path=/usr/sbin/smartctl \ | |
--smartctl.device=/dev/nvme0n1 \ | |
--smartctl.device=/dev/nvme1n1 \ | |
--web.listen-address=:9633 | |
Restart=on-failure | |
User=root | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment