monit: overwrite to ensure no appending is done
This commit is contained in:
parent
a4ac6cf02a
commit
422fcf7237
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue