Skip to content

Commit

Permalink
common/mqtt-monitoring: sleep 1s after alerting for a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunsi committed Apr 4, 2024
1 parent 750dd43 commit 5359a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/mqtt-monitoring/plugins/disk_space_usage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ then
# only alert if there is more than 1GB used
if [[ "$diskspace" -gt 1073741824 ]]
then
voc2alert "info" "disk" "$(printf '%7s %s' "$(echo "$diskspace / 1073741824" | bc)G" "$path")"
voc2alert "info" "disk" "$(printf '%7s %s' "$(echo "$diskspace / 1073741824" | bc)G" "$path")" && sleep 1
fi
done
fi
Expand Down

0 comments on commit 5359a6e

Please sign in to comment.