{"id":60673,"date":"2023-12-02T14:40:12","date_gmt":"2023-12-02T06:40:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=60673"},"modified":"2023-12-02T14:40:12","modified_gmt":"2023-12-02T06:40:12","slug":"mrtg-nms","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mrtg-nms.html","title":{"rendered":"\u5168\u9762\u4e86\u89e3\u76d1\u63a7\u77e5\u8bc6\u4f53\u7cfb"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u76d1\u63a7\u662f\u6574\u4e2a\u8fd0\u7ef4\u4e43\u81f3\u6574\u4e2a\u4ea7\u54c1\u751f\u547d\u5468\u671f\u4e2d\u6700\u91cd\u8981\u7684\u4e00\u73af\uff0c\u4e8b\u524d\u53ca\u65f6\u9884\u8b66\u53d1\u73b0\u6545\u969c\uff0c\u4e8b\u540e\u63d0\u4f9b\u8be6\u5b9e\u7684\u6570\u636e\u7528\u4e8e\u8ffd\u67e5\u5b9a\u4f4d\u95ee\u9898\u3002\u76ee\u524d\u4e1a\u754c\u6709\u5f88\u591a\u4e0d\u9519\u7684\u5f00\u6e90\u4ea7\u54c1\u53ef\u4f9b\u9009\u62e9\u3002\u9009\u62e9\u4e00\u6b3e\u5f00\u6e90\u7684\u76d1\u63a7\u7cfb\u7edf\uff0c\u662f\u4e00\u4e2a\u7701\u65f6\u7701\u529b\uff0c\u6548\u7387\u6700\u9ad8\u7684\u65b9\u6848\u3002\u5f53\u7136\u5bf9\u76d1\u63a7\u4e0d\u662f\u5f88\u660e\u767d\u7684\u670b\u53cb\u4eec\uff0c\u770b\u4e86\u4ee5\u4e0b\u6587\u7ae0\u53ef\u80fd\u4f1a\u5bf9\u76d1\u63a7\u6574\u4e2a\u4f53\u7cfb\u6709\u6bd4\u8f83\u6df1\u523b\u7684\u8ba4\u8bc6\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 1\u3001\u76d1\u63a7\u76ee\u6807<\/strong><\/div>\n \u6211\u4eec\u5148\u6765\u4e86\u89e3\u4ec0\u4e48\u662f\u76d1\u63a7\u3001\u76d1\u63a7\u7684\u91cd\u8981\u6027\u4ee5\u53ca\u76d1\u63a7\u7684\u76ee\u6807\uff0c\u5f53\u7136\u6bcf\u4e2a\u4eba\u6240\u5728\u7684\u884c\u4e1a\u4e0d\u540c\u3001\u516c\u53f8\u4e0d\u540c\u3001\u4e1a\u52a1\u4e0d\u540c\u3001\u5c97\u4f4d\u4e0d\u540c\uff0c\u5bf9\u76d1\u63a7\u7684\u7406\u89e3\u4e5f\u4e0d\u540c\uff0c\u4f46\u662f\u6211\u4eec\u9700\u8981\u6ce8\u610f\uff0c\u76d1\u63a7\u662f\u9700\u8981\u7ad9\u5728\u516c\u53f8\u7684\u4e1a\u52a1\u89d2\u5ea6\u53bb\u8003\u8651\uff0c\u800c\u4e0d\u662f\u9488\u5bf9\u67d0\u4e2a\u76d1\u63a7\u6280\u672f\u7684\u4f7f\u7528\u3002<\/p>\n \u5bf9\u7cfb\u7edf\u4e0d\u95f4\u65ad\u5b9e\u65f6\u76d1\u63a7\uff1a\u5b9e\u9645\u4e0a\u662f\u5bf9\u7cfb\u7edf\u4e0d\u95f4\u65ad\u7684\u5b9e\u65f6\u76d1\u63a7(\u8fd9\u5c31\u662f\u76d1\u63a7)\uff1b<\/p>\n \u5b9e\u65f6\u53cd\u9988\u7cfb\u7edf\u5f53\u524d\u72b6\u6001\uff1a\u6211\u4eec\u76d1\u63a7\u67d0\u4e2a\u786c\u4ef6\u3001\u6216\u8005\u67d0\u4e2a\u7cfb\u7edf\uff0c\u90fd\u662f\u9700\u8981\u80fd\u5b9e\u65f6\u770b\u5230\u5f53\u524d\u7cfb\u7edf\u7684\u72b6\u6001\uff0c\u662f\u6b63\u5e38\u3001\u5f02\u5e38\u3001\u6216\u8005\u6545\u969c\uff1b<\/p>\n \u4fdd\u8bc1\u670d\u52a1\u53ef\u9760\u6027\u5b89\u5168\u6027\uff1a\u6211\u4eec\u76d1\u63a7\u7684\u76ee\u7684\u5c31\u662f\u8981\u4fdd\u8bc1\u7cfb\u7edf\u3001\u670d\u52a1\u3001\u4e1a\u52a1\u6b63\u5e38\u8fd0\u884c\uff1b<\/p>\n \u4fdd\u8bc1\u4e1a\u52a1\u6301\u7eed\u7a33\u5b9a\u8fd0\u884c\uff1a\u5982\u679c\u6211\u4eec\u7684\u76d1\u63a7\u505a\u5f97\u5f88\u5b8c\u5584\uff0c\u5373\u4f7f\u51fa\u73b0\u6545\u969c\uff0c\u80fd\u7b2c\u4e00\u65f6\u95f4\u63a5\u6536\u5230\u6545\u969c\u62a5\u8b66\uff0c\u5728\u7b2c\u4e00\u65f6\u95f4\u5904\u7406\u89e3\u51b3\uff0c\u4ece\u800c\u4fdd\u8bc1\u4e1a\u52a1\u6301\u7eed\u6027\u7684\u7a33\u5b9a\u8fd0\u884c\uff1b<\/p>\n <\/p>\n 2\u3001\u76d1\u63a7\u65b9\u6cd5 <\/strong><\/div>\n \u65e2\u7136\u6211\u4eec\u4e86\u89e3\u5230\u4e86\u76d1\u63a7\u7684\u91cd\u8981\u6027\u3001\u4ee5\u53ca\u76d1\u63a7\u7684\u76ee\u7684\uff0c\u90a3\u4e48\u4e0b\u9762\u6211\u4eec\u9700\u8981\u4e86\u89e3\u4e0b\u76d1\u63a7\u6709\u54ea\u4e9b\u65b9\u6cd5\u3002<\/p>\n \u4e86\u89e3\u76d1\u63a7\u5bf9\u8c61\uff1a\u6211\u4eec\u8981\u76d1\u63a7\u7684\u5bf9\u8c61\u4f60\u662f\u5426\u4e86\u89e3\u5462\uff1f\u6bd4\u5982 CPU \u5230\u5e95\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff1f<\/p>\n \u6027\u80fd\u57fa\u51c6\u6307\u6807\uff1a\u6211\u4eec\u8981\u76d1\u63a7\u8fd9\u4e2a\u4e1c\u897f\u7684\u4ec0\u4e48\u5c5e\u6027\uff1f\u6bd4\u5982 CPU \u7684\u4f7f\u7528\u7387\u3001\u8d1f\u8f7d\u3001\u7528\u6237\u6001\u3001\u5185\u6838\u6001\u3001\u4e0a\u4e0b\u6587\u5207\u6362\u3002<\/p>\n \u62a5\u8b66\u9608\u503c\u5b9a\u4e49\uff1a\u600e\u4e48\u6837\u624d\u7b97\u662f\u6545\u969c\uff0c\u8981\u62a5\u8b66\u5462\uff1f\u6bd4\u5982 CPU \u7684\u8d1f\u8f7d\u5230\u5e95\u591a\u5c11\u7b97\u9ad8\uff0c\u7528\u6237\u6001\u3001\u5185\u6838\u6001\u5206\u522b\u8dd1\u591a\u5c11\u7b97\u9ad8\uff1f<\/p>\n \u6545\u969c\u5904\u7406\u6d41\u7a0b\uff1a\u6536\u5230\u4e86\u6545\u969c\u62a5\u8b66\uff0c\u6211\u4eec\u600e\u4e48\u5904\u7406\u5462\uff1f\u6709\u4ec0\u4e48\u66f4\u9ad8\u6548\u7684\u5904\u7406\u6d41\u7a0b\u5417\uff1f<\/p>\n 3\u3001\u76d1\u63a7\u6838\u5fc3 <\/strong><\/div>\n \u6211\u4eec\u4e86\u89e3\u4e86\u76d1\u63a7\u7684\u65b9\u6cd5\u3001\u76d1\u63a7\u5bf9\u8c61\u3001\u6027\u80fd\u6307\u6807\u3001\u62a5\u8b66\u9608\u503c\u5b9a\u4e49\u3001\u4ee5\u53ca\u6545\u969c\u5904\u7406\u6d41\u7a0b\u51e0\u6b65\u9aa4\uff0c\u5f53\u7136\u6211\u4eec\u66f4\u9700\u8981\u77e5\u9053\u76d1\u63a7\u7684\u6838\u5fc3\u662f\u4ec0\u4e48\uff1f<\/p>\n \u53d1\u73b0\u95ee\u9898\uff1a\u5f53\u7cfb\u7edf\u53d1\u751f\u6545\u969c\u62a5\u8b66\uff0c\u6211\u4eec\u4f1a\u6536\u5230\u6545\u969c\u62a5\u8b66\u7684\u4fe1\u606f \uff1b<\/p>\n \u5b9a\u4f4d\u95ee\u9898\uff1a\u6545\u969c\u90ae\u4ef6\u4e00\u822c\u90fd\u4f1a\u5199\u67d0\u67d0\u4e3b\u673a\u6545\u969c\u3001\u5177\u4f53\u6545\u969c\u7684\u5185\u5bb9\uff0c\u6211\u4eec\u9700\u8981\u5bf9\u62a5\u8b66\u5185\u5bb9\u8fdb\u884c\u5206\u6790\uff0c\u6bd4\u5982\u4e00\u53f0\u670d\u52a1\u5668\u8fde\u4e0d\u4e0a\uff1a\u6211\u4eec\u5c31\u9700\u8981\u8003\u8651\u662f\u7f51\u7edc\u95ee\u9898\u3001\u8fd8\u662f\u8d1f\u8f7d\u592a\u9ad8\u5bfc\u81f4\u957f\u65f6\u95f4\u65e0\u6cd5\u8fde\u63a5\uff0c\u53c8\u6216\u8005\u67d0\u5f00\u53d1\u89e6\u53d1\u4e86\u9632\u706b\u5899\u7981\u6b62\u7684\u76f8\u5173\u7b56\u7565\u7b49\u7b49\uff0c\u6211\u4eec\u5c31\u9700\u8981\u53bb\u5206\u6790\u6545\u969c\u5177\u4f53\u539f\u56e0\uff1b<\/p>\n \u89e3\u51b3\u95ee\u9898\uff1a\u5f53\u7136\u6211\u4eec\u4e86\u89e3\u5230\u6545\u969c\u7684\u539f\u56e0\u540e\uff0c\u5c31\u9700\u8981\u901a\u8fc7\u6545\u969c\u89e3\u51b3\u7684\u4f18\u5148\u7ea7\u53bb\u89e3\u51b3\u8be5\u6545\u969c\uff1b<\/p>\n \u603b\u7ed3\u95ee\u9898\uff1a\u5f53\u6211\u4eec\u89e3\u51b3\u5b8c\u91cd\u5927\u6545\u969c\u540e\uff0c\u9700\u8981\u5bf9\u6545\u969c\u539f\u56e0\u4ee5\u53ca\u9632\u8303\u8fdb\u884c\u603b\u7ed3\u5f52\u7eb3\uff0c\u907f\u514d\u4ee5\u540e\u91cd\u590d\u51fa\u73b0\uff1b<\/p>\n 4\u3001\u76d1\u63a7\u5de5\u5177 <\/strong><\/div>\n \u4e0b\u9762\u6211\u4eec\u9700\u8981\u9009\u62e9\u4e00\u6b3e\u5408\u9002\u516c\u53f8\u4e1a\u52a1\u7684\u76d1\u63a7\u5de5\u5177\u8fdb\u884c\u76d1\u63a7,\u8fd9\u91cc\u6211\u5bf9\u76d1\u63a7\u5de5\u5177\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u5206\u7c7b<\/p>\n \u8001\u724c\u76d1\u63a7\u5de5\u5177:<\/strong><\/span><\/div>\n MRTG\uff08Multi Route Trffic Grapher\uff09\u662f\u4e00\u5957\u53ef\u7528\u6765\u7ed8\u5236\u7f51\u7edc\u6d41\u91cf\u56fe\u7684\u8f6f\u4ef6\uff0c\u7531\u745e\u58eb\u5965\u5c14\u6ed5\u7684 Tobias Oetiker \u4e0e Dave Rand \u6240\u5f00\u53d1\uff0c\u4ee5GPL\u6388\u6743\u3002MRTG \u6700\u597d\u7684\u7248\u672c\u662f1995\u5e74\u63a8\u51fa\u7684\uff0c\u7528perl\u8bed\u8a00\u5199\u6210\uff0c\u53ef\u8de8\u5e73\u53f0\u4f7f\u7528\uff0c\u6570\u636e\u91c7\u96c6\u7528 SNMP \u534f\u8bae\uff0cMRTG \u5c06\u6536\u96c6\u5230\u7684\u6570\u636e\u901a\u8fc7 Web \u9875\u9762\u4ee5 GIF \u6216\u8005 PNG \u683c\u5f0f\u7ed8\u5236\u51fa\u56fe\u50cf\u3002<\/p>\n Ganglia\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u3001\u53ef\u6269\u5c55\u7684\u3001\u9ad8\u6027\u80fd\u7684\u5206\u5e03\u5f0f\u76d1\u63a7\u7cfb\u7edf\uff0c\u5982\u96c6\u7fa4\u548c\u7f51\u683c\u3002\u5b83\u57fa\u4e8e\u5206\u5c42\u8bbe\u8ba1\uff0c\u4f7f\u7528\u5e7f\u6cdb\u7684\u6280\u672f\uff0c\u7528 RRDtool \u5b58\u50a8\u6570\u636e\u3002\u5177\u6709\u53ef\u89c6\u5316\u754c\u9762\uff0c\u9002\u5408\u5bf9\u96c6\u7fa4\u7cfb\u7edf\u7684\u81ea\u52a8\u5316\u76d1\u63a7\u3002\u5176\u7cbe\u5fc3\u8bbe\u8ba1\u7684\u6570\u636e\u7ed3\u6784\u548c\u7b97\u6cd5\u4f7f\u5f97\u76d1\u63a7\u7aef\u5230\u88ab\u76d1\u63a7\u7aef\u7684\u8fde\u63a5\u5f00\u9500\u975e\u5e38\u4f4e\u3002\u76ee\u524d\u5df2\u7ecf\u6709\u6210\u5343\u4e0a\u4e07\u7684\u96c6\u7fa4\u6b63\u5728\u4f7f\u7528\u8fd9\u4e2a\u76d1\u63a7\u7cfb\u7edf\uff0c\u53ef\u4ee5\u8f7b\u677e\u7684\u5904\u74062000\u4e2a\u8282\u70b9\u7684\u96c6\u7fa4\u73af\u5883\u3002<\/p>\n Cacti\uff08\u82f1\u6587\u542b\u4e49\u4e3a\u4ed9\u4eba\u638c\uff09\u662f\u4e00\u5957\u57fa\u4e8e PHP\u3001MySQL\u3001SNMP \u548c RRDtool \u5f00\u53d1\u7684\u7f51\u7edc\u6d41\u91cf\u76d1\u6d4b\u56fe\u5f62\u5206\u6790\u5de5\u5177\uff0c\u5b83\u901a\u8fc7 snmpget \u6765\u83b7\u53d6\u6570\u636e\uff0c\u4f7f\u7528 RRDtool \u7ed8\u56fe\uff0c\u4f46\u4f7f\u7528\u8005\u65e0\u987b\u4e86\u89e3 RRDtool \u590d\u6742\u7684\u53c2\u6570\u3002\u63d0\u4f9b\u4e86\u975e\u5e38\u5f3a\u5927\u7684\u6570\u636e\u548c\u7528\u6237\u7ba1\u7406\u529f\u80fd\uff0c\u53ef\u4ee5\u6307\u5b9a\u6bcf\u4e00\u4e2a\u7528\u6237\u80fd\u67e5\u770b\u6811\u72b6\u7ed3\u6784\u3001\u4e3b\u673a\u8bbe\u5907\u4ee5\u53ca\u4efb\u4f55\u4e00\u5f20\u56fe\uff0c\u8fd8\u53ef\u4ee5\u4e0e LDAP \u7ed3\u5408\u8fdb\u884c\u7528\u6237\u8ba4\u8bc1\uff0c\u540c\u65f6\u4e5f\u80fd\u81ea\u5b9a\u4e49\u6a21\u677f\u3002\u5728\u5386\u53f2\u6570\u636e\u5c55\u793a\u76d1\u63a7\u65b9\u9762\uff0c\u5176\u529f\u80fd\u76f8\u5f53\u4e0d\u9519\u3002<\/p>\n Cacti \u901a\u8fc7\u6dfb\u52a0\u6a21\u677f\uff0c\u4f7f\u4e0d\u540c\u8bbe\u5907\u7684\u76d1\u63a7\u6dfb\u52a0\u5177\u6709\u53ef\u590d\u7528\u6027\uff0c\u5e76\u4e14\u5177\u5907\u53ef\u81ea\u5b9a\u4e49\u7ed8\u56fe\u7684\u529f\u80fd\uff0c\u5177\u6709\u5f3a\u5927\u7684\u8fd0\u7b97\u80fd\u529b\uff08\u6570\u636e\u7684\u53e0\u52a0\u529f\u80fd\uff09<\/p>\n Nagios \u662f\u4e00\u4e2a\u4f01\u4e1a\u7ea7\u76d1\u63a7\u7cfb\u7edf\uff0c\u53ef\u76d1\u63a7\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\u548c\u7f51\u7edc\u4fe1\u606f\u7b49\uff0c\u5e76\u80fd\u76d1\u89c6\u6240\u6307\u5b9a\u7684\u672c\u5730\u6216\u8fdc\u7a0b\u4e3b\u673a\u72b6\u6001\u4ee5\u53ca\u670d\u52a1\uff0c\u540c\u65f6\u63d0\u4f9b\u5f02\u5e38\u544a\u8b66\u901a\u77e5\u529f\u80fd\u7b49\u3002<\/p>\n Nagios \u53ef\u8fd0\u884c\u5728 Linux \u548c UNIX \u5e73\u53f0\u4e0a\u3002\u540c\u65f6\u63d0\u4f9bWeb\u754c\u9762\uff0c\u4ee5\u65b9\u4fbf\u7cfb\u7edf\u7ba1\u7406\u4eba\u5458\u67e5\u770b\u7f51\u7edc\u72b6\u6001\u3001\u5404\u79cd\u7cfb\u7edf\u95ee\u9898\u3001\u4ee5\u53ca\u7cfb\u7edf\u76f8\u5173\u65e5\u5fd7\u7b49\u3002<\/p>\n Nagios\u7684\u529f\u80fd\u4fa7\u91cd\u4e8e\u76d1\u63a7\u670d\u52a1\u7684\u53ef\u7528\u6027\uff0c\u80fd\u6839\u636e\u76d1\u63a7\u6307\u6807\u72b6\u6001\u89e6\u53d1\u544a\u8b66\u3002<\/p>\n \u76ee\u524d Nagios \u4e5f\u5360\u9886\u4e86\u4e00\u5b9a\u7684\u5e02\u573a\u4efd\u989d\uff0c\u4e0d\u8fc7 Nagios \u5e76\u6ca1\u6709\u4e0e\u65f6\u4ff1\u8fdb\uff0c\u5df2\u7ecf\u4e0d\u80fd\u6ee1\u8db3\u4e8e\u591a\u53d8\u7684\u76d1\u63a7\u9700\u6c42\uff0c\u67b6\u6784\u7684\u6269\u5c55\u6027\u548c\u4f7f\u7528\u7684\u4fbf\u6377\u6027\u6709\u5f85\u589e\u5f3a\uff0c\u5176\u9ad8\u7ea7\u529f\u80fd\u96c6\u6210\u5728\u5546\u4e1a\u7248 Nagios XI \u4e2d\u3002<\/p>\n Smokeping \u4e3b\u8981\u7528\u4e8e\u76d1\u89c6\u7f51\u7edc\u6027\u80fd\uff0c\u5305\u62ec\u5e38\u89c4\u7684ping\u3001www\u670d\u52a1\u5668\u6027\u80fd\u3001DNS\u67e5\u8be2\u6027\u80fd\u3001SSH\u6027\u80fd\u7b49\u3002\u5e95\u5c42\u4e5f\u662f\u7528RRDtool\u505a\u652f\u6301\uff0c\u7279\u70b9\u662f\u7ed8\u5236\u56fe\u975e\u5e38\u6f02\u4eae\uff0c\u7f51\u7edc\u4e22\u5305\u548c\u5ef6\u8fdf\u7528\u989c\u8272\u548c\u9634\u5f71\u6765\u6807\u793a\uff0c\u652f\u6301\u5c06\u591a\u5f20\u56fe\u53e0\u653e\u5728\u4e00\u8d77\uff0c\u5176\u4f5c\u8005\u8fd8\u5f00\u53d1\u4e86MRTG\u548cRRDtll\u7b49\u5de5\u5177\u3002<\/p>\n Smokeping\u7684\u7ad9\u70b9\u4e3a\uff1ahttp:\/\/tobi.oetiker.cn\/hp<\/p>\n \u5f00\u6e90\u76d1\u63a7\u7cfb\u7edfOpenTSDB\uff0c\u7528 Hbase \u5b58\u50a8\u6240\u6709\u65f6\u5e8f\uff08\u65e0\u987b\u91c7\u6837\uff09\u7684\u6570\u636e\uff0c\u6765\u6784\u5efa\u4e00\u4e2a\u5206\u5e03\u5f0f\u3001\u53ef\u4f38\u7f29\u7684\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u5e93\u3002\u5b83\u652f\u6301\u79d2\u7ea7\u6570\u636e\u91c7\u96c6\uff0c\u652f\u6301\u6c38\u4e45\u5b58\u50a8\uff0c\u53ef\u4ee5\u505a\u5bb9\u91cf\u89c4\u5212\uff0c\u5e76\u5f88\u5bb9\u6613\u5730\u63a5\u5165\u5230\u73b0\u6709\u7684\u544a\u8b66\u7cfb\u7edf\u91cc\u3002<\/p>\n OpenTSDB \u53ef\u4ee5\u4ece\u5927\u89c4\u6a21\u7684\u96c6\u7fa4\uff08\u5305\u62ec\u96c6\u7fa4\u4e2d\u7684\u7f51\u7edc\u8bbe\u5907\u3001\u64cd\u4f5c\u7cfb\u7edf\u3001\u5e94\u7528\u7a0b\u5e8f\uff09\u4e2d\u83b7\u53d6\u76f8\u5e94\u7684\u91c7\u96c6\u6307\u6807\uff0c\u5e76\u8fdb\u884c\u5b58\u50a8\u3001\u7d22\u5f15\u548c\u670d\u52a1\uff0c\u4ece\u800c\u4f7f\u8fd9\u4e9b\u6570\u636e\u66f4\u5bb9\u6613\u8ba9\u4eba\u7406\u89e3\uff0c\u5982Web\u5316\u3001\u56fe\u5f62\u5316\u7b49\u3002<\/p>\n \u738b\u724c\u76d1\u63a7\u5de5\u5177:<\/strong><\/span><\/div>\n Zabbix \u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u76d1\u63a7\u7cfb\u7edf\uff0c\u652f\u6301\u591a\u79cd\u91c7\u96c6\u65b9\u5f0f\u548c\u91c7\u96c6\u5ba2\u6237\u7aef\uff0c\u6709\u4e13\u7528\u7684 Agent \u4ee3\u7406\uff0c\u4e5f\u652f\u6301 SNMP\u3001IPMI\u3001JMX\u3001Telnet\u3001SSH \u7b49\u591a\u79cd\u534f\u8bae\uff0c\u5b83\u5c06\u91c7\u96c6\u5230\u7684\u6570\u636e\u5b58\u653e\u5230\u6570\u636e\u5e93\uff0c\u7136\u540e\u5bf9\u5176\u8fdb\u884c\u5206\u6790\u6574\u7406\uff0c\u8fbe\u5230\u6761\u4ef6\u89e6\u53d1\u544a\u8b66\u3002\u5176\u7075\u6d3b\u7684\u6269\u5c55\u6027\u548c\u4e30\u5bcc\u7684\u529f\u80fd\u662f\u5176\u4ed6\u76d1\u63a7\u7cfb\u7edf\u6240\u4e0d\u80fd\u6bd4\u7684\u3002\u76f8\u5bf9\u6765\u8bf4\uff0c\u5b83\u7684\u603b\u4f53\u529f\u80fd\u505a\u7684\u975e\u5e38\u4f18\u79c0\u3002\u4ece\u4ee5\u4e0a\u5404\u79cd\u76d1\u63a7\u7cfb\u7edf\u7684\u5bf9\u6bd4\u6765\u770b\uff0cZabbix \u90fd\u662f\u5177\u6709\u4f18\u52bf\u7684\uff0c\u5176\u4e30\u5bcc\u7684\u529f\u80fd\u3001\u53ef\u6269\u5c55\u7684\u80fd\u529b\u3001\u4e8c\u6b21\u5f00\u53d1\u7684\u80fd\u529b\u548c\u7b80\u5355\u6613\u7528\u7684\u7279\u70b9\uff0c\u8bfb\u8005\u53ea\u8981\u7a0d\u52a0\u5b66\u4e60\uff0c\u5373\u53ef\u6784\u5efa\u81ea\u5df1\u7684\u76d1\u63a7\u7cfb\u7edf\u3002<\/p>\n \u5c0f\u7c73\u7684\u76d1\u63a7\u7cfb\u7edf\uff1aopen-falcon\u3002open-falcon \u7684\u76ee\u6807\u662f\u505a\u6700\u5f00\u653e\u3001\u6700\u597d\u7528\u7684\u4e92\u8054\u7f51\u4f01\u4e1a\u7ea7\u76d1\u63a7\u4ea7\u54c1\u3002<\/p>\n \u4e09\u65b9\u76d1\u63a7\u5de5\u5177\uff1a <\/strong><\/span><\/div>\n \u73b0\u5728\u5e02\u573a\u4e0a\u6709\u5f88\u591a\u4e0d\u9519\u7684\u7b2c\u4e09\u65b9\u76d1\u63a7\uff0c\u6bd4\u5982\uff1a\u76d1\u63a7\u5b9d\u3001\u76d1\u63a7\u6613\u3001\u542c\u4e91\u3001\u8fd8\u6709\u5f88\u591a\u4e91\u5382\u5546\u81ea\u5e26\u76d1\u63a7\uff0c\u4f46\u662f\u5728\u8fd9\u91cc\u6211\u4eec\u4e0d\u6253\u7b97\u7740\u91cd\u4ecb\u7ecd\uff0c\u5982\u679c\u60f3\u4e86\u89e3\u4e09\u65b9\u76d1\u63a7\u53ef\u81ea\u884c\u4e0a\u5b98\u7f51\u54a8\u8be2\u3002\uff08\u907f\u514d\u8bf4\u5e7f\u544a\u690d\u5165\uff09<\/p>\n 5\u3001\u76d1\u63a7\u6d41\u7a0b<\/strong><\/div>\n \u4e0a\u9762\u4ecb\u7ecd\u4e86\u8fd9\u4e48\u591a\uff0c\u90a3\u4e48\u5230\u5e95\u9009\u62e9\u4ec0\u4e48\u76d1\u63a7\u5de5\u5177\u6700\u5408\u9002\u5462\uff0c\u6211\u8fd9\u91cc\u63a8\u8350\u51e0\u6b3e\u5f00\u6e90\u76d1\u63a7\u5de5\u5177\uff1aZabbix\u3001Open-Falcon\u3001LEPUS \u5929\u5154(\u4e13\u7528\u4e8e\u76d1\u63a7\u6570\u636e\u5e93)\u3002<\/p>\n \u4f46\u662f\u672c\u6587\u8fd8\u662f\u57fa\u4e8e Zabbix \u6765\u6784\u5efa\u6574\u4e2a\u76d1\u63a7\u4f53\u7cfb\u751f\u6001\u5708\u3002<\/p>\n \u90a3\u4e48\u4e0b\u9762\u6211\u4eec\u5c31\u6765\u804a\u804a\uff0cZabbix \u7684\u6574\u4e2a\u6d41\u7a0b\uff1a<\/p>\n \u6570\u636e\u91c7\u96c6\uff1aZabbix \u901a\u8fc7 SNMP\u3001Agent\u3001ICMP\u3001SSH\u3001IPMI \u7b49\u5bf9\u7cfb\u7edf\u8fdb\u884c\u6570\u636e\u91c7\u96c6\uff1b<\/p>\n \u6570\u636e\u5b58\u50a8\uff1aZabbix \u5b58\u50a8\u5728 MySQL \u4e0a\uff0c\u4e5f\u53ef\u4ee5\u5b58\u50a8\u5728\u5176\u4ed6\u6570\u636e\u5e93\u670d\u52a1\uff1b<\/p>\n \u6570\u636e\u5206\u6790\uff1a\u5f53\u6211\u4eec\u4e8b\u540e\u9700\u8981\u590d\u76d8\u5206\u6790\u6545\u969c\u65f6\uff0cZabbix \u80fd\u7ed9\u6211\u4eec\u63d0\u4f9b\u56fe\u5f62\u4ee5\u53ca\u65f6\u95f4\u7b49\u76f8\u5173\u4fe1\u606f\uff0c\u65b9\u9762\u6211\u4eec\u786e\u5b9a\u6545\u969c\u6240\u5728\uff1b<\/p>\n \u6570\u636e\u5c55\u793a\uff1aweb \u754c\u9762\u5c55\u793a\u3001(\u79fb\u52a8 APP\u3001java_php \u5f00\u53d1\u4e00\u4e2a web \u754c\u9762\u4e5f\u53ef\u4ee5) \uff1b<\/p>\n \u76d1\u63a7\u62a5\u8b66\uff1a\u7535\u8bdd\u62a5\u8b66\u3001\u90ae\u4ef6\u62a5\u8b66\u3001\u5fae\u4fe1\u62a5\u8b66\u3001\u77ed\u4fe1\u62a5\u8b66\u3001\u62a5\u8b66\u5347\u7ea7\u673a\u5236\u7b49\uff08\u65e0\u8bba\u4ec0\u4e48\u62a5\u8b66\u90fd\u53ef\u4ee5\uff09\uff1b<\/p>\n \u62a5\u8b66\u5904\u7406\uff1a\u5f53\u63a5\u6536\u5230\u62a5\u8b66\uff0c\u6211\u4eec\u9700\u8981\u6839\u636e\u6545\u969c\u7684\u7ea7\u522b\u8fdb\u884c\u5904\u7406\uff0c\u6bd4\u5982:\u91cd\u8981\u7d27\u6025\u3001\u91cd\u8981\u4e0d\u7d27\u6025\u7b49\u3002\u6839\u636e\u6545\u969c\u7684\u7ea7\u522b\uff0c\u914d\u5408\u76f8\u5173\u7684\u4eba\u5458\u8fdb\u884c\u5feb\u901f\u5904\u7406\uff1b<\/p>\n 6\u3001\u76d1\u63a7\u6307\u6807 <\/strong><\/div>\n \u6211\u4eec\u4e0a\u9762\u4e86\u89e3\u4e86\u76d1\u63a7\u65b9\u6cd5\u3001\u76ee\u6807\u3001\u6d41\u7a0b\u3001\u4e5f\u4e86\u89e3\u4e86\u76d1\u63a7\u6709\u54ea\u4e9b\u5de5\u5177\uff0c\u53ef\u80fd\u6709\u4eba\u4f1a\u7591\u60d1\uff0c\u6211\u4eec\u5177\u4f53\u8981\u76d1\u63a7\u4e9b\u4ec0\u4e48\u4e1c\u897f\uff1f\u90a3\u4e48\u6211\u5728\u8fd9\u91cc\u8fdb\u884c\u4e86\u5206\u7c7b\u6574\u7406:<\/p>\n 6.1 \u786c\u4ef6\u76d1\u63a7<\/strong><\/span><\/div>\n \u65e9\u671f\u6211\u4eec\u901a\u8fc7\u673a\u623f\u5de1\u68c0\u7684\u65b9\u5f0f\uff0c\u67e5\u770b\u786c\u4ef6\u8bbe\u5907\u706f\u5149\u95ea\u70c1\u60c5\u51b5\u5224\u65ad\u662f\u5426\u6545\u969c\uff0c\u8fd9\u6837\u975e\u5e38\u6d6a\u8d39\u4eba\u529b\uff0c\u5e76\u4e14\u662f\u91cd\u590d\u6027\u65e0\u6280\u672f\u542b\u91cf\u7684\u5de5\u4f5c\uff0c\u5927\u5bb6\u61c2\u5f97\u3002<\/p>\n \u5f53\u7136\u6211\u4eec\u73b0\u5728\u53ef\u4ee5\u901a\u8fc7IPMI\u5bf9\u786c\u4ef6\u8be6\u7ec6\u60c5\u51b5\u8fdb\u884c\u76d1\u63a7\uff0c\u5e76\u5bf9 CPU\u3001\u5185\u5b58\u3001\u78c1\u76d8\u3001\u6e29\u5ea6\u3001\u98ce\u6247\u3001\u7535\u538b\u7b49\u8bbe\u7f6e\u62a5\u8b66\u9608\u503c(\u81ea\u884c\u5bf9\u76d1\u63a7\u62a5\u8b66\u5185\u5bb9\u7f16\u5199\u5408\u7406\u7684\u62a5\u8b66\u8303\u56f4)<\/p>\n IPMI\u76d1\u63a7\u786c\u4ef6\u670d\u52a1\u53c2\u8003\u8d44\u6599<\/p>\n 6.2 \u7cfb\u7edf\u76d1\u63a7 <\/strong><\/span><\/div>\n \u4e2d\u5c0f\u578b\u4f01\u4e1a\u57fa\u672c\u5168\u662f Linux \u670d\u52a1\u5668\uff0c\u90a3\u4e48\u6211\u4eec\u80af\u5b9a\u8981\u76d1\u63a7\u7cfb\u7edf\u8d44\u6e90\u7684\u4f7f\u7528\u60c5\u51b5\uff0c\u7cfb\u7edf\u76d1\u63a7\u662f\u76d1\u63a7\u4f53\u7cfb\u7684\u57fa\u7840\u3002<\/p>\n \u76d1\u63a7\u4e3b\u8981\u5bf9\u8c61:<\/p>\n CPU \u6709\u51e0\u4e2a\u91cd\u8981\u7684\u6982\u5ff5\uff1a\u4e0a\u4e0b\u6587\u5207\u6362\u3001\u8fd0\u884c\u961f\u5217\u548c\u4f7f\u7528\u7387\u3002<\/p>\n \u8fd9\u4e5f\u662f\u6211\u4eec CPU \u76d1\u63a7\u7684\u51e0\u4e2a\u91cd\u70b9\u6307\u6807\u3002<\/p>\n \u901a\u5e38\u60c5\u51b5\uff0c\u6bcf\u4e2a\u5904\u7406\u5668\u7684\u8fd0\u884c\u961f\u5217\u4e0d\u8981\u9ad8\u4e8e3\uff0cCPU \u5229\u7528\u7387\u4e2d\u201c\u7528\u6237\u6001\/\u5185\u6838\u6001\u201d\u6bd4\u4f8b\u7ef4\u6301\u572870\/30\uff0c\u7a7a\u95f2\u72b6\u6001\u7ef4\u6301\u572850%\uff0c\u4e0a\u4e0b\u6587\u5207\u6362\u8981\u6839\u636e\u7cfb\u7edf\u7e41\u5fd9\u7a0b\u5ea6\u6765\u7efc\u5408\u8003\u91cf\u3002<\/p>\n \u9488\u5bf9 CPU \u5e38\u7528\u7684\u5de5\u5177\u6709\uff1ahtop\u3001top\u3001vmstat\u3001mpstat\u3001dstat\u3001glances<\/p>\n Zabbix \u63d0\u4f9b\u7cfb\u7edf\u76d1\u63a7\u6a21\u677f\uff1aZabbix Agent Interface<\/p>\n \u5185\u5b58\uff1a\u901a\u5e38\u6211\u4eec\u9700\u8981\u76d1\u63a7\u5185\u5b58\u7684\u4f7f\u7528\u7387\u3001SWAP \u4f7f\u7528\u7387\u3001\u540c\u65f6\u53ef\u4ee5\u901a\u8fc7 zabbix \u63cf\u7ed8\u5185\u5b58\u4f7f\u7528\u7387\u7684\u66f2\u7ebf\u56fe\u5f62\u53d1\u73b0\u67d0\u670d\u52a1\u5185\u5b58\u6ea2\u51fa\u7b49\u3002<\/p>\n \u9488\u5bf9\u5185\u5b58\u5e38\u7528\u7684\u5de5\u5177\u6709: free\u3001top\u3001vmstat\u3001glances<\/p>\n \u5185\u5b58\u4f7f\u7528\u7387\uff1aIO \u5206\u4e3a\u78c1\u76d8 IO \u548c\u7f51\u7edc IO\u3002\u9664\u4e86\u5728\u505a\u6027\u80fd\u8c03\u4f18\u6211\u4eec\u8981\u76d1\u63a7\u66f4\u8be6\u7ec6\u7684\u6570\u636e\u5916\uff0c\u90a3\u4e48\u65e5\u5e38\u76d1\u63a7\uff0c\u53ea\u5173\u6ce8\u78c1\u76d8\u4f7f\u7528\u7387\u3001\u78c1\u76d8\u541e\u5410\u91cf\u3001\u78c1\u76d8\u5199\u5165\u7e41\u5fd9\u7a0b\u5ea6\uff0c\u7f51\u7edc\u4e5f\u662f\u76d1\u63a7\u7f51\u5361\u6d41\u91cf\u5373\u53ef\u3002<\/p>\n \u5e38\u7528\u5de5\u5177\u6709\uff1aiostat\u3001iotop\u3001df\u3001iftop\u3001sar\u3001glances<\/p>\n \u5176\u5b83\u7684\u7cfb\u7edf\u76d1\u63a7\u8fd8\u6709\u8fd0\u884c\u7684\u8fdb\u7a0b\u7aef\u53e3\u3001\u8fdb\u7a0b\u6570\u3001\u767b\u9646\u7528\u6237\u3001Open File \u7b49\uff08\u8be6\u7ec6\u67e5\u770b zabbix \u81ea\u5e26 OS Linux \u6a21\u677f\uff09<\/p>\n 6.3 \u5e94\u7528\u76d1\u63a7 <\/strong><\/span><\/div>\n \u628a\u786c\u4ef6\u76d1\u63a7\u548c\u7cfb\u7edf\u76d1\u63a7\u7814\u7a76\u660e\u767d\u540e\uff0c\u6211\u4eec\u8fdb\u4e00\u6b65\u64cd\u4f5c\u662f\u9700\u8981\u767b\u9646\u5230\u670d\u52a1\u5668\u4e0a\u67e5\u770b\u670d\u52a1\u5668\u8fd0\u884c\u4e86\u54ea\u4e9b\u670d\u52a1\uff0c\u90fd\u9700\u8981\u76d1\u63a7\u8d77\u6765\u3002<\/p>\n \u5e94\u7528\u670d\u52a1\u76d1\u63a7\u4e5f\u662f\u76d1\u63a7\u4f53\u7cfb\u4e2d\u6bd4\u8f83\u91cd\u8981\u7684\u5185\u5bb9\uff0c\u4f8b\u5982\uff1aLVS\u3001Haproxy\u3001Docker\u3001Nginx\u3001PHP\u3001Memcached\u3001Redis\u3001MySQL\u3001Rabbitmq \u7b49\u7b49\uff0c\u76f8\u5173\u7684\u670d\u52a1\u90fd\u9700\u8981\u4f7f\u7528zabbix\u76d1\u63a7\u8d77\u6765<\/p>\n \u7b14\u8005\u4e4b\u524d\u5199\u8fc7\u670d\u52a1\u76d1\u63a7\u8be6\u7ec6\u7684\u64cd\u4f5c\u8fc7\u7a0b\uff0c\u8fd9\u91cc\u5c31\u4e0d\u4e00\u4e00\u5c55\u793a\u4e86\u3002<\/p>\n Zabbix \u63d0\u4f9b\u5e94\u7528\u670d\u52a1\u76d1\u63a7\uff1aZabbix Agent UserParameter 6.4 \u7f51\u7edc\u76d1\u63a7 <\/strong><\/span><\/div>\n \u4f5c\u4e3a\u4e00\u4e2a\u9488\u5bf9\u5168\u56fd\u7528\u6237\u7684\u7535\u5546\u7f51\u7ad9\uff0c\u65f6\u523b\u638c\u63e1\u5404\u5730\u5230\u673a\u623f\u7684\u7f51\u7edc\u72b6\u6001\u4e5f\u662f\u5fc5\u987b\u7684\u3002<\/p>\n \u7f51\u7edc\u76d1\u63a7\u662f\u6211\u4eec\u6784\u5efa\u76d1\u63a7\u5e73\u53f0\u65f6\u5fc5\u987b\u8981\u8003\u8651\u7684\uff0c\u5c24\u5176\u662f\u9488\u5bf9\u6709\u591a\u4e2a\u673a\u623f\u7684\u573a\u666f\uff0c\u5404\u4e2a\u673a\u623f\u4e4b\u95f4\u7684\u7f51\u7edc\u72b6\u6001\uff0c\u673a\u623f\u548c\u5168\u56fd\u5404\u5730\u7684\u7f51\u7edc\u72b6\u6001\u90fd\u662f\u6211\u4eec\u9700\u8981\u91cd\u70b9\u5173\u6ce8\u7684\u5bf9\u8c61\uff0c\u90a3\u4e48\u5982\u4f55\u638c\u63e1\u8fd9\u4e9b\u72b6\u6001\u4fe1\u606f\u5462\uff1f\u6211\u4eec\u9700\u8981\u501f\u52a9\u4e8e\u7f51\u7edc\u76d1\u63a7\u5de5\u5177 Smokeping\u3002<\/p>\n Smokeping \u662f rrdtool \u7684\u4f5c\u8005 Tobi Oetiker \u7684\u4f5c\u54c1\uff0c\u662f\u7528 Perl \u5199\u7684\uff0c\u4e3b\u8981\u662f\u76d1\u89c6\u7f51\u7edc\u6027\u80fd\uff0cwww \u670d\u52a1\u5668\u6027\u80fd\uff0cdns \u67e5\u8be2\u6027\u80fd\u7b49\uff0c\u4f7f\u7528 rrdtool \u7ed8\u56fe\uff0c\u800c\u4e14\u652f\u6301\u5206\u5e03\u5f0f\uff0c\u76f4\u63a5\u4ece\u591a\u4e2a agent \u8fdb\u884c\u6570\u636e\u7684\u6c47\u603b\u3002<\/p>\n \u540c\u65f6\uff0c\u7531\u4e8e\u81ea\u5df1\u76d1\u63a7\u70b9\u6bd4\u8f83\u5c11\uff0c\u8fd8\u53ef\u4ee5\u501f\u52a9\u5f88\u591a\u5546\u4e1a\u7684\u76d1\u63a7\u5de5\u5177\uff0c\u6bd4\u5982\u76d1\u63a7\u5b9d\u3001\u542c\u4e91\u3001\u57fa\u8c03\u3001\u535a\u745e\u7b49\u3002\u540c\u65f6\u8fd9\u4e9b\u670d\u52a1\u63d0\u4f9b\u5546\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u4f60\u76d1\u63a7 CDN \u7684\u72b6\u6001\u3002<\/p>\n 6.5 \u6d41\u91cf\u5206\u6790 <\/strong><\/span><\/div>\n \u7f51\u7ad9\u6d41\u91cf\u5206\u6790\u5bf9\u4e8e\u8fd0\u7ef4\u4eba\u5458\u6765\u8bf4\uff0c\u66f4\u662f\u4e00\u95e8\u5fc5\u987b\u638c\u63e1\u7684\u77e5\u8bc6\u4e86\u3002\u6bd4\u5982\u5bf9\u4e8e\u4e00\u5bb6\u7535\u5546\u516c\u53f8\u6765\u8bf4\uff1a<\/p>\n \u901a\u8fc7\u5bf9\u8ba2\u5355\u6765\u6e90\u7684\u7edf\u8ba1\u548c\u5206\u6790\uff0c\u53ef\u4ee5\u4e86\u89e3\u6211\u4eec\u5728\u67d0\u4e2a\u7f51\u7ad9\u4e0a\u7684\u5e7f\u544a\u6295\u5165\u6709\u6ca1\u6709\u6536\u5230\u9884\u671f\u7684\u6548\u679c\u3002<\/p>\n \u53ef\u4ee5\u533a\u5206\u4e0d\u540c\u5730\u533a\u7684\u8bbf\u95ee\u4eba\u6570\u3001\u751a\u81f3\u5546\u54c1\u4ea4\u6613\u989d\u7b49\u3002<\/p>\n \u767e\u5ea6\u7edf\u8ba1\u3001google \u5206\u6790\u3001\u7ad9\u957f\u5de5\u5177\u7b49\u7b49\uff0c\u53ea\u9700\u8981\u5728\u9875\u9762\u5d4c\u5165\u4e00\u4e2ajs\u5373\u53ef\u3002<\/p>\n \u4f46\u662f\uff0c\u6570\u636e\u59cb\u7ec8\u662f\u5728\u5bf9\u65b9\u624b\u4e2d\uff0c\u4e2a\u6027\u5316\u5b9a\u5236\u4e0d\u65b9\u4fbf\uff0c\u4e8e\u662f google \u51fa\u4e00\u4e2a\u53eb piwik \u7684\u5f00\u6e90\u5206\u6790\u5de5\u5177<\/p>\n 6.6 \u65e5\u5fd7\u76d1\u63a7 <\/strong><\/span><\/div>\n \u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u968f\u7740\u7cfb\u7edf\u7684\u8fd0\u884c\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u4ea7\u751f\u7cfb\u7edf\u65e5\u5fd7\uff0c\u5e94\u7528\u7a0b\u5e8f\u4f1a\u4ea7\u751f\u5e94\u7528\u7a0b\u5e8f\u7684\u8bbf\u95ee\u65e5\u5fd7\u3001\u9519\u8bef\u65e5\u5fd7\u3001\u8fd0\u884c\u65e5\u5fd7\u3001\u7f51\u7edc\u65e5\u5fd7\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 ELK \u6765\u8fdb\u884c\u65e5\u5fd7\u76d1\u63a7\u3002<\/p>\n \u5bf9\u4e8e\u65e5\u5fd7\u76d1\u63a7\u6765\u8bf4\uff0c\u6700\u89c1\u7684\u9700\u6c42\u5c31\u662f\u6536\u96c6\u3001\u5b58\u50a8\u3001\u67e5\u8be2\u3001\u5c55\u793a\u3002<\/p>\n \u5f00\u6e90\u793e\u533a\u6b63\u597d\u6709\u76f8\u5bf9\u5e94\u7684\u5f00\u6e90\u9879\u76ee\uff1a logstash\uff08\u6536\u96c6\uff09 + elasticsearch\uff08\u5b58\u50a8+\u641c\u7d22\uff09 + kibana\uff08\u5c55\u793a\uff09<\/p>\n \u6211\u4eec\u5c06\u8fd9\u4e09\u4e2a\u7ec4\u5408\u8d77\u6765\u7684\u6280\u672f\u79f0\u4e4b\u4e3a ELK Stack\uff0c\u6240\u4ee5\u8bf4 ELK Stack \u6307\u7684\u662f Elasticsearch\u3001Logstash\u3001Kibana \u6280\u672f\u6808\u7684\u7ed3\u5408\u3002<\/p>\n \u5982\u679c\u6536\u96c6\u4e86\u65e5\u5fd7\u4fe1\u606f\uff0c\u90a3\u4e48\u5982\u679c\u90e8\u7f72\u66f4\u65b0\u6709\u5f02\u5e38\u51fa\u73b0\uff0c\u53ef\u4ee5\u7acb\u5373\u5728 kibana \u4e0a\u770b\u5230\u3002<\/p>\n \u5f53\u7136\u4e5f\u53ef\u4ee5\u901a\u8fc7Zabbix\u8fc7\u6ee4\u9519\u8bef\u65e5\u5fd7\u6765\u8fdb\u884c\u544a\u8b66\u3002<\/p>\n 6.7 \u5b89\u5168\u76d1\u63a7<\/strong><\/span><\/div>\n \u867d\u7136Linux\u5f00\u6e90\u7684\u5b89\u5168\u4ea7\u54c1\u4e0d\u5c11\uff0c\u6bd4\u5982\u56db\u5c42 iptables\uff0c\u4e03\u5c42WEB\u9632\u62a4 Nginx+lua \u5b9e\u73b0 WAF\uff0c\u6700\u540e\u5c06\u76f8\u5173\u7684\u65e5\u5fd7\u90fd\u6536\u81f3 ELK Stack\uff0c\u901a\u8fc7\u56fe\u5f62\u5316\u8fdb\u884c\u4e0d\u540c\u7684\u653b\u51fb\u7c7b\u578b\u5c55\u793a\u3002\u4f46\u662f\u59cb\u7ec8\u662f\u4e00\u4ef6\u6bd4\u8f83\u8017\u8d39\u65f6\u95f4\u7684\u4e8b\u60c5\uff0c\u5e76\u4e14\u4e2a\u4eba\u8ba4\u4e3a\u6548\u679c\u5e76\u4e0d\u662f\u5f88\u597d\u3002\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u63a5\u5165\u7b2c\u4e09\u65b9\u670d\u52a1\u5382\u5546\u3002<\/p>\n \u4e09\u65b9\u5382\u5546\u63d0\u4f9b\u5168\u9762\u7684\u6f0f\u6d1e\u5e93\uff0c\u6db5\u76d6\u670d\u52a1\u3001\u540e\u95e8\u3001\u6570\u636e\u5e93\u3001\u914d\u7f6e\u68c0\u6d4b\u3001CGI\u3001SMTP \u7b49\u591a\u79cd\u7c7b\u578b<\/p>\n \u5168\u9762\u68c0\u6d4b\u4e3b\u673a\u3001Web \u5e94\u7528\u6f0f\u6d1e\u81ea\u4e3b\u6316\u6398\u548c\u884c\u4e1a\u5171\u4eab\u76f8\u7ed3\u5408\u7b2c\u4e00\u65f6\u95f4\u66f4\u65b0 0day \u6f0f\u6d1e\uff0c\u675c\u7edd\u6700\u65b0\u5b89\u5168\u9690\u60a3<\/p>\n 6.8 API\u76d1\u63a7<\/strong><\/span><\/div>\n \u7531\u4e8e API \u53d8\u5f97\u8d8a\u6765\u8d8a\u91cd\u8981\uff0c\u5f88\u663e\u7136\u6211\u4eec\u4e5f\u9700\u8981\u8fd9\u6837\u7684\u6570\u636e\u6765\u5206\u8fa8\u6211\u4eec\u63d0\u4f9b\u7684 API \u662f\u5426\u80fd\u591f\u6b63\u5e38\u8fd0\u4f5c\u3002 6.9 \u6027\u80fd\u76d1\u63a7<\/strong><\/span><\/div>\n \u5168\u9762\u76d1\u63a7\u7f51\u9875\u6027\u80fd\uff0cDNS \u54cd\u5e94\u65f6\u95f4\u3001HTTP \u5efa\u7acb\u8fde\u63a5\u65f6\u95f4\u3001\u9875\u9762\u6027\u80fd\u6307\u6570\u3001\u54cd\u5e94\u65f6\u95f4\u3001\u53ef\u7528\u7387\u3001\u5143\u7d20\u5927\u5c0f\u7b49 6.10 \u4e1a\u52a1\u76d1\u63a7<\/strong><\/span><\/div>\n \u6ca1\u6709\u4e1a\u52a1\u6307\u6807\u76d1\u63a7\u7684\u76d1\u63a7\u5e73\u53f0\uff0c\u4e0d\u662f\u4e00\u4e2a\u5b8c\u5584\u7684\u76d1\u63a7\u5e73\u53f0\uff0c\u901a\u5e38\u5728\u6211\u4eec\u7684\u76d1\u63a7\u7cfb\u7edf\u4e2d\uff0c\u5fc5\u987b\u5c06\u6211\u4eec\u91cd\u8981\u7684\u4e1a\u52a1\u6307\u6807\u8fdb\u884c\u76d1\u63a7\uff0c\u5e76\u8bbe\u7f6e\u9608\u503c\u8fdb\u884c\u544a\u8b66\u901a\u77e5\u3002<\/p>\n \u4f8b\u5982\u7535\u5546\u884c\u4e1a\uff1a<\/p>\n \u6bcf\u5206\u949f\u4ea7\u751f\u591a\u5c11\u8ba2\u5355\uff1b<\/p>\n \u6bcf\u5206\u949f\u6ce8\u518c\u591a\u5c11\u7528\u6237\uff1b<\/p>\n \u6bcf\u5929\u6709\u591a\u5c11\u6d3b\u8dc3\u7528\u6237\uff1b<\/p>\n \u6bcf\u5929\u6709\u591a\u5c11\u63a8\u5e7f\u6d3b\u52a8\uff1b<\/p>\n \u63a8\u5e7f\u6d3b\u52a8\u5f15\u5165\u591a\u5c11\u7528\u6237\uff1b<\/p>\n \u63a8\u5e7f\u6d3b\u52a8\u5f15\u5165\u591a\u5c11\u6d41\u91cf\uff1b<\/p>\n \u63a8\u5e7f\u6d3b\u52a8\u5f15\u5165\u591a\u5c11\u5229\u6da6\uff1b<\/p>\n \u7b49\u7b49 \u91cd\u8981\u6307\u6807\u90fd\u53ef\u4ee5\u52a0\u5230 Zabbix \u4e0a\uff0c\u7136\u540e\u901a\u8fc7 screen \u5c55\u793a\u3002<\/p>\n 7\u3001\u76d1\u63a7\u62a5\u8b66<\/strong><\/div>\n \u6545\u969c\u62a5\u8b66\u901a\u77e5\u7684\u65b9\u5f0f\u6709\u5f88\u591a\u79cd\uff0c\u5f53\u7136\u6211\u4eec\u6700\u5e38\u7528\u7684\u8fd8\u662f\u77ed\u4fe1\uff0c\u90ae\u4ef6\uff0c\u77ed\u4fe1\u62a5\u8b66<\/p>\n 8\u3001\u62a5\u8b66\u5904\u7406 <\/strong><\/div>\n \u4e00\u822c\u62a5\u8b66\u540e\u6211\u4eec\u6545\u969c\u5982\u4f55\u5904\u7406\uff0c\u9996\u5148\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u544a\u8b66\u5347\u7ea7\u673a\u5236\u5148\u81ea\u52a8\u5904\u7406\uff0c\u6bd4\u5982Nginx\u670d\u52a1down\u4e86\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u544a\u8b66\u5347\u7ea7\u81ea\u52a8\u542f\u52a8Nginx\u3002\u3000\u3000\u4f46\u662f\u5982\u679c\u4e00\u822c\u4e1a\u52a1\u51fa\u73b0\u4e86\u4e25\u91cd\u6545\u969c\uff0c\u6211\u4eec\u901a\u5e38\u6839\u636e\u6545\u969c\u7684\u7ea7\u522b\uff0c\u6545\u969c\u7684\u4e1a\u52a1\uff0c\u6765\u6307\u6d3e\u4e0d\u540c\u7684\u8fd0\u7ef4\u4eba\u5458\u8fdb\u884c\u5904\u7406\u3002\u3000\u3000\u5f53\u7136\u4e0d\u540c\u4e1a\u52a1\u5f62\u6001\u3001\u4e0d\u540c\u67b6\u6784\u3001\u4e0d\u540c\u670d\u52a1\u53ef\u80fd\u91c7\u7528\u7684\u65b9\u5f0f\u90fd\u4e0d\u540c\uff0c\u8fd9\u4e2a\u6ca1\u6709\u4e00\u4e2a\u56fa\u5b9a\u7684\u6a21\u5f0f\u5957\u7528\u3002<\/p>\n 9\u3001\u9762\u8bd5\u76d1\u63a7 <\/strong><\/div>\n \u5728\u8fd0\u7ef4\u9762\u8bd5\u4e2d\uff0c\u5e38\u5e38\u4f1a\u88ab\u95ee\u5230\u76d1\u63a7\u76f8\u5173\u7684\u95ee\u9898\uff0c\u90a3\u4e48\u8fd9\u4e2a\u95ee\u9898\u5230\u5e95\u8be5\u5982\u4f55\u6765\u56de\u7b54\uff0c\u6211\u9488\u5bf9\u672c\u6587\u7ed9\u5927\u5bb6\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u56de\u7b54\u601d\u8def\u3002<\/p>\n \u786c\u4ef6\u76d1\u63a7\u3002 \u901a\u8fc7 SNMP \u6765\u8fdb\u884c\u8def\u7531\u5668\u4ea4\u6362\u673a\u7684\u76d1\u63a7(\u8fd9\u4e9b\u53ef\u4ee5\u8ddf\u4e00\u4e9b\u5382\u5546\u6c9f\u901a\u6765\u4e86\u89e3\u5982\u4f55\u505a)\u3001\u670d\u52a1\u5668\u7684\u6e29\u5ea6\u4ee5\u53ca\u5176\u4ed6\uff0c\u53ef\u4ee5\u901a\u8fc7IPMI\u6765\u5b9e\u73b0\u3002\u5f53\u7136\u5982\u679c\u6ca1\u6709\u786c\u4ef6\u5168\u90fd\u662f\u4e91\uff0c\u76f4\u63a5\u8df3\u8fc7\u8fd9\u4e00\u6b65\u9aa4\u3002<\/p>\n \u7cfb\u7edf\u76d1\u63a7\u3002 \u5982 CPU \u7684\u8d1f\u8f7d\uff0c\u4e0a\u4e0b\u6587\u5207\u6362\u3001\u5185\u5b58\u4f7f\u7528\u7387\u3001\u78c1\u76d8\u8bfb\u5199\u3001\u78c1\u76d8\u4f7f\u7528\u7387\u3001\u78c1\u76d8 inode \u4f7f\u7528\u7387\u3002\u5f53\u7136\u8fd9\u4e9b\u90fd\u662f\u9700\u8981\u914d\u7f6e\u89e6\u53d1\u5668\uff0c\u56e0\u4e3a\u9ed8\u8ba4\u592a\u4f4e\u4f1a\u9891\u7e41\u62a5\u8b66\u3002<\/p>\n \u670d\u52a1\u76d1\u63a7\u3002 \u6bd4\u5982\u516c\u53f8\u7528\u7684 LAMP \u67b6\u6784\uff0cnginx \u81ea\u5e26 Status \u6a21\u5757\u3001PHP\u4e5f\u6709\u76f8\u5173\u7684 Status\u3001MySQL \u53ef\u4ee5\u901a\u8fc7 percona \u5b98\u65b9\u5de5\u5177\u6765\u8fdb\u884c\u76d1\u63a7\u3001Redis \u8fd9\u4e9b\u901a\u8fc7\u81ea\u8eab\u7684 info \u83b7\u53d6\u4fe1\u606f\u8fdb\u884c\u8fc7\u6ee4\u7b49\u3002\u65b9\u6cd5\u90fd\u7c7b\u4f3c\u3002\u8981\u4e48\u670d\u52a1\u81ea\u5e26\u3002\u8981\u4e48\u901a\u8fc7\u811a\u672c\u6765\u5b9e\u73b0\u60f3\u76d1\u63a7\u7684\u5185\u5bb9\uff0c\u4ee5\u53ca\u62a5\u8b66\u548c\u56fe\u5f62\u529f\u80fd\u3002<\/p>\n \u7f51\u7edc\u76d1\u63a7\u3002 \u5982\u679c\u662f\u4e91\u4e3b\u673a\u53c8\u4e0d\u662f\u8de8\u673a\u623f\uff0c\u90a3\u4e48\u53ef\u4ee5\u9009\u62e9\u4e0d\u76d1\u63a7\u7f51\u7edc\u3002\u5f53\u7136\u4f60\u8bf4\u6211\u4eec\u662f\u8de8\u673a\u623f\u4ee5\u53ca\u5982\u4f55\u5982\u4f55\u3002\u63a8\u8350\u4f7f\u7528smokeping\u6765\u505a\u7f51\u7edc\u76f8\u5173\u7684\u76d1\u63a7\u3002\u6216\u8005\u76f4\u63a5\u4ea4\u7ed9\u4f60\u4eec\u7684\u7f51\u7edc\u5de5\u7a0b\u5e08\u6765\u505a\uff0c\u56e0\u4e3a\u672f\u4e1a\u6709\u4e13\u653b\u3002<\/p>\n \u5b89\u5168\u76d1\u63a7\u3002 \u5982\u679c\u662f\u4e91\u4e3b\u673a\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u81ea\u5e26\u7684\u5b89\u5168\u9632\u62a4\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u4f7f\u7528 iptables\u3002\u5982\u679c\u662f\u786c\u4ef6\uff0c\u90a3\u4e48\u63a8\u8350\u4f7f\u7528\u786c\u4ef6\u9632\u706b\u5899\u3002\u4f7f\u7528\u4e91\u53ef\u4ee5\u8d2d\u4e70\u9632 DDoS\uff0c\u907f\u514d\u51fa\u73b0\u6545\u969c\u5bfc\u81f4 down \u673a\u4e00\u5929\u3002\u5982\u679c\u662f\u7cfb\u7edf\uff0c\u90a3\u4e48\u6743\u9650\u3001\u5bc6\u7801\u3001\u5907\u4efd\u3001\u6062\u590d\u7b49\u57fa\u7840\u65b9\u6848\u8981\u505a\u597d\u3002web \u540c\u65f6\u4e5f\u53ef\u4ee5\u4f7f\u7528 Nginx+Lua \u6765\u5b9e\u73b0\u4e00\u4e2aweb\u5c42\u9762\u7684\u9632\u706b\u5899\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u4f7f\u7528\u96c6\u6210\u597d\u7684Openresty\u3002<\/p>\n Web\u76d1\u63a7\u3002 web \u76d1\u63a7\u7684\u8bdd\u9898\u5176\u5b9e\u8fd8\u662f\u5f88\u591a\u3002\u6bd4\u5982\u53ef\u4ee5\u4f7f\u7528\u81ea\u5e26\u7684 web \u76d1\u63a7\u6765\u76d1\u63a7\u9875\u9762\u76f8\u5173\u7684\u5ef6\u8fdf\u3001js\u54cd\u5e94\u65f6\u95f4\u3001\u4e0b\u8f7d\u65f6\u95f4\u7b49\u7b49\u3002\u8fd9\u91cc\u6211\u63a8\u8350\u4f7f\u7528\u4e13\u4e1a\u7684\u5546\u4e1a\u8f6f\u4ef6,\u76d1\u63a7\u5b9d\u6216\u542c\u4e91\u6765\u5b9e\u73b0\u3002\u6bd5\u7adf\u4eba\u5bb6\u5168\u56fd\u5404\u5730\u90fd\u6709\u673a\u623f\u3002\uff08\u5982\u679c\u672c\u8eab\u662f\u591a\u673a\u623f\u90a3\u5c31\u53e6\u8bf4\u4e86\uff09<\/p>\n \u65e5\u5fd7\u76d1\u63a7\u3002 \u5982\u679c\u662f web \u7684\u8bdd\u53ef\u4ee5\u4f7f\u7528\u76d1\u63a7 Nginx \u768450x\u300140x\u7684\u9519\u8bef\u65e5\u5fd7\uff0cPHP \u7684 ERROR \u65e5\u5fd7\u3002\u5176\u5b9e\u8fd9\u4e9b\u9700\u6c42\u65e0\u975e\u662f\uff0c\u6536\u96c6\u3001\u5b58\u50a8\u3001\u67e5\u8be2\u3001\u5c55\u793a\uff0c\u6211\u4eec\u5176\u5b9e\u53ef\u4ee5\u4f7f\u7528\u5f00\u6e90\u7684 ELKstack \u6765\u5b9e\u73b0\u3002Logstash\uff08\u6536\u96c6\uff09\u3001elasticsearch\uff08\u5b58\u50a8+\u641c\u7d22\uff09\u3001kibana\uff08\u5c55\u793a\uff09 \u6d41\u91cf\u5206\u6790\u3002 \u5e73\u65f6\u6211\u4eec\u5206\u6790\u65e5\u5fd7\u90fd\u662f\u62ff awk sed xxx \u4e00\u5806\u5de5\u5177\u6765\u5b9e\u73b0\u3002\u8fd9\u6837\u5bf9\u6211\u4eec\u7edf\u8ba1ip\u3001pv\u3001uv\u4e0d\u662f\u5f88\u65b9\u4fbf\u3002\u90a3\u4e48\u53ef\u4ee5\u4f7f\u7528\u767e\u5ea6\u7edf\u8ba1\u3001 google \u7edf\u8ba1\u3001\u5546\u4e1a\uff0c\u8ba9\u5f00\u53d1\u5d4c\u5165\u4ee3\u7801\u5373\u53ef\u3002\u4e3a\u4e86\u907f\u514d\u9690\u79c1\u4e5f\u53ef\u4ee5\u4f7f\u7528 piwik \u6765\u505a\u76f8\u5173\u7684\u6d41\u91cf\u5206\u6790\u3002<\/p>\n \u53ef\u89c6\u5316\u3002 \u901a\u8fc7 screen \u4ee5\u53ca\u5f15\u5165\u4e00\u4e9b\u7b2c\u4e09\u65b9\u7684\u5e93\u6765\u7f8e\u5316\u754c\u9762\uff0c\u540c\u65f6\u6211\u4eec\u4e5f\u9700\u8981\u77e5\u9053\uff0c\u8ba2\u5355\u91cf\u7a81\u7136\u589e\u52a0\u3001\u7a81\u7136\u51cf\u5c11\u3002\u6216\u8005\u8bf4\u7a81\u7136\u6765\u4e86\u4e00\u5927\u6ce2\u6d41\u91cf\uff0c\u8fd9\u6d41\u91cf\u4ece\u54ea\u513f\u6765\uff0c\u662f\u4e0d\u662f\u63a8\u5e7f\u4e86\uff0c\u8fd8\u662f\u88ab\u653b\u51fb\u4e86\u3002\u53ef\u4ee5\u7ed3\u5408\u76d1\u63a7\u5e73\u53f0\u6765\u68b3\u7406\u5404\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u4e1a\u52a1\u5173\u7cfb\u3002<\/p>\n \u81ea\u52a8\u5316\u76d1\u63a7\u3002 \u5982\u4e0a\u6211\u4eec\u505a\u4e86\u90a3\u4e48\u591a\u7684\u5de5\u4f5c\uff0c\u5f53\u7136\u4e0d\u80fd\u662f\u4e00\u53f0\u4e00\u53f0\u7684\u6765\u52a0 key \u5b9e\u73b0\u3002\u53ef\u4ee5\u901a\u8fc7 Zabbix \u7684\u4e3b\u52a8\u6a21\u5f0f\u4ee5\u53ca\u88ab\u52a8\u6a21\u5f0f\u6765\u5b9e\u73b0\u3002\u5f53\u7136\u6700\u597d\u8fd8\u662f\u901a\u8fc7 API \u6765\u5b9e\u73b0\u3002 \u771f\u6b63\u60f3\u505a\u5230\u66f4\u5b8c\u6574\u7684\u76d1\u63a7\u4f53\u7cfb\uff0c\u76ee\u524d\u7684\u5f00\u6e90\u8f6f\u4ef6\uff0c\u786e\u5b9e\u65e0\u6cd5\u5f88\u597d\u7684\u6ee1\u8db3\uff0c\u6709\u6761\u4ef6\u7684\u516c\u53f8\u90fd\u5f00\u59cb\u81ea\u5df1\u5f00\u53d1\u81ea\u5df1\u7684\u76d1\u63a7\u7cfb\u7edf\uff0c\u6bd4\u5982\u5c0f\u7c73\u5f00\u6e90\u7684Open-Falcon\u3002\u4e5f\u6709\u6bd4\u8f83\u597d\u7684\u5f00\u6e90\u7684\u76d1\u63a7\u6846\u67b6\u5982Sensu\u7b49\uff0c\u518d\u52a0\u4e0ainfluxdb\u3001grafana\u53ef\u4ee5\u7528\u6765\u5b9a\u5236\u7b26\u5408\u81ea\u5df1\u4f01\u4e1a\u7684\u76d1\u63a7\u5e73\u53f0\u3002<\/p>\n \u5f53\u7136\u6211\u8bf4\u7684\u8fd8\u662f\u5f88\u7b80\u5355\uff0c\u7ecf\u9a8c\u6709\u9650\u3001\u601d\u8def\u4e5f\u4ec5\u80fd\u63d0\u4f9b\u8fd9\u4e48\u591a\u3002\u3000\u3000\u4ee5\u4e0a\u5c31\u662f\u6211\u5206\u4eab\u5bf9\u76d1\u63a7\u7684\u4e00\u4e9b\u65b9\u6cd5\u548c\u5fc3\u5f97\u3002\uff08\u8001\u9e1f\u52ff\u55b7\uff09<\/p>\n \n |