Skip to content

Commit 201b5a7

Browse files
committed
Fix permissions of the SMART metrics textfiles
1 parent d70c233 commit 201b5a7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

etc/kayobe/ansible/smartmon-tools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
user: root
4747
minute: "*/5"
4848
job: >-
49-
/usr/local/bin/{{ item }}.sh >
49+
umask 0022 && /usr/local/bin/{{ item }}.sh >
5050
/var/lib/docker/volumes/textfile/_data/{{ item }}.prom.temp &&
5151
mv -f /var/lib/docker/volumes/textfile/_data/{{ item }}.prom.temp /var/lib/docker/volumes/textfile/_data/{{ item }}.prom
5252
loop:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes a permission issue with node exporter's textfile collector metrics
5+
for SMART monitoring of disk drives.

0 commit comments

Comments
 (0)