Collect SMART metrics for disks
This commit is contained in:
parent
6b95b75fc2
commit
d43d3433fa
2 changed files with 9 additions and 0 deletions
|
@ -96,3 +96,6 @@
|
||||||
[[inputs.ping]]
|
[[inputs.ping]]
|
||||||
urls = ["192.168.1.1", "1.1.1.1"]
|
urls = ["192.168.1.1", "1.1.1.1"]
|
||||||
ping_interval = 60.0
|
ping_interval = 60.0
|
||||||
|
|
||||||
|
[[inputs.smart]]
|
||||||
|
use_sudo = true
|
||||||
|
|
|
@ -2,3 +2,9 @@
|
||||||
import_role:
|
import_role:
|
||||||
name: rossmcdonald.telegraf
|
name: rossmcdonald.telegraf
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Let telegraf do smart stats
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/sudoers
|
||||||
|
line: "{{ telegraf_runas_user }} ALL=(ALL) NOPASSWD: /usr/sbin/smartctl"
|
||||||
|
become: true
|
||||||
|
|
Loading…
Reference in a new issue