forked from infra/ansible
Zabbix: Fix cronjob that generates the SSH target list
This commit is contained in:
parent
f29d91d7af
commit
f3a05e1b72
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ TMP_FILE=$(mktemp)
|
|||
if [ -s "$TMP_FILE" ]; then
|
||||
mv "$TMP_FILE" /etc/zabbix/ssh-targets.txt
|
||||
chmod 644 /etc/zabbix/ssh-targets.txt
|
||||
# creating and moving a file breaks selinux, so set it to match a file the agent can already read
|
||||
chcon --reference=/etc/zabbix/fedora.psk /etc/zabbix/ssh-targets.txt
|
||||
else
|
||||
rm -f "$TMP_FILE"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue