Skip to content

Commit

Permalink
feat: 检查Agent、bkmonitorbeat异常状态并发送邮件告知运维
Browse files Browse the repository at this point in the history
  • Loading branch information
Huayeaaa committed Jan 16, 2025
1 parent 7c4aeb0 commit 5b5e789
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/node_man/periodic_tasks/send_mail_to_maintainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def send_mail_to_maintainer(task_id):
bk_biz_ids = models.Host.objects.filter(bk_host_id__in=bulk_terminated_agent).values_list(
"bk_biz_id", flat=True
)

agent_counter.update(collections.Counter(bk_biz_ids))

for chunk_size in range(0, terminated_plugin.count(), constants.PROC_CHUNK_SIZE):
Expand Down

0 comments on commit 5b5e789

Please sign in to comment.