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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
[
  {
    "id": "1",
    "ver": "1",
    "used": true,
    "source": "site_ssl",
    "title": "网站证书(SSL)到期",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "SSLTask"
    },
    "template": {
      "field": [
        {
          "attr": "project",
          "name": "网站",
          "type": "select",
          "default": "all",
          "items": [
            {
              "title": "所有网站",
              "value": "all"
            }
          ]
        },
        {
          "attr": "cycle",
          "name": "剩余天数",
          "type": "number",
          "suffix": "",
          "unit": "天",
          "default": 15
        }
      ],
      "sorted": [
        [
          "project"
        ],
        [
          "cycle"
        ]
      ]
    },
    "default": {
      "project": "all",
      "cycle": 15
    },
    "advanced_default": {
      "number_rule": {
        "total": 2
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook",
      "sms"
    ],
    "unique": false,
    "tags": ["site", "common", "ssl"],
    "description": "定时检查网站证书(SSL)是否即将到期,如果即将到期则发送告警通知给管理员"
  },
  {
    "id": "2",
    "ver": "1",
    "used": true,
    "source": "site_end_time",
    "title": "网站到期",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "SiteEndTimeTask"
    },
    "template": {
      "field": [
        {
          "attr": "cycle",
          "name": "剩余天数",
          "type": "number",
          "unit": "天",
          "suffix": "",
          "default": 7
        }
      ],
      "sorted": [
        [
          "cycle"
        ]
      ]
    },
    "default": {
      "cycle": 7
    },
    "advanced_default": {
      "number_rule": {
        "total": 2
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook"
    ],
    "unique": true,
    "tags": ["site"],
    "description": "定时检查设置有过期时间的网站是否临近过期,如果临近过期则发送告警通知给管理员"
  },
  {
    "id": "3",
    "ver": "1",
    "used": true,
    "source": "panel_pwd_end_time",
    "title": "面板密码有效期",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "PanelPwdEndTimeTask"
    },
    "template": {
      "field": [
        {
          "attr": "cycle",
          "name": "剩余天数",
          "type": "number",
          "unit": "天",
          "suffix": "",
          "default": 15
        }
      ],
      "sorted": [
        [
          "cycle"
        ]
      ]
    },
    "default": {
      "cycle": 15
    },
    "advanced_default": {
      "number_rule": {
        "total": 2
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook"
    ],
    "unique": true,
    "tags": ["panel"],
    "description": "定时检查设置面板密码过期时间,如果临近过期则发送告警通知给管理员"
  },
  {
    "id": "4",
    "ver": "1",
    "used": true,
    "source": "ssh_login_error",
    "title": "SSH登录失败告警",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "SSHLoginErrorTask"
    },
    "template": {
      "field": [
        {
          "attr": "cycle",
          "name": "触发条件",
          "type": "number",
          "unit": "分钟",
          "suffix": "内,",
          "default": 30
        },
        {
          "attr": "count",
          "name": "登录失败",
          "type": "number",
          "unit": "次",
          "suffix": "",
          "default": 3
        },
        {
          "attr": "interval",
          "name": "间隔时间",
          "type": "number",
          "unit": "秒",
          "suffix": "后再次监控检测条件",
          "default": 600
        }
      ],
      "sorted": [
        [
          "cycle",
          "count"
        ],
        [
          "interval"
        ]
      ]
    },
    "default": {
      "cycle": 30,
      "count": 3,
      "interval": 600
    },
    "advanced_default": {
      "number_rule": {
        "day_num": 3
      },
      "time_rule": {
        "send_interval": 600
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook"
    ],
    "unique": true,
    "tags": ["system", "common", "safe"],
    "description": "定期扫描系统中的SSH登录日志,检测频繁失败的登录的异常登录行为,并在发现异常时及时触发告警通知,帮助发现潜在的安全威胁",
    "is_pro": true
  },
  {
    "id": "5",
    "ver": "1",
    "used": true,
    "source": "services",
    "title": "服务停止告警",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "ServicesTask"
    },
    "template": {
      "field": [
        {
          "attr": "project",
          "name": "通知类型",
          "type": "select",
          "default": null,
          "items": [
          ]
        },
        {
          "attr": "count",
          "name": "进程守护",
          "type": "select",
          "suffix": "",
          "default": 1,
          "disabled": true,
          "items": [
            {
              "title": "自动尝试重启项目",
              "value": 1
            },
            {
              "title": "自动尝试重启项目",
              "value": 2
            }
          ]
        },
        {
          "attr": "interval",
          "name": "间隔时间",
          "type": "number",
          "unit": "秒",
          "suffix": "后再次监控检测条件",
          "default": 600
        }
      ],
      "sorted": [
        [
          "project"
        ],
        [
          "count"
        ],
        [
          "interval"
        ]
      ]
    },
    "default": {
      "project": "",
      "count": 2,
      "interval": 600
    },
    "advanced_default": {
      "number_rule": {
        "day_num": 3
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook",
      "sms"
    ],
    "unique": false,
    "tags": ["soft", "system", "common"],
    "description": "定时监控系统中的运行状态,如果发现服务停止,则及时触发告警通知,可设置尝试重启,帮助服务器快速恢复到可用状态"
  },
  {
    "id": "6",
    "ver": "1",
    "used": true,
    "source": "panel_safe_push",
    "title": "面板安全告警",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "PanelSafePushTask"
    },
    "template": {
      "field": [
        {
          "attr": "help",
          "name": "告警内容",
          "type": "help",
          "unit": "",
          "style": {
            "margin-top": "6px"
          },
          "list": [
            "面板用户变更、面板日志删除、面板开启开发者"
          ],
          "suffix": "",
          "default": 600
        }
      ],
      "sorted": [
        [
          "help"
        ]
      ]
    },
    "default": {
    },
    "advanced_default": {
      "number_rule": {
        "day_num": 3
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook"
    ],
    "unique": true,
    "tags": ["panel", "common", "safe"],
    "description": "定期检查面板的安全状态,如用户变更、日志删除、开启开发者模式等,及时触发告警通知,帮助管理员及时处理安全风险"
  },
  {
    "id": "7",
    "ver": "1",
    "used": true,
    "source": "ssh_login",
    "title": "SSH登录告警",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "SSHLoginTask"
    },
    "template": {
      "field": [
      ],
      "sorted": [
      ]
    },
    "default": {
    },
    "advanced_default": {
      "number_rule": {
        "day_num": 3
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook"
    ],
    "unique": true,
    "tags": ["system", "common", "safe"],
    "description": "当出现root用户异常登录时,及时触发告警通知,帮助管理员及时处理安全风险"
  },
  {
    "id": "8",
    "ver": "1",
    "used": true,
    "source": "panel_login",
    "title": "面板登录告警",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "PanelLoginTask"
    },
    "template": {
      "field": [
      ],
      "sorted": [
      ]
    },
    "default": {
    },
    "advanced_default": {
      "number_rule": {
        "day_num": 0
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook",
      "sms"
    ],
    "unique": true,
    "tags": ["panel", "common", "safe"],
    "description": "当出现面板异常登录时,及时触发告警通知"
  },
  {
    "id": "9",
    "ver": "1",
    "used": true,
    "source": "project_status",
    "title": "项目停止告警",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "ProjectStatusTask"
    },
    "template": {
      "field": [
        {
          "attr": "cycle",
          "name": "项目类型",
          "type": "select",
          "default": 1,
          "items": [
            {
              "title": "Java项目",
              "value": 1
            },
            {
              "title": "Node项目",
              "value": 2
            },
            {
              "title": "Go项目",
              "value": 3
            },
            {
              "title": "Python项目",
              "value": 4
            },
            {
              "title": "其他项目",
              "value": 5
            }
          ]
        },
        {
          "attr": "project",
          "name": "项目名称",
          "type": "select",
          "default": null,
          "all_items": null,
          "items": [
          ]
        },
        {
          "attr": "interval",
          "name": "间隔时间",
          "type": "number",
          "unit": "秒",
          "suffix": "后再次监控检测条件",
          "default": 600
        },
        {
          "attr": "count",
          "name": "自动重启",
          "type": "radio",
          "suffix": "",
          "default": 1,
          "items": [
            {
              "title": "自动尝试重启项目",
              "value": 1
            },
            {
              "title": "不做重启尝试",
              "value": 2
            }
          ]
        }
      ],
      "sorted": [
        [
          "cycle"
        ],
        [
          "project"
        ],
        [
          "interval"
        ],
        [
          "count"
        ]
      ]
    },
    "default": {
      "cycle": 1,
      "project": "",
      "interval": 600,
      "count": 2
    },
    "advanced_default": {
      "number_rule": {
        "day_num": 3
      }
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook"
    ],
    "unique": false,
    "tags": ["site", "common"],
    "description": "定期检查网站项目运行状态,当项目非人为停止时,及时触发告警通知"
  },
  {
    "id": "10",
    "ver": "1",
    "used": true,
    "source": "panel_update",
    "title": "面板更新提醒",
    "load_cls": {
      "load_type": "path",
      "cls_path": "mod.base.push_mod.site_push",
      "name": "PanelUpdateTask"
    },
    "template": {
      "field": [
      ],
      "sorted": [
      ]
    },
    "default": {
    },
    "advanced_default": {
    },
    "send_type_list": [
      "wx_account",
      "dingding",
      "feishu",
      "mail",
      "weixin",
      "webhook"
    ],
    "unique": true,
    "tags": ["panel", "common"],
    "description": "定期检查面板更新情况,当面板有新版本时,触发告警通知(面板的每个新版本会触发一次)"
  }
]