Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions smartmon.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Gather S.M.A.R.T. metrics to be picked up by prometheus node exporter

[Service]
ExecStart=bash -c "smartmon.sh | sponge /tmp/smartmon.prom"

[Install]
WantedBy=multi-user.target
8 changes: 8 additions & 0 deletions smartmon.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Gather S.M.A.R.T. metrics every minute to be picked up by prometheus node exporter

[Timer]
OnCalendar=*-*-* *:0/01:00

[Install]
WantedBy=timers.target