monit: overwrite to ensure no appending is done

This commit is contained in:
Nico Schottelius 2021-09-05 11:24:40 +02:00
parent a4ac6cf02a
commit 422fcf7237
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ id=$(echo $to_monitor | awk -F . '{ print $2 }')
case "$daemon" in
osd)
depends="${depends}, ${to_monitor}-whoami"
cat >> "$conf" <<EOF
cat > "$conf" <<EOF
check file ${to_monitor}-whoami with path /var/lib/ceph/osd/ceph-${id}/whoami
if content != "${id}" then alert
EOF