gen2brain / keepalived_exporter

Keepalived Prometheus Exporter
Apache License 2.0
44 stars 13 forks source link

Can not open /tmp/keepalived.data #12

Closed mdp1230 closed 7 months ago

mdp1230 commented 4 years ago

keepalived_exporter: open /tmp/keepalived.data: no such file or directory open /tmp/keepalived.stats is okay.

CentOS Linux release 7.5

nlameiras commented 3 years ago

Note: if SELinux is used (CentOS 7), it does not allow writing to this file. You can get around this with this preparation:

touch /tmp/keepalived.stats chmod go+w /tmp/keepalived.stats semanage fcontext -a -t keepalived_var_run_t /tmp/keepalived.stats restorecon /tmp/keepalived.stats

Now try sending the signal again.

source : https://serverfault.com/a/987592

gen2brain commented 7 months ago

Sorry, support for parsing text files is removed.