{"id":11259,"date":"2022-12-13T14:27:25","date_gmt":"2022-12-13T06:27:25","guid":{"rendered":"https:\/\/www.lwops.cn\/?p=11259"},"modified":"2022-12-13T14:27:25","modified_gmt":"2022-12-13T06:27:25","slug":"zabbix%e6%8a%80%e6%9c%af%e5%88%86%e4%ba%ab-zabbix%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.lwops.cn\/index.php\/interflow\/technology\/11259","title":{"rendered":"zabbix\u6280\u672f\u5206\u4eab\u2014\u2014zabbix\u547d\u4ee4\u8be6\u89e3"},"content":{"rendered":"\n
\u5728\u4e0eIT\u8fd0\u7ef4\u7684\u5c0f\u4f19\u4f34\u4ea4\u6d41\u8fc7\u7a0b\u4e2d\u4e0d\u5c11\u4eba\u95ee\u5230\u4e86zabbix_agentd\u3001zabbix_proxy\u7b49\u547d\u4ee4\u7684\u5177\u4f53\u4f7f\u7528\u95ee\u9898\uff0c\u4e3a\u6b64\u8fd9\u4e00\u671f\u5185\u5bb9\u6211\u4eec\u6765\u804a\u804azabbix\u76f8\u5173\u547d\u4ee4\uff0c\u5176\u4e2d\u5305\u62eczabbix_server\u3001zabbix_proxy\u3001zabbix_get\u3001zabbix_agentd\u3001zabbix_agent2\uff0c\u4e00\u8d77\u770b\u770b\u5427~<\/p>\n\n\n\n
zabbix_server \u662f\u6574\u4e2a zabbix \u7cfb\u7edf\u7684\u6838\u5fc3\u7a0b\u5e8f\uff0c\u6570\u636e\u7684\u83b7\u53d6\u548c\u5904\u7406\u3001\u4e3b\u673a\u7684\u914d\u7f6e\u548c\u7ba1\u7406\u3001\u4e8b\u4ef6\u7684\u751f\u6210\u3001\u544a\u8b66\u7684\u53d1\u9001\u7b49\u90fd\u662f\u7531 zabbix_server \u5b8c\u6210\u7684\u3002\u5b83\u7684\u53c2\u6570\u5982\u4e0b\u3002<\/p>\n\n\n\n
\u2022-c, –config config-file\uff1a\u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u53d6\u4ee3\u9ed8\u8ba4\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n\n\n\n
\u2022-f, –foreground\uff1a\u5728\u524d\u53f0\u8fd0\u884c zabbix_server\u3002<\/p>\n\n\n\n
\u2022-R, –runtime-control runtime-option\uff1a\u6839\u636e\u914d\u7f6e\u7684\u9009\u9879\u6267\u884c\u7ba1\u7406\u529f\u80fd\u3002<\/p>\n\n\n\n
\u4e0a\u8ff0 runtime-control \u7684\u9009\u9879\u5982\u4e0b\u3002<\/p>\n\n\n\n
\uff081\uff09config_cache_reload\uff1a\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u7f13\u5b58\u3002<\/p>\n\n\n\n
\uff082\uff09housekeeper_execute\uff1a\u7acb\u5373\u6267\u884c Housekeeper \u64cd\u4f5c\u3002<\/p>\n\n\n\n
\uff083\uff09log_level_increase [=target]\uff1a\u63d0\u5347\u65e5\u5fd7\u7ea7\u522b\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8fdb\u7a0b\uff0c\u5219\u63d0\u5347\u6240\u6709\u8fdb\u7a0b\u7684\u65e5\u5fd7\u7ea7\u522b\u3002<\/p>\n\n\n\n
\uff084\uff09log_level_decrease [=target]\uff1a\u964d\u4f4e\u65e5\u5fd7\u7ea7\u522b\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8fdb\u7a0b\uff0c\u5219\u964d\u4f4e\u6240\u6709\u8fdb\u7a0b\u7684\u65e5\u5fd7\u7ea7\u522b\u3002<\/p>\n\n\n\n
\u2022-h, –help\uff1a\u663e\u793a\u5e2e\u52a9\u5185\u5bb9\u3002<\/p>\n\n\n\n
\u2022-V, –version\uff1a\u663e\u793a\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n\n\n\n
zabbix_proxy \u53ef\u4ee5\u6536\u96c6\u4ece\u8bbe\u5907\u4e0a\u83b7\u53d6\u7684\u76d1\u63a7\u6570\u636e\uff0c\u5e76\u628a\u8fd9\u4e9b\u6570\u636e\u53d1\u9001\u7ed9 zabbix_server\uff0c\u5176\u53c2\u6570\u5982\u4e0b\u3002<\/p>\n\n\n\n
\u2022-c, –config config-file\uff1a\u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u53d6\u4ee3\u9ed8\u8ba4\u7684\u914d\u7f6e\u6587\u4ef6\u3002 <\/p>\n\n\n\n
\u2022-f, –foreground\uff1a\u5728\u524d\u53f0\u8fd0\u884c zabbix_proxy\u3002 <\/p>\n\n\n\n
\u2022-R, –runtime-control runtime-option\uff1a\u6839\u636e\u914d\u7f6e\u7684\u9009\u9879\u6267\u884c\u7ba1\u7406\u529f\u80fd\u3002<\/p>\n\n\n\n
\u4e0a\u8ff0 runtime-control \u7684\u9009\u9879\u5982\u4e0b\u3002<\/p>\n\n\n\n
\uff081\uff09config_cache_reload\uff1a\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u7f13\u5b58\u3002<\/p>\n\n\n\n
\uff082\uff09housekeeper_execute\uff1a\u7acb\u5373\u6267\u884c Housekeeper \u64cd\u4f5c\u3002<\/p>\n\n\n\n
\uff083\uff09log_level_increase [=target]\u3002\uff1a\u63d0\u5347\u65e5\u5fd7\u7ea7\u522b\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8fdb\u7a0b\uff0c\u5219\u63d0\u5347\u6240\u6709\u8fdb\u7a0b\u7684\u65e5\u5fd7\u7ea7\u522b\u3002<\/p>\n\n\n\n
\uff084\uff09log_level_decrease [=target]\uff1a\u964d\u4f4e\u65e5\u5fd7\u7ea7\u522b\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8fdb\u7a0b\uff0c\u5219\u964d\u4f4e\u6240\u6709\u8fdb\u7a0b\u7684\u65e5\u5fd7\u7ea7\u522b\u3002<\/p>\n\n\n\n
\u2022-h, –help\uff1a\u663e\u793a\u5e2e\u52a9\u5185\u5bb9\u3002 <\/p>\n\n\n\n
\u2022-V, –version\uff1a\u663e\u793a\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n\n\n\n
zabbix_get \u662f\u4e00\u4e2a\u5b9e\u7528\u7684\u547d\u4ee4\u884c\u7a0b\u5e8f\uff0c\u7528\u4e8e\u4ece zabbix agent \u76f4\u63a5\u83b7\u53d6\u76d1\u63a7\u6570\u636e\uff0c\u5176\u53c2\u6570\u5982\u4e0b\u3002 <\/p>\n\n\n\n
\u2022-s, –host host-name-or-IP\uff1a\u6307\u5b9a\u4e3b\u673a\u7684\u4e3b\u673a\u540d\u6216 IP \u5730\u5740\u3002 <\/p>\n\n\n\n
\u2022-p, –port port-number\uff1a\u6307\u5b9a\u4e3b\u673a\u4e0a\u8fd0\u884c\u7684 Agent \u7684\u7aef\u53e3\u53f7\uff0c\u9ed8\u8ba4\u662f 10050\u3002 <\/p>\n\n\n\n
\u2022-I, –source-address IP-address\uff1a\u6307\u5b9a\u6e90 IP \u5730\u5740\u3002 <\/p>\n\n\n\n
\u2022-k, –key item-key\uff1a\u6307\u5b9a\u8981\u83b7\u53d6\u7684\u76d1\u63a7\u9879\u7684\u952e\u503c\u3002 <\/p>\n\n\n\n
\u2022–tls-connect value\uff1a\u6307\u5b9a\u5982\u4f55\u8fde\u63a5\u5230 Agent\uff0c\u5c5e\u4e8e\u52a0\u5bc6\u9009\u9879\uff0c\u9ed8\u8ba4\u8fde\u63a5\u4e0d\u52a0\u5bc6\u3002 <\/p>\n\n\n\n
\u2022psk \u52a0\u5bc6\uff1a\u4f7f\u7528 TLS \u548c psk \u9884\u5171\u4eab\u5bc6\u94a5\u8fdb\u884c\u8fde\u63a5\u3002 <\/p>\n\n\n\n
\u2022cert \u52a0\u5bc6\uff1a\u4f7f\u7528 TLS \u548c cert \u8bc1\u4e66\u8fdb\u884c\u8fde\u63a5\u3002 <\/p>\n\n\n\n
\u2022–tls-ca-file CA-file\uff1a\u5305\u542b\u7528\u4e8e\u9a8c\u8bc1 CA \u8bc1\u4e66\u6587\u4ef6\u7684\u8def\u5f84\u3002 <\/p>\n\n\n\n
\u2022–tls-crl-file CRL-file\uff1a\u5305\u542b\u5df2\u64a4\u9500\u8bc1\u4e66\u6587\u4ef6\u7684\u8def\u5f84\u3002 <\/p>\n\n\n\n
\u2022–tls-agent-cert-issuer cert-issuer\uff1a\u5141\u8bb8\u7684 Agent \u8bc1\u4e66\u9881\u53d1\u8005\u3002 <\/p>\n\n\n\n
\u2022–tls-agent-cert-subject cert-subject\uff1a\u5141\u8bb8\u7684 Agent \u8bc1\u4e66\u4e3b\u9898\u3002 <\/p>\n\n\n\n
\u2022–tls-cert-file cert-file\uff1a\u8bc1\u4e66\u6216\u8bc1\u4e66\u94fe\u6587\u4ef6\u7684\u8def\u5f84\u3002 <\/p>\n\n\n\n
\u2022–tls-key-file key-file\uff1a\u79c1\u94a5\u6587\u4ef6\u7684\u8def\u5f84\u3002 <\/p>\n\n\n\n
\u2022–tls-psk-identity PSK-identity\uff1aPSK ID \u5b57\u7b26\u4e32\u3002 <\/p>\n\n\n\n
\u2022–tls-psk-file PSK-file\uff1aPSK \u9884\u5171\u4eab\u5bc6\u94a5\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/p>\n\n\n\n
\u2022-h, –help\uff1a\u663e\u793a\u5e2e\u52a9\u5185\u5bb9\u3002 <\/p>\n\n\n\n
\u2022-V, –version\uff1a\u663e\u793a\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n\n\n\n
zabbix_agentd \u662f\u4e00\u4e2a\u7528\u4e8e\u83b7\u53d6\u5404\u79cd\u670d\u52a1\u5668\u53c2\u6570\u7684\u5b88\u62a4\u7a0b\u5e8f\uff0c\u5176\u53c2\u6570\u5982\u4e0b\u3002 <\/p>\n\n\n\n
\u2022-c, –config config-file\uff1a\u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u53d6\u4ee3\u9ed8\u8ba4\u7684\u914d\u7f6e\u6587\u4ef6\u3002 <\/p>\n\n\n\n
\u2022-f, –foreground\uff1a\u5728\u524d\u53f0\u8fd0\u884c zabbix_agentd\u3002 <\/p>\n\n\n\n
\u2022-R, –runtime-control runtime-option\uff1a\u6839\u636e\u914d\u7f6e\u7684\u9009\u9879\u6267\u884c\u7ba1\u7406\u529f\u80fd\u3002 <\/p>\n\n\n\n
\u4e0a\u8ff0 runtime-control \u9009\u9879\u5982\u4e0b\u3002<\/p>\n\n\n\n
\uff081\uff09log_level_increase [=target]\uff1a\u63d0\u5347\u65e5\u5fd7\u7ea7\u522b\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8fdb\u7a0b\uff0c\u5219\u63d0\u5347\u6240\u6709\u8fdb\u7a0b\u7684\u65e5\u5fd7\u7ea7\u522b\u3002<\/p>\n\n\n\n
\uff082\uff09log_level_decrease [=target]\uff1a\u964d\u4f4e\u65e5\u5fd7\u7ea7\u522b\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8fdb\u7a0b\uff0c\u5219\u964d\u4f4e\u6240\u6709\u8fdb\u7a0b\u7684\u65e5\u5fd7\u7ea7\u522b\u3002<\/p>\n\n\n\n
\u2022-p, –print\uff1a\u663e\u793a\u8f93\u51fa\u5df2\u77e5\u7684\u76d1\u63a7\u9879\u4fe1\u606f\u3002 <\/p>\n\n\n\n
\u2022-t, –test item-key\uff1a\u6d4b\u8bd5\u5355\u4e2a\u76d1\u63a7\u9879\u3002 <\/p>\n\n\n\n
\u2022-h, –help\uff1a\u663e\u793a\u5e2e\u52a9\u5185\u5bb9\u3002 <\/p>\n\n\n\n
\u2022-V, –version\uff1a\u663e\u793a\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n\n\n\n
zabbix_agent2 \u662f\u4e00\u4e2a\u57fa\u4e8e GO \u8bed\u8a00\u5f00\u53d1\u7684\u7528\u4e8e\u83b7\u53d6\u5404\u79cd\u670d\u52a1\u5668\u53c2\u6570\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5176\u53c2\u6570\u5982\u4e0b\u3002 <\/p>\n\n\n\n
\u2022-c, –config config-file\uff1a\u914d\u7f6e\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u53d6\u4ee3\u9ed8\u8ba4\u7684\u914d\u7f6e\u6587\u4ef6\u3002 <\/p>\n\n\n\n
\u2022-R, –runtime-control runtime-option\uff1a\u6839\u636e\u914d\u7f6e\u7684\u9009\u9879\u6267\u884c\u7ba1\u7406\u529f\u80fd\u3002 <\/p>\n\n\n\n
\u4e0a\u8ff0 runtime-control \u9009\u9879\u7684\u5982\u4e0b\u3002<\/p>\n\n\n\n
\uff081\uff09log_level_increase [=target]\uff1a\u63d0\u5347\u65e5\u5fd7\u7ea7\u522b\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8fdb\u7a0b\uff0c\u5219\u63d0\u5347\u6240\u6709\u8fdb\u7a0b\u7684\u65e5\u5fd7\u7ea7\u522b\u3002<\/p>\n\n\n\n
\uff082\uff09log_level_decrease [=target]\uff1a\u964d\u4f4e\u65e5\u5fd7\u7ea7\u522b\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u8fdb\u7a0b\uff0c\u5219\u964d\u4f4e\u6240\u6709\u8fdb\u7a0b\u7684\u65e5\u5fd7\u7ea7\u522b\u3002<\/p>\n\n\n\n
\u2022-p, –print\uff1a\u663e\u793a\u8f93\u51fa\u5df2\u77e5\u7684\u76d1\u63a7<\/a>\u9879\u4fe1\u606f\u3002 <\/p>\n\n\n\n \u2022-t, –test item-key\uff1a\u6d4b\u8bd5\u5355\u4e2a\u76d1\u63a7\u9879\u3002 <\/p>\n\n\n\n \u2022-h, –help\uff1a\u663e\u793a\u5e2e\u52a9\u5185\u5bb9\u3002 <\/p>\n\n\n\n \u2022-V, –version\uff1a\u663e\u793a\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n\n\n\n \u4ee5\u4e0a\u5c31\u662f\u672c\u671f\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n \u6211\u662f\u4e50\u4e50\uff0c\u4e13\u6ce8zabbix\u6280\u672f\u7814\u7a76\u4e0e\u5206\u4eab\uff0c\u66f4\u591azabbix\u6280\u672f\u5185\u5bb9\u656c\u8bf7\u7559\u610f\u540e\u7eed\u6587\u7ae0\u3002\u5982\u6709zabbix\u95ee\u9898\u8fd8\u53ef\u4ee5\u5230\u4e50\u7ef4\u793e\u533a<\/a>\u63d0\u95ee\u7559\u8a00\uff0c\u6216\u52a0\u5165zabbix\u6280\u672f\u4ea4\u6d41\u7fa4\uff08QQ\u7fa4\uff1a617295020\uff09\uff0c\u4e00\u8d77\u4ea4\u6d41zabbix\u6280\u672f\u5fc3\u5f97\u3002<\/p>\n\n\n\n