产生corefile告警的


1. 在被管主机上敲如下命令修改corefile存放路径

ulimit‐c unlimited

echo /data/corefile/core_%e_%t > /proc/sys/kernel/core_pattern 

2. 重启agent

cd /usr/local/gse/agent/bin/

./gse_agent ‐‐reload

3.在主机监控中选择主机,点批量采集上报。等数据上来后运行下面corefile二进制文件(放在家目录下)

[root@localhost ~]# ./corefile

日常笔记-corefile告警_生成 corefiles

日常笔记-corefile告警_生成 corefiles_02

{

    "bk_app_code": "bk_fta_solutions",

    "bk_app_secret": "cf21b10e-2015-4a18-af80-1b35584736e4",

    "bk_username": "admin",

    "receiver": "andyliu@canway.net",

    "sender": "358892433@qq.com",

    "title": "This is a Test",

    "content": "<html>Welcome to Blueking</html>"

}