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
[<\/span>db<\/span>.<\/span>linuxnix<\/span>.<\/span>com<\/span>]<\/span><\/code><\/p><\/li> address <\/span>192.168<\/span>.<\/span>1.25<\/span><\/code><\/p><\/li> 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
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
Alias<\/span> <\/span>\/<\/span>munin <\/span>\/<\/span>var<\/span>\/<\/span>www<\/span>\/<\/span>munin<\/span><\/code><\/p><\/li><<\/span>Directory<\/span> <\/span>\/<\/span>var<\/span>\/<\/span>www<\/span>\/<\/span>munin<\/span>><\/span><\/code><\/p><\/li> <\/span>Order<\/span> allow<\/span>,<\/span>deny<\/span><\/code><\/p><\/li> <\/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> <\/span>AllowOverride<\/span> <\/span>None<\/span><\/code><\/p><\/li> <\/span>Options<\/span> <\/span>ExecCGI<\/span> <\/span>FollowSymlinks<\/span><\/code><\/p><\/li> <\/span>AddHandler<\/span> cgi<\/span>-<\/span>script<\/span> <\/span>.<\/span>cgi<\/span><\/code><\/p><\/li> <\/span>DirectoryIndex<\/span> index<\/span>.<\/span>cgi<\/span><\/code><\/p><\/li> <\/span>AuthUserFile<\/span> <\/span>\/<\/span>etc<\/span>\/<\/span>munin<\/span>\/<\/span>munin<\/span>.<\/span>passwd<\/span><\/code><\/p><\/li> <\/span>AuthType<\/span> basic<\/span><\/code><\/p><\/li> <\/span>AuthName<\/span> <\/span>\"Munin stats\"<\/span><\/code><\/p><\/li> <\/span>require<\/span> valid<\/span>-<\/span>user<\/span><\/code><\/p><\/li> <\/span><<\/span>IfModule<\/span> mod_expires<\/span>.<\/span>c<\/span>><\/span><\/code><\/p><\/li> <\/span>ExpiresActive<\/span> <\/span>On<\/span><\/code><\/p><\/li> <\/span>ExpiresDefault<\/span> M310<\/span><\/code><\/p><\/li> <\/span><\/<\/span>IfModule<\/span>><\/span><\/code><\/p><\/li><\/<\/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
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
service apache2 restart<\/span><\/code><\/p><\/li><\/ol><\/pre>\n<\/p>\n\u57fa\u4e8eCentos\/Redhat\uff1a<\/p>\n
\n
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
apt-get<\/span>