{"id":537,"date":"2013-04-17T10:29:11","date_gmt":"2013-04-17T02:29:11","guid":{"rendered":"http:\/\/www.ipcpu.com\/?p=537"},"modified":"2013-04-17T10:29:11","modified_gmt":"2013-04-17T02:29:11","slug":"zabbix-auto-registration","status":"publish","type":"post","link":"https:\/\/c.ipcpu.com\/2013\/04\/zabbix-auto-registration\/","title":{"rendered":"zabbix\u5ba2\u6237\u7aef\u81ea\u52a8\u6ce8\u518c"},"content":{"rendered":"

zabbix\u5ba2\u6237\u7aef\u81ea\u52a8\u6ce8\u518c.md<\/p>\n

\u6982\u8ff0<\/h2>\n

\u4e0e\u5176\u4f7f\u7528zabbix server\u53bb\u626b\u63cf\u4e00\u4e2a\u7f51\u6bb5\uff0c\u628a\u5728\u7ebf\u7684\u4e3b\u673a\u6dfb\u52a0\u5230Host\u5217\u8868\u4e2d\uff0c\u4e0d\u5982\u8ba9zabbix agent\u4e3b\u52a8\u8054\u7cfbzabbix server\uff0c\u6700\u540e\u7531zabbix server\u5c06\u8fd9\u4e9bagent\u52a0\u5230\u76f8\u5e94\u7684\u4e3b\u673a\u7ec4\uff0c\u5e76\u5173\u8054\u76f8\u5e94\u7684\u6a21\u677f\u3002<\/p>\n

\u8fd9\u9879\u529f\u80fd\u5bf9\u4e8e\u6279\u91cf\u90e8\u7f72\u5927\u6279\u91cf\u7684\u673a\u5668\u7684\u8fd0\u7ef4\u6765\u8bf4\uff0c\u76f8\u5f53\u7ed9\u529b\u3002<\/p>\n

\u914d\u7f6ezabbix\u5ba2\u6237\u7aef<\/h2>\n

\u56e0\u4e3a\u662fzabbix\u5ba2\u6237\u7aef\u4e3b\u52a8\u4e0a\u62a5\u4fe1\u606f\uff0c\u6240\u4ee5\u6709\u4e00\u4e9b\u7279\u5f81\u4fe1\u606f\u5fc5\u987b\u5199\u5165\u5230zabbix\u5ba2\u6237\u7aef\u7684\u914d\u7f6e\u91cc\u3002<\/p>\n

\u914d\u7f6e\u6587\u4ef6zabbix_agentd.conf\u5173\u952e\u5b57\u6bb5<\/p>\n

  1. ServerActive<\/span>=<\/span>211.81<\/span>.<\/span>175.6<\/span><\/code><\/li>
  2. Hostname<\/span>=<\/span>s27<\/span>.<\/span>ipcpu<\/span>.<\/span>com<\/span><\/code><\/li>
  3. #\u5173\u952e\u5c31\u662f\u4e0b\u9762\u8fd9\u4e2a\u5b57\u6bb5<\/span><\/code><\/li>
  4. HostMetadata<\/span>=<\/span>web<\/span>-<\/span>servers<\/span><\/code><\/li><\/ol><\/pre>\n

    \u914d\u7f6ezabbix\u670d\u52a1\u5668\u7aef<\/h2>\n

    \u6253\u5f00zabbix\u9875\u9762\uff0c\u9009\u4e2dconfiguration>>action<\/p>\n

    \u4ece\u53f3\u4e0a\u89d2\u7684Event source\u4e0b\u62c9\u6846\u91cc\u9762\u9009\u4e2dAuto registration<\/p>\n

    \u5982\u4e0b\u56fe\u6240\u793a\uff0c\u914d\u7f6e3\u4e2a\u6807\u7b7e\u9875\u5185\u5bb9\u3002
    \n
    \n
    \n<\/p>\n

    \u641e\u5b9a\uff0c\u6536\u5de5\uff01<\/p>\n

    \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def<\/a> » zabbix\u5ba2\u6237\u7aef\u81ea\u52a8\u6ce8\u518c<\/a><\/p>","protected":false},"excerpt":{"rendered":"

    zabbix\u5ba2\u6237\u7aef\u81ea\u52a8\u6ce8\u518c.md \u6982\u8ff0 \u4e0e\u5176\u4f7f\u7528zabbix server\u53bb\u626b\u63cf\u4e00\u4e2a\u7f51\u6bb5\uff0c\u628a\u5728\u7ebf\u7684\u4e3b\u673a\u6dfb\u52a0\u5230Host\u5217\u8868\u4e2d\uff0c\u4e0d\u5982\u8ba9zabbix agent\u4e3b\u52a8\u8054\u7cfbzabbix server\uff0c\u6700\u540e\u7531zabbix server\u5c06\u8fd9\u4e9bagent\u52a0\u5230\u76f8\u5e94\u7684\u4e3b\u673a\u7ec4\uff0c\u5e76\u5173\u8054\u76f8\u5e94\u7684\u6a21\u677f\u3002 \u8fd9\u9879\u529f\u80fd\u5bf9\u4e8e\u6279\u91cf\u90e8\u7f72\u5927\u6279\u91cf\u7684\u673a\u5668\u7684\u8fd0\u7ef4\u6765\u8bf4\uff0c\u76f8\u5f53\u7ed9\u529b\u3002 \u914d\u7f6ezabbix\u5ba2\u6237\u7aef \u56e0\u4e3a\u662fzabbix\u5ba2\u6237\u7aef\u4e3b\u52a8\u4e0a\u62a5\u4fe1\u606f\uff0c\u6240\u4ee5\u6709\u4e00\u4e9b\u7279\u5f81\u4fe1\u606f\u5fc5\u987b\u5199\u5165\u5230zabbix\u5ba2\u6237\u7aef\u7684\u914d\u7f6e\u91cc\u3002 \u914d\u7f6e\u6587\u4ef6zabbix_agentd.conf\u5173\u952e\u5b57\u6bb5 ServerActive=211.81.175.6Hostname=s27.ipcpu.com#\u5173\u952e\u5c31\u662f\u4e0b\u9762\u8fd9\u4e2a\u5b57\u6bb5HostMetadata=web-servers \u914d\u7f6ezabbix\u670d\u52a1\u5668\u7aef \u6253\u5f00zabbix\u9875\u9762\uff0c\u9009\u4e2dconfiguration>>action \u4ece\u53f3\u4e0a\u89d2\u7684Event source\u4e0b\u62c9\u6846\u91cc\u9762\u9009\u4e2dAuto registration \u5982\u4e0b\u56fe\u6240\u793a\uff0c\u914d\u7f6e3\u4e2a\u6807\u7b7e\u9875\u5185\u5bb9\u3002 \u641e\u5b9a\uff0c\u6536\u5de5\uff01 \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1aIPCPU-\u7f51\u7edc\u4e4b\u8def » zabbix\u5ba2\u6237\u7aef\u81ea\u52a8\u6ce8\u518c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[61,17,62,57,32],"_links":{"self":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/537"}],"collection":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/comments?post=537"}],"version-history":[{"count":0,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/posts\/537\/revisions"}],"wp:attachment":[{"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/media?parent=537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/categories?post=537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c.ipcpu.com\/wp-json\/wp\/v2\/tags?post=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}