{"id":293805,"date":"2024-10-23T04:02:28","date_gmt":"2024-10-22T20:02:28","guid":{"rendered":"https:\/\/lrxjmw.cn\/mqddxtjkgjgz.html"},"modified":"2024-10-23T04:02:28","modified_gmt":"2024-10-22T20:02:28","slug":"mqddxtjkgjgz","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mqddxtjkgjgz.html","title":{"rendered":"Munin\uff1a\u5f3a\u5927\u7684\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\uff0c\u5de5\u4f5c\u539f\u7406\u4e0e\u914d\u7f6e\u6b65\u9aa4\u8be6\u89e3"},"content":{"rendered":"

\u914d\u7f6e\u5b89\u88c5\u8def\u5f84_\u914d\u7f6e\u5b89\u88c5jdk_linux\u5b89\u88c5\u914d\u7f6eapache<\/p>\n

Munin\u662f\u4e00\u6b3e\u7c7b\u4f3cRRDtool[]\u7684\u6781\u5176\u68d2\u7684\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\uff0c\u5b83\u80fd\u63d0\u4f9b\u7ed9\u4f60\u591a\u65b9\u9762\u7684\u7cfb\u7edf\u6027\u80fd\u4fe1\u606f\uff0c\u6bd4\u5982c\u76d8\u3001\u7f51\u7edc\u3001\u8fdb\u7a0b\u3001\u7cfb\u7edf\u548c\u7528\u6237\u3002\u90a3\u4e9b\u662fMunin\u9ed8\u8ba4\u76d1\u63a7\u7684\u5185\u5bb9\u3002<\/p>\n

Munin\u600e\u4e48\u5de5\u4f5c\uff1f<\/p>\n

Munin\u4ee5\u987e\u5ba2\u7aef-\u670d\u52a1\u5668\u6a21\u5f0f\u8fd0\u884c\u3002\u4e3b\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u7684Munin\u670d\u52a1\u5668\u8fdb\u7a0b\u4f1a\u4ece\u672c\u5730\u8fd0\u884c\u7684\u987e\u5ba2\u7aef\u5b88\u62a4\u8fdb\u7a0b\uff08Munin\u53ef\u4ee5\u76d1\u63a7\u5b83\u81ea\u5df1\u7684\u8d44\u6e90\uff09\u6216\u5219\u8fdc\u7a0b\u987e\u5ba2\u7aef\uff08Munin\u53ef\u4ee5\u76d1\u63a7\u4e0a\u767e\u53f0\u673a\u5668\uff09\u641c\u96c6\u6570\u636e\uff0c\u4e4b\u540e\u5728\u5b83\u7684web\u754c\u9762\u4e0a\u4ee5\u56fe\u5f62\u7684\u65b9\u6cd5\u663e\u793a\u4e0b\u6765\u3002<\/p>\n

\u5728\u670d\u52a1\u5668\u4e2d\u914d\u7f6eMunin<\/p>\n

\u8981\u914d\u7f6e\u670d\u52a1\u5668\u7aef\u548c\u987e\u5ba2\u7aeflinux\u5b89\u88c5\u914d\u7f6eapache<\/strong>\uff0c\u6211\u4eec\u987b\u8981\u5b8c\u6210\u4ee5\u4e0b\u4e24\u6b65\u3002<\/p>\n

\u5b89\u88c5Munin\u670d\u52a1\u5668\u8f6f\u4ef6\u5305\u5e76\u914d\u7f6e\uff0c\u81f4\u4f7f\u5b83\u80fd\u4ece\u987e\u5ba2\u7aef\u641c\u96c6\u6570\u636e\u3002<\/p>\n

\u5b89\u88c5Munin\u987e\u5ba2\u7aef\uff0c\u81f4\u4f7f\u670d\u52a1\u5668\u80fd\u8054\u63a5\u5230\u987e\u5ba2\u7aef\u5b88\u62a4\u8fdb\u7a0b\u8fdb\u884c\u6570\u636e\u641c\u96c6\u3002<\/p>\n

\u5728Linux<\/a>\u4e0a\u5b89\u88c5munin\u670d\u52a1\u5668\u7aef<\/p>\n

\u5728\u57fa\u4e8eUbuntu\/Debian\u7684\u673a\u5668\u4e0a\u5b89\u88c5Munin\u670d\u52a1\u5668\uff1a<\/p>\n

\n

  1. apt-get<\/span> install munin apache2<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

    \u5728\u57fa\u4e8eRedhat\/CentOS\u7684\u673a\u5668\u4e0a\u5b89\u88c5Munin\u670d\u52a1\u5668\uff1a<\/p>\n

    \u5728\u57fa\u4e8eRedhat\u7684\u673a\u5668\u4e0a\u5b89\u88c5Munin\u4e4b\u524d\uff0c\u4f60\u987b\u8981\u786e\u4fdd\uff0c\u7531\u4e8e\u57fa\u4e8eRedhat\u7684\u673a\u5668\u7684\u8f6f\u4ef6\u5e93\u623f\u9ed8\u8ba4\u6ca1\u6709Munin\u3002<\/p>\n

    \n

    1. yum<\/span> install munin httpd<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

      \u5728Linux\u4e0a\u914d\u7f6eMunin\u670d\u52a1\u5668\u7aef<\/p>\n

      \u4e0b\u8fb9\u662f\u6211\u4eec\u8981\u5728\u670d\u52a1\u5668\u4e0a\u542f\u52a8Munini\u6240\u8fdb\u884c\u7684\u6b65\u9aa4\uff1a<\/p>\n

      \u5728\/etc\/munin\/munin.conf\u4e2d\u6dfb\u52a0\u987b\u8981\u76d1\u63a7\u7684\u4e3b\u673a\u8be6\u60c5\u3002<\/p>\n

      \u914d\u7f6eapacheweb\u670d\u52a1\u5668\u4f7f\u5176\u5305\u62ecmunin\u914d\u7f6e\u3002<\/p>\n

      \u4e3aweb\u754c\u9762\u521b\u5efa\u7528\u6237\u540d\u548c\u5bc6\u7801<\/p>\n

      \u91cd\u542fapache\u670d\u52a1\u5668<\/p>\n

      \u6b65\u9aa41<\/p>\n

      \u5728\/etc\/munin\/munin.conf\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e3b\u673a\u6761\u76ee\u3002\u8c03\u5230\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u8981\u76d1\u63a7\u7684\u987e\u5ba2\u7aef\u3002\u5728\u8fd9\u4e2a\u4e8b\u4f8b\u4e2d\uff0c\u6211\u6dfb\u52a0\u4e86\u8981\u76d1\u63a7\u7684\u6570\u636e\u5e93\u670d\u52a1\u5668\u548c\u5b83\u7684IP\u5730\u5740\u3002<\/p>\n

      \u793a\u4f8b\uff1a<\/p>\n

      \n

      1. [<\/span>db<\/span>.<\/span>linuxnix<\/span>.<\/span>com<\/span>]<\/span><\/code><\/p><\/li>

      2. address <\/span>192.168<\/span>.<\/span>1.25<\/span><\/code><\/p><\/li>

      3. use_node_name <\/span>yes<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

        \u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\u3002<\/p>\n

        \u6b65\u9aa42<\/p>\n

        \u5728\/etc\/apache2\/conf.d\u76ee\u5f55\u4e2d\u7f16\u8f91\u6216\u521b\u5efa\u6587\u4ef6munin.conf\u7528\u4e8e\u5305\u62ecMunin\u548cApache\u76f8\u5173\u7684\u914d\u7f6e\u3002\u53e6\u5916\u6ce8\u610f\u4e00\u70b9\uff0c\u9ed8\u8ba4\u5176\u5b83\u548cweb\u76f8\u5173\u7684Munin\u914d\u7f6e\u4fdd\u5b58\u5728\/var\/www\/munin\u76ee\u5f55\u3002<\/p>\n

        \n

        1. vi<\/span> <\/span>\/<\/span>etc<\/span>\/<\/span>apache2<\/span>\/<\/span>conf<\/span>.<\/span>d<\/span>\/<\/span>munin<\/span>.<\/span>conf<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

          \u5185\u5bb9\uff1a<\/p>\n

          \n

          1. Alias<\/span> <\/span>\/<\/span>munin <\/span>\/<\/span>var<\/span>\/<\/span>www<\/span>\/<\/span>munin<\/span><\/code><\/p><\/li>

          2. <<\/span>Directory<\/span> <\/span>\/<\/span>var<\/span>\/<\/span>www<\/span>\/<\/span>munin<\/span>><\/span><\/code><\/p><\/li>

          3. <\/span>Order<\/span> allow<\/span>,<\/span>deny<\/span><\/code><\/p><\/li>

          4. <\/span>Allow<\/span> <\/span>from<\/span> localhost <\/span>127.0<\/span>.<\/span>0.0<\/span>\/<\/span>8<\/span> <\/span>::<\/span>1<\/span><\/code><\/p><\/li>

          5. <\/span>AllowOverride<\/span> <\/span>None<\/span><\/code><\/p><\/li>

          6. <\/span>Options<\/span> <\/span>ExecCGI<\/span> <\/span>FollowSymlinks<\/span><\/code><\/p><\/li>

          7. <\/span>AddHandler<\/span> cgi<\/span>-<\/span>script<\/span> <\/span>.<\/span>cgi<\/span><\/code><\/p><\/li>

          8. <\/span>DirectoryIndex<\/span> index<\/span>.<\/span>cgi<\/span><\/code><\/p><\/li>

          9. <\/span>AuthUserFile<\/span> <\/span>\/<\/span>etc<\/span>\/<\/span>munin<\/span>\/<\/span>munin<\/span>.<\/span>passwd<\/span><\/code><\/p><\/li>

          10. <\/span>AuthType<\/span> basic<\/span><\/code><\/p><\/li>

          11. <\/span>AuthName<\/span> <\/span>\"Munin stats\"<\/span><\/code><\/p><\/li>

          12. <\/span>require<\/span> valid<\/span>-<\/span>user<\/span><\/code><\/p><\/li>

          13. <\/span><<\/span>IfModule<\/span> mod_expires<\/span>.<\/span>c<\/span>><\/span><\/code><\/p><\/li>

          14. <\/span>ExpiresActive<\/span> <\/span>On<\/span><\/code><\/p><\/li>

          15. <\/span>ExpiresDefault<\/span> M310<\/span><\/code><\/p><\/li>

          16. <\/span><\/<\/span>IfModule<\/span>><\/span><\/code><\/p><\/li>

          17. <\/<\/span>Directory<\/span>><\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

            \u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\u3002<\/p>\n

            \u6b65\u9aa43<\/p>\n

            \u73b0\u4eca\u4e3a\u67e5\u770bmunin\u7684\u56fe\u793a\u800c\u521b\u5efa\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a<\/p>\n

            \n

            1. htpasswd <\/span>-<\/span>c <\/span>\/<\/span>etc<\/span>\/<\/span>munin<\/span>\/<\/span>munin<\/span>-<\/span>htpasswd munin<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

              \u6ce8\u610f\uff1a\u5bf9\u4e8eRedhat\/Centos\u673a\u5668linux\u64cd\u4f5c\u7cfb\u7edf\u7b80\u4ecb\uff0c\u8981\u8bbf\u95ee\u4f60\u7684\u914d\u7f6e\u6587\u4ef6linux\u5b89\u88c5\u914d\u7f6eapache<\/strong>\uff0c\u987b\u8981\u5728\u6bcf\u4f4d\u8def\u5f84\u4e2d\u7528\u201chttpd\u201d\u66ff\u6362\u201capache2\u201d\u3002<\/p>\n

              \u6b65\u9aa44<\/p>\n

              \u91cd\u542fApache\u670d\u52a1\u5668\uff0c\u81f4\u4f7fMunin\u914d\u7f6e\u751f\u6548\u3002<\/p>\n

              \u57fa\u4e8eUbuntu\/Debian\uff1a<\/p>\n

              \n

              1. service apache2 restart<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                \u57fa\u4e8eCentos\/Redhat\uff1a<\/p>\n

                \n

                1. service httpd restart<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                  \u5728Linux\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eMunin\u987e\u5ba2\u7aef<\/p>\n

                  \u6b65\u9aa41<\/p>\n

                  \u5728Linux\u4e0a\u5b89\u88c5Munin\u987e\u5ba2\u7aef<\/p>\n

                  \n

                  1. apt-get<\/span> install munin<\/span>-<\/span>node<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                    \u6ce8\u610f\uff1a\u5047\u5982\u4f60\u60f3\u76d1\u63a7\u4f60\u7684Munin\u670d\u52a1\u5668\u7aeflinux\u8f6f\u4ef6\uff0c\u4f60\u4e5f\u987b\u8981\u5728\u670d\u52a1\u5668\u7aef\u5b89\u88c5munin-node\u3002<\/p>\n

                    \u6b65\u9aa42<\/p>\n

                    \u7f16\u8f91munin-node.conf\u6587\u4ef6\u914d\u7f6e\u987e\u5ba2\u7aef\u3002<\/p>\n

                    \n

                    1. vi<\/span> <\/span>\/<\/span>etc<\/span>\/<\/span>munin<\/span>\/<\/span>munin<\/span>-<\/span>node<\/span>.<\/span>conf<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                      \u793a\u4f8b\uff1a<\/p>\n

                      \n

                      1. allow <\/span>^<\/span>127<\/span>.<\/span>0<\/span>.<\/span>0<\/span>.<\/span>1<\/span>$<\/span><\/code><\/p><\/li>

                      2. allow <\/span>^<\/span>10<\/span>.<\/span>10<\/span>.<\/span>20<\/span>.<\/span>20<\/span>$<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                        \n

                        1. #<\/span> <\/span>\u76d1\u542c\u5230\u54ea\u4e2a\u5730\u5740\u4e0a<\/span><\/code><\/p><\/li>

                        2. host <\/span>*<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                          \n

                          1. #<\/span> <\/span>\u4ee5\u53ca\u54ea\u4e2a\u7aef\u53e3<\/span><\/code><\/p><\/li>

                          2. port <\/span>4949<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                            \u6ce8\u610f\uff1a10.10.20.20\u662f\u6211\u7684Munin\u670d\u52a1\u5668\uff0c\u5b83\u8054\u63a5\u5230\u987e\u5ba2\u7aef\u76844949\u7aef\u53e3\u83b7\u53d6\u6570\u636e\u3002<\/p>\n

                            \u6b65\u9aa43<\/p>\n

                            \u5728\u987e\u5ba2\u7aef\u673a\u5668\u4e2d\u91cd\u542fmunin-node\uff1a<\/p>\n

                            \n

                            1. service munin<\/span>-<\/span>node restart<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                              \u6d4b\u8bd5\u8054\u63a5<\/p>\n

                              \u68c0\u6d4b\u4f60\u662f\u5426\u80fd\u4ece\u670d\u52a1\u5668\u7684\u8054\u63a5\u5230\u987e\u5ba2\u7aef\u76844949\u7aef\u53e3\uff0c\u5047\u82e5\u4e0d\u884c\uff0c\u4f60\u987b\u8981\u5728\u987e\u5ba2\u7aef\u673a\u5668\u4e2d\u7684\u9632\u706b\u5899\u6253\u5f00\u8be5\u7aef\u53e3\u3002<\/p>\n

                              \n

                              1. telnet db<\/span>.<\/span>linuxnix<\/span>.<\/span>com <\/span>4949<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                                \u8bbf\u95eeMuninweb\u9875\u9762<\/p>\n

                                \n

                                1. http<\/span>:<\/span>\/\/munin.linuxnix.com\/munin\/index.html<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n

                                  \u5e0c\u671b\u90a3\u4e9b\u80fd\u5bf9\u4f60\u914d\u7f6e\u57fa\u672c\u7684Munin\u670d\u52a1\u5668\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n

                                  via:<\/p>\n

                                  \u4f5c\u8005\uff1aSurendraAnne[]\u8bd1\u8005\uff1aictlyh[]\u6821\u5bf9\uff1awxy[]<\/p>\n

                                  \u672c\u6587\u7531LCTT[]\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd\u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

                                  ]\u7684\u975e\u5e38\u68d2\u7684\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\uff0c\u5b83\u80fd\u63d0\u4f9b\u7ed9\u4f60\u591a\u65b9\u9762\u7684\u7cfb\u7edf\u6027\u80fd\u4fe1\u606f\uff0c\u4f8b\u5982\u78c1\u76d8\u3001\u7f51\u7edc\u3001\u8fdb\u7a0b\u3001\u7cfb\u7edf\u548c\u7528\u6237\u3002\u4ee5\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u6a21\u5f0f\u8fd0\u884c\u3002\u670d\u52a1\u5668\u8f6f\u4ef6\u5305\u5e76\u914d\u7f6e\uff0c\u4f7f\u5f97\u5b83\u80fd\u4ece\u5ba2\u6237\u7aef\u6536\u96c6\u6570\u636e\u3002\u5728\/etc\/munin\/munin.conf\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e3b\u673a\u6761\u76ee\u3002\u7aef\u53e3\uff0c\u5982\u679c\u4e0d\u884c\uff0c\u4f60\u9700\u8981\u5728\u5ba2\u6237\u7aef\u673a\u5668\u4e2d\u7684\u9632\u706b\u5899\u6253\u5f00\u8be5\u7aef\u53e3\u3002<\/p>\n","protected":false},"author":1,"featured_media":293806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[3760,3761,3759,3762],"class_list":["post-293805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-fwqdpz","tag-yhmhmmcj","tag-xtjkgjm","tag-pzbzxj"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=293805"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293805\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293806"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}