{"id":8581,"date":"2020-08-28T13:32:56","date_gmt":"2020-08-28T05:32:56","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8581"},"modified":"2020-08-28T13:32:56","modified_gmt":"2020-08-28T05:32:56","slug":"zabbix-sender","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/zabbix-sender","title":{"rendered":"zabbix_sender\u547d\u4ee4 – zabbix\u53d1\u9001\u5668\u5de5\u5177"},"content":{"rendered":"\n
zabbix_sender \u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7528\u4e8e\u5411 Zabbix \u670d\u52a1\u5668\u6216\u4ee3\u7406\u53d1\u9001\u76d1\u63a7\u6570\u636e\uff1b\u5728Zabbix\u670d\u52a1\u5668\u4e0a\uff0c\u5e94\u8be5\u7528\u76f8\u5e94\u7684\u952e\u521b\u5efa\u4e00\u4e2aZabbix trapper\u7c7b\u578b\u7684\u9879\u76ee\uff1b\u8bf7\u6ce8\u610f\uff0c\u8f93\u5165\u7684\u503c\u53ea\u63a5\u53d7\u6765\u81ea\u8be5\u9879\u76ee\u7684 Allowed hosts \u5b57\u6bb5\u4e2d\u6307\u5b9a\u7684\u4e3b\u673a\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>zabbix_sender [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5c06\u6587\u4ef6data_values.txt\u4e2d\u7684\u503c\u53d1\u9001\u5230IP\u4e3a192.168.0.100\u7684Zabbix\u670d\u52a1\u5668\uff0c\u6587\u4ef6\u4e2d\u5b9a\u4e49\u4e86\u4e3b\u673a\u540d\u548c\u952e\u503c\uff1a<\/p>\n\n\n\n \u53d1\u9001342.45\u4f5c\u4e3a\u76d1\u89c6\u4e3b\u673a\u7684mysql.quests\u9879\u7684\u503c\uff0c\u4f7f\u7528\u76d1\u63a7\u4e3b\u673a\u548c\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7684Zabbix\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n \u4f7f\u7528\u4ee3\u7406\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7684zabbix\u670d\u52a1\u5668\uff0c\u53d1\u9001342.45\u4f5c\u4e3aMonitored Host\u4e3b\u673a\u7684mysql.quests\u9879\u7684\u503c\uff1a<\/p>\n\n\n\n zabbix_sender \u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7528\u4e8e\u5411 Zabbix \u670d\u52a1\u5668\u6216\u4ee3\u7406\u53d1\u9001\u76d1\u63a7\u6570\u636e\uff1b\u5728Zabbix\u670d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8581"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8581"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8581\/revisions"}],"predecessor-version":[{"id":8599,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8581\/revisions\/8599"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-c<\/td> \u914d\u7f6e\u6587\u4ef6\u8def\u5f84<\/td><\/tr> -z<\/td> zabbix_server\u670d\u52a1\u5668IP\u5730\u5740<\/td><\/tr> -p<\/td> zabbix_server\u670d\u52a1\u5668\u7aef\u53e3\uff0c\u9ed8\u8ba4\uff1a10051<\/td><\/tr> -s<\/td> \u4e3b\u673a\u540d<\/td><\/tr> -I<\/td> \u6e90IP<\/td><\/tr> -k<\/td> \u76d1\u63a7\u9879\u7684key\u503c<\/td><\/tr> -o<\/td> key\u6570\u503c<\/td><\/tr> -v<\/td> \u8be6\u7ec6\u6a21\u5f0f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# zabbix_sender -z 192.168.0.100 -i data_values.txt<\/pre>\n\n\n\n
[root@linuxcool ~]# zabbix_sender -c \/etc\/zabbix\/zabbix_agentd.conf -k mysql.queries -o 342.45<\/pre>\n\n\n\n
[root@linuxcool ~]# zabbix_sender -c \/etc\/zabbix\/zabbix_agentd.conf -s \"Monitored Host\" -k mysql.queries -o 342.45<\/pre>\n","protected":false},"excerpt":{"rendered":"