{"id":558,"date":"2021-06-28T11:29:25","date_gmt":"2021-06-28T03:29:25","guid":{"rendered":"https:\/\/twocups.cn\/?p=558"},"modified":"2021-06-28T19:01:43","modified_gmt":"2021-06-28T11:01:43","slug":"40","status":"publish","type":"post","link":"https:\/\/twocups.cn\/index.php\/2021\/06\/28\/40\/","title":{"rendered":"\u3010Zabbix\u7cfb\u5217\u3011\u7279\u522b\u7ae001\uff1azabbix-server\u542f\u52a8\u5931\u8d25\u6392\u9519\u8bb0\u5f55"},"content":{"rendered":"\n<p><img width=\"80\" src=\"https:\/\/twocups.cn\/wp-content\/uploads\/2019\/12\/logo%E6%A8%AA.png\" alt=\"\">\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\uff1a<a href=\"https:\/\/twocups.cn\/index.php\/2021\/06\/28\/40\/\"><\/a><a href=\"https:\/\/twocups.cn\/index.php\/2021\/06\/28\/40\/\">https:\/\/twocups.cn\/index.php\/2021\/06\/28\/40\/<\/a><\/p>\n\n\n\n<h2>\u5199\u5728\u524d\u9762<\/h2>\n\n\n\n<p>\u8fd9\u4e00\u7ae0\u6bd4\u8f83\u7279\u6b8a\uff0c\u56e0\u4e3a\u5b83\u4e0d\u662f Zabbix \u7684\u5b89\u88c5\u548c\u90e8\u7f72\u6559\u7a0b\uff0c\u800c\u662f\u6211\u7684\u4e00\u6b21\u542f\u52a8 zabbix-server \u5931\u8d25\u7684\u6392\u9519\u7ecf\u5386\u8bb0\u5f55\u3002\u8fd9\u4e2a\u9519\u8bef\u6211\u5728\u7f51\u4e0a\u627e\u4e86\u597d\u4e86\uff0c\u90fd\u6ca1\u6709\u76f4\u63a5\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u53ea\u6709\u4e00\u4e2a\u63d0\u95ee\u548c\u6211\u7684\u60c5\u51b5\u5f88\u50cf\uff0c\u4f46\u662f\u4e0b\u9762\u6ca1\u6709\u56de\u7b54\u3002\u6240\u4ee5\u6211\u81ea\u5df1\u8bb0\u5f55\u4e00\u4e0b\u6211\u8fd9\u6b21 zabbix-server \u542f\u52a8\u5931\u8d25\u7684\u60c5\u51b5\u4ee5\u53ca\u89e3\u51b3\u65b9\u6cd5\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u9047\u5230\u540c\u6837\u60c5\u51b5\u7684\u4eba\u3002\u5982\u679c\u4e0d\u611f\u5174\u8da3\uff0c\u53ef\u4ee5\u76f4\u63a5\u8df3\u8fc7\u8fd9\u7ae0\u3002<\/p>\n\n\n\n<h2>\u914d\u7f6e\u6587\u4ef6\u586b\u5199\u9519\u8bef<\/h2>\n\n\n\n<p>\u5728\u6211\u51c6\u5907\u5c06 Zabbix \u8fde\u63a5\u5230 elasticsearch\uff0c\u4ece\u800c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6 \/etc\/zabbix\/zabbix_server.conf \u7684\u65f6\u5019\uff0c\u4e0d\u5c0f\u5fc3\u5c06<\/p>\n\n\n\n<p>elasticsearch \u5730\u5740\u4e2d\u7684\u201clocalhost\u201d\u62fc\u6210\u4e86\u201clocalhsot\u201d\u3002\u4e4b\u540e\u6211\u91cd\u542f zabbix-server \u53ca\u5176\u76f8\u5173\u7ec4\u4ef6\u7684\u65f6\u5019\u81ea\u7136\u662f\u5931\u8d25\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm<\/pre>\n\n\n\n<p>\u6bd5\u7adf\u8fd9\u6b21\u91cd\u542f zabbix-server \u4fee\u6539\u7684\u5730\u65b9\u4e0d\u591a\uff0c\u6240\u4ee5\u6211\u5f88\u5feb\u5c31\u53d1\u73b0\u81ea\u5df1\u62fc\u9519\u4e86\u3002\u5f53\u6211\u5c06\u62fc\u9519\u7684\u5730\u65b9\u4fee\u6539\u597d\uff0c\u5e76\u518d\u6b21\u91cd\u542f zabbix-server \u7684\u65f6\u5019\uff0c\u5374\u5361\u4f4f\u4e86\u3002shell \u4e5f\u6ca1\u6709\u62a5\u9519\uff0c\u5c31\u662f\u5361\u4f4f\u4e86\uff0c\u4ec0\u4e48\u90fd\u6ca1\u663e\u793a\u3002\u90a3\u4e48\u6211\u51b3\u5b9a\u5148\u770b\u770b\u54ea\u91cc\u51fa\u9519\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl status zabbix-server.service -l<br>\u200b<br>\u62a5\u9519\uff1a<br>\u25cf zabbix-server.service - Zabbix Server<br> &nbsp; Loaded: loaded (\/usr\/lib\/systemd\/system\/zabbix-server.service; enabled; vendor preset: disabled)<br> &nbsp; Active: deactivating (stop-sigterm) since Wed 2021-06-16 16:01:21 CST; 33min ago<br>  Process: 25082 ExecStop=\/bin\/kill -SIGTERM $MAINPID (code=exited, status=0\/SUCCESS)<br>  Process: 18684 ExecStart=\/usr\/sbin\/zabbix_server -c $CONFFILE (code=exited, status=0\/SUCCESS)<br> Main PID: 18688 (zabbix_server)<br> &nbsp; CGroup: \/system.slice\/zabbix-server.service<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018688 \/usr\/sbin\/zabbix_server -c \/etc\/zabbix\/zabbix_server.conf<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018699 \/usr\/sbin\/zabbix_server: configuration syncer #1 [terminated<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018712 \/usr\/sbin\/zabbix_server: housekeeper #1 [terminated] &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018713 \/usr\/sbin\/zabbix_server: timer #1 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018715 \/usr\/sbin\/zabbix_server: http poller #1 [terminated] &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018717 \/usr\/sbin\/zabbix_server: discoverer #1 [terminated] &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018718 \/usr\/sbin\/zabbix_server: history syncer #1 [processed 0 values, 0 triggers in 0.000027 sec, syncing history<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018719 \/usr\/sbin\/zabbix_server: history syncer #2 [processed 0 values, 0 triggers in 0.000016 sec, syncing history<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018722 \/usr\/sbin\/zabbix_server: history syncer #3 [processed 0 values, 0 triggers in 0.000013 sec, syncing history<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018723 \/usr\/sbin\/zabbix_server: history syncer #4 [processed 0 values, 0 triggers in 0.000016 sec, syncing history<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018725 \/usr\/sbin\/zabbix_server: escalator #1 [terminated] &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018727 \/usr\/sbin\/zabbix_server: proxy poller #1 [terminated] &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018728 \/usr\/sbin\/zabbix_server: self-monitoring #1 [terminated] <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018729 \/usr\/sbin\/zabbix_server: task manager #1 [terminated] &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018731 \/usr\/sbin\/zabbix_server: poller #1 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018732 \/usr\/sbin\/zabbix_server: poller #2 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018733 \/usr\/sbin\/zabbix_server: poller #3 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018735 \/usr\/sbin\/zabbix_server: poller #4 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018736 \/usr\/sbin\/zabbix_server: poller #5 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018737 \/usr\/sbin\/zabbix_server: unreachable poller #1 [terminated<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018738 \/usr\/sbin\/zabbix_server: trapper #1 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018739 \/usr\/sbin\/zabbix_server: trapper #2 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018740 \/usr\/sbin\/zabbix_server: trapper #3 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018741 \/usr\/sbin\/zabbix_server: trapper #4 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018742 \/usr\/sbin\/zabbix_server: trapper #5 [terminated] &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018743 \/usr\/sbin\/zabbix_server: icmp pinger #1 [terminated] &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018744 \/usr\/sbin\/zabbix_server: alert manager #1 [terminated] &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018745 \/usr\/sbin\/zabbix_server: alerter #1 started &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018746 \/usr\/sbin\/zabbix_server: alerter #2 started &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018747 \/usr\/sbin\/zabbix_server: alerter #3 started &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018749 \/usr\/sbin\/zabbix_server: preprocessing manager #1 [terminated<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018750 \/usr\/sbin\/zabbix_server: preprocessing worker #1 started <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018751 \/usr\/sbin\/zabbix_server: preprocessing worker #2 started <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018752 \/usr\/sbin\/zabbix_server: preprocessing worker #3 started <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018753 \/usr\/sbin\/zabbix_server: lld manager #1 [terminated] &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018754 \/usr\/sbin\/zabbix_server: lld worker #1 started &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u251c\u250018755 \/usr\/sbin\/zabbix_server: lld worker #2 started &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u2514\u250018756 \/usr\/sbin\/zabbix_server: alert syncer #1 [terminated] &nbsp; &nbsp;<br>\u200b<br>Jun 16 15:57:12 * systemd[1]: Starting Zabbix Server...<br>Jun 16 15:57:12 * systemd[1]: zabbix-server.service: Supervising process 18688 which is not our child. We'll most likely not notice when it exits.<br>Jun 16 15:57:12 * systemd[1]: Started Zabbix Server.<br>Jun 16 16:01:21 * systemd[1]: Stopping Zabbix Server...<\/pre>\n\n\n\n<p>\u6211\u5c1d\u8bd5\u7528 kill \u6307\u4ee4\u5173\u95ed\u8fdb\u7a0b18688\uff0c\u4f46\u662f\u6ca1\u6709\u7528\uff0c\u5b83\u4ecd\u7136\u5b58\u5728\u3002\u4e8e\u662f\uff0c\u6211\u67e5\u4e86\u4e0b\u8fd9\u4e2a18688\u8fdb\u7a0b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/proc\/18688\/status<br>\u200b<br>\u663e\u793a\uff1a<br>Name: &nbsp; zabbix_server<br>NStgid: 18688<br>NSpid:  18688<br>NSsid:  18685<br>State:  S (sleeping)<br>Tgid: &nbsp; 18688<br>Pid: &nbsp;  18688<br>PPid: &nbsp; 1<br>TracerPid: &nbsp; &nbsp;  0<br>Uid: &nbsp;  991 &nbsp; &nbsp; 991 &nbsp; &nbsp; 991 &nbsp; &nbsp; 991<br>Gid: &nbsp;  988 &nbsp; &nbsp; 988 &nbsp; &nbsp; 988 &nbsp; &nbsp; 988<br>FDSize: 64<br>Groups: 988 <br>VmPeak: &nbsp; 160968 kB<br>VmSize: &nbsp; 160964 kB<br>VmLck: &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>VmPin: &nbsp; &nbsp; &nbsp; &nbsp; 0 kB<br>VmHWM: &nbsp; &nbsp;  3952 kB<br>VmRSS: &nbsp; &nbsp;  3952 kB<br>VmData: &nbsp; &nbsp; 1084 kB<br>VmStk: &nbsp; &nbsp; &nbsp; 132 kB<br>VmExe: &nbsp; &nbsp;  3304 kB<br>VmLib: &nbsp; &nbsp; 19520 kB<br>VmPTE: &nbsp; &nbsp; &nbsp; 248 kB<br>VmSwap: &nbsp; &nbsp; &nbsp;  0 kB<br>Threads: &nbsp; &nbsp; &nbsp;  1<br>SigQ: &nbsp; 9\/319773<br>SigPnd: 0000000000000000<br>ShdPnd: 0000000000004000<br>SigBlk: 0000000000014000<br>SigIgn: 0000000000001000<br>SigCgt: 0000000180016ecf<br>CapInh: 0000000000000000<br>CapPrm: 0000000000000000<br>CapEff: 0000000000000000<br>CapBnd: 0000001fffffffff<br>Seccomp: &nbsp; &nbsp; &nbsp;  0<br>Cpus_allowed: &nbsp; ff<br>Cpus_allowed_list: &nbsp; &nbsp;  0-7<br>Mems_allowed: &nbsp; 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001<br>Mems_allowed_list: &nbsp; &nbsp;  0<br>voluntary_ctxt_switches: &nbsp; &nbsp; &nbsp;  75<br>nonvoluntary_ctxt_switches: &nbsp; &nbsp; 3<\/pre>\n\n\n\n<p>\u6211\u4eec\u4ece\u7aef\u53e3\u4fe1\u606f\u53ef\u4ee5\u770b\u5230\uff0c\u7236\u8fdb\u7a0b\uff08PPid\uff09\u662f1\uff0c\u90a3\u4e48\u5b83\u5927\u6982\u7387\u5df2\u7ecf\u662f\u50f5\u5c38\u8fdb\u7a0b\u4e86\u3002<\/p>\n\n\n\n<p>\u4e8e\u662f\u6211\u53c8\u770b\u4e86\u4e00\u4e0b Zabbix \u7684\u65e5\u5fd7\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/var\/log\/zabbix\/zabbix_server.log | tail -n 5<br>\u200b<br>\u663e\u793a\uff1a<br>18722:20210616:164806.736 cannot send data to elasticsearch: Could not resolve host: localhsot; Name or service not known<br>18719:20210616:164806.742 cannot send data to elasticsearch: Could not resolve host: localhsot; Name or service not known<br>18719:20210616:164806.742 cannot send data to elasticsearch: Could not resolve host: localhsot; Name or service not known<br>18718:20210616:164806.746 cannot send data to elasticsearch: Could not resolve host: localhsot; Name or service not known<br>18718:20210616:164806.746 cannot send data to elasticsearch: Could not resolve host: localhsot; Name or service not known<\/pre>\n\n\n\n<p>\u6211\u53c8\u5237\u65b0\u4e86\u51e0\u6b21\uff0c\u65f6\u95f4\u4fe1\u606f\u4e00\u76f4\u5728\u53d8\uff0c\u8bf4\u660e\u8fd9\u4e2a\u9519\u8bef\u4e00\u76f4\u5728\u53d1\u751f\uff0c\u4e5f\u5c31\u662f\u8bf4 zabbix-server \u4e00\u76f4\u5728\u5c1d\u8bd5\u5c06\u6570\u636e\u53d1\u9001\u5230 elastcisearch\uff0c\u4f46\u4e00\u76f4\u5931\u8d25\u3002\u5931\u8d25\u7684\u539f\u56e0\u5f88\u660e\u663e\uff0c\u65e5\u5fd7\u91cc \u80fd\u770b\u7684\u51fa\u6765\uff0c\u5c31\u662f\u56e0\u4e3a\u6211\u4e4b\u524d\u201clocalhost\u201d\u62fc\u9519\u4e86\u3002\u4f46\u6211\u5728\u6700\u5f00\u59cb\u542f\u52a8\u5931\u8d25\u4e00\u6b21\u4e4b\u540e\u5c31\u6539\u56de\u6765\u4e86\uff0c\u6240\u4ee5\u4e0d\u5e94\u8be5\u5230\u73b0\u5728\u8fd8\u5728\u7528\u62fc\u9519\u7684\u201clocalhsot\u201d\u53bb\u5411 elasticsearch \u8bf7\u6c42\u3002\u96be\u9053\u662f zabbix-server \u6ca1\u6709\u610f\u8bc6\u5230\u914d\u7f6e\u6587\u4ef6\u88ab\u4fee\u6539\u4e86\uff0c\u9700\u8981\u5237\u65b0\u4e00\u4e0b\uff1f\u4f46\u662f\u91cd\u542f\u672c\u8eab\u5c31\u662f\u4e00\u79cd\u5237\u65b0\uff0c\u6240\u4ee5\u4e00\u5b9a\u662f\u4ec0\u4e48\u5176\u4ed6\u5730\u65b9\u51fa\u9519\u4e86\u3002<\/p>\n\n\n\n<p>\u4e8e\u662f\uff0c\u6211\u60f3\u5148\u628a\u4e0d\u505c\u5411 elasticsearch \u8fdb\u884c\u7684\u8bf7\u6c42\u5148\u505c\u4e86\u3002\u56de\u5934\u770b\u4e0a\u9762\u7684 zabbix-server \u72b6\u6001\u4fe1\u606f\uff0c\u660e\u663e\u80fd\u770b\u7684\u51fa\u6765\u662f\u6709\u56db\u6761\u8fdb\u7a0b\u5728\u5411 elasticsearch \u8bf7\u6c42\u540c\u6b65\u5386\u53f2\u6570\u636e\u7684\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u251c\u250018718 \/usr\/sbin\/zabbix_server: history syncer #1 [processed 0 values, 0 triggers in 0.000027 sec, syncing history<br>\u251c\u250018719 \/usr\/sbin\/zabbix_server: history syncer #2 [processed 0 values, 0 triggers in 0.000016 sec, syncing history<br>\u251c\u250018722 \/usr\/sbin\/zabbix_server: history syncer #3 [processed 0 values, 0 triggers in 0.000013 sec, syncing history<br>\u251c\u250018723 \/usr\/sbin\/zabbix_server: history syncer #4 [processed 0 values, 0 triggers in 0.000016 sec, syncing history<\/pre>\n\n\n\n<p>\u4e8e\u662f\u6211\u60f3\u901a\u8fc7 kill \u6307\u4ee4\u7ed3\u675f\u8fd9\u56db\u6761\u8fdb\u7a0b\uff0c\u4f46\u662f\u7ed3\u675f\u4e0d\u6389\u3002\u6211\u53c8\u53bb\u770b\u4e86\u8fd9\u56db\u6761\u8fdb\u7a0b\u7684\u72b6\u6001\uff0c\u679c\u7136\u90fd\u662f\u50f5\u5c38\u8fdb\u7a0b\u3002\u4e8e\u662f\u6211\u5c06\u8fd9\u56db\u6761\u8fdb\u7a0b\u8fde\u540c zabbix-server \u7684\u4e3b\u8fdb\u7a0b\u5168\u90e8\u7528\u201ckill -9\u201d\u5f3a\u5236\u7ed3\u675f\u4e86\u3002\u4f46\u662f\u8fd8\u662f\u65e0\u6cd5\u91cd\u542f zabbix-server\u3002<\/p>\n\n\n\n<p>\u8fd9\u65f6\u5019\uff0c\u6211\u6000\u7591\u53ef\u80fd\u4e0d\u5355\u5355\u662f Zabbix \u5c42\u9762\u7684\u95ee\u9898\u4e86\uff0c\u4e8e\u662f\u6211\u53bb\u67e5\u770b\u4e86\u7cfb\u7edf\u65e5\u5fd7\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/var\/log\/messages<\/pre>\n\n\n\n<p>\u6700\u7ec8\u53d1\u73b0\u7cfb\u7edf\u4e2d\u7684\u7a0b\u5e8f Control Groups\uff08\u7b80\u79f0 cgroups\uff0c\u662f\u4e00\u4e2a\u57fa\u4e8e\u5185\u6838\u7684\u8fdb\u7a0b\u7ea7\u8d44\u6e90\u9694\u79bb\u5de5\u5177\uff09\u4e00\u76f4\u5728\u91cd\u542f\u4f46\u662f\u5931\u8d25\u3002\u800c\u62a5\u9519\u7684\u539f\u56e0\u662f\u7531\u4e8e\u201cDevice or resource busy\u201d\u800c\u5bfc\u81f4\u6709\u4e00\u5757\u5185\u5b58\u65e0\u6cd5\u6302\u8f7d\u3002<\/p>\n\n\n\n<p>\u4e8e\u662f\uff0c\u6211\u6253\u7b97\u6e05\u7406\u4e00\u4e0bcgroups\uff0c\u7ed3\u679c\u53c8\u62a5\u9519\u4e86\uff0c\u7406\u7531\u8fd8\u662f\u4e00\u6837\u7684\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cgclear<br>\u200b<br>\u62a5\u9519\uff1a<br>cgclear failed with Device or resource busy<\/pre>\n\n\n\n<p>\u6240\u4ee5\uff0c\u6211\u6253\u7b97\u5c06\u90a3\u5757\u6302\u8f7d\u4e0d\u4e0a\u7684\u5185\u5b58\u5148\u53d6\u4e0b\u6765\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">umount \/\u5185\u5b58\u5730\u5740<br>\u200b<br>\u62a5\u9519\uff1a<br>\/\u5185\u5b58\u5730\u5740 Device or resource busy<\/pre>\n\n\n\n<p>\u4e8e\u662f\uff0c\u6211\u60f3\u770b\u770b\u5230\u5e95\u662f\u8c01\u5728\u5360\u7528\u8fd9\u5757\u5185\u5b58\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">fuser -cu \/\u5185\u5b58\u5730\u5740<\/pre>\n\n\n\n<p>\u627e\u5230\u4ee5\u540e\uff0c\u5148\u95ee\u95ee\u5468\u56f4\u6709\u6ca1\u6709\u4eba\u5728\u7528\u8fd9\u4e2a\u8fdb\u7a0b\uff0c\u786e\u8ba4\u4e4b\u540e\u6211\u5c06\u8fd9\u4e2a\u8fdb\u7a0b\u7ed3\u675f\u4e86\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u987a\u5229\u53d6\u4e0b\u8fd9\u4e2a\u4e4b\u524d\u88ab\u5360\u7528\u7684\u5185\u5b58\u3002\u4e4b\u540e\uff0c\u6211\u6e05\u7406\u4e86 cgroups\uff0c\u5e76\u4e14\u91cd\u542f\u4e86 cgconfig \u670d\u52a1\u3002\uff08\u522b\u5fd8\u4e86\u4e8b\u540e\u81ea\u5df1\u628a\u5185\u5b58\u6302\u8f7d\u56de\u53bb\uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">umount \/\u5185\u5b58\u5730\u5740<br>cgclear<br>service cgconfig restart<\/pre>\n\n\n\n<p>\u4e4b\u540e\uff0ccgroups \u5c31\u6b63\u5e38\u4e86\u3002\u8fd9\u65f6\u6211\u518d\u53bb\u542f\u52a8 zabbix-server\uff0c \u4e5f\u80fd\u6b63\u5e38\u8fd0\u884c\u4e86\u3002<\/p>\n\n\n\n<h2>\u603b\u7ed3\u5206\u6790<\/h2>\n\n\n\n<p>\u8fd9\u6b21\u7684\u6392\u9519\u8fd8\u662f\u86ee\u6709\u4ee3\u8868\u6027\u7684\uff0c\u56e0\u4e3a\u4e0d\u662f\u5355\u4e00\u7684\u539f\u56e0\uff0c\u800c\u662f\u4e00\u7cfb\u5217\u7684\u9519\u8bef\u9634\u5dee\u9633\u7c97\u5730\u78b0\u5230\u4e86\u4e00\u8d77\u800c\u5bfc\u81f4\u4e86 zabbix-server \u65e0\u6cd5\u6b63\u5e38\u542f\u52a8\uff0c\u751a\u81f3\u8fde\u62a5\u9519\u90fd\u6ca1\u6709\u3002\u8fd9\u6b21\u9519\u8bef\u6700\u5f00\u59cb\u7684\u539f\u56e0\u5176\u5b9e\u4e0d\u662f zabbix-server \u7684\u914d\u7f6e\u6587\u4ef6\u51fa\u9519\uff0c\u800c\u662f\u6709\u4e00\u4e2a\u8fdb\u7a0b\u5360\u7528\u4e86\u4e00\u5757\u5185\u5b58\u533a\u57df\uff0c\u5bfc\u81f4\u4e86\u8fdb\u7a0b\u7ea7\u8d44\u6e90\u7ba1\u7406\u5de5\u5177 Control Groups \u5361\u4f4f\u4e86\uff0c\u6240\u4ee5\u6211\u91cd\u65b0\u542f\u52a8 zabbix-server \u7684\u65f6\u5019\u624d\u53d1\u751f\u4e86\u4e00\u7cfb\u5217\u4e0d\u6b63\u5e38\u7684\u60c5\u51b5\u3002\u6211\u4e4b\u524d\u5728\u7f51\u4e0a\u67e5\u8d44\u6599\u7684\u65f6\u5019\uff0c\u6ca1\u6709\u53d1\u73b0\u6709\u4eba\u627e\u5230\u7c7b\u4f3c\u7684\u9519\u8bef\u539f\u56e0\uff0c\u6240\u4ee5\u5199\u4e86\u8fd9\u7bc7\u535a\u5ba2\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u4ee5\u540e\u9047\u5230\u540c\u6837\u60c5\u51b5\u7684\u4eba\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\uff1ahttps:\/\/twocups.cn\/index.php\/202 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":468,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[99],"tags":[122],"_links":{"self":[{"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/posts\/558"}],"collection":[{"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/comments?post=558"}],"version-history":[{"count":0,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/media\/468"}],"wp:attachment":[{"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/media?parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/categories?post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/twocups.cn\/index.php\/wp-json\/wp\/v2\/tags?post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}