{"id":18199,"date":"2014-02-22T06:48:26","date_gmt":"2014-02-21T22:48:26","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/02\/22\/%e5%9c%a8-centos-6-x-%e4%b8%8a%e5%ae%89%e8%a3%9d-monitorix\/"},"modified":"2021-03-18T17:23:50","modified_gmt":"2021-03-18T09:23:50","slug":"%e5%9c%a8-centos-6-x-%e4%b8%8a%e5%ae%89%e8%a3%9d-monitorix","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/02\/22\/%e5%9c%a8-centos-6-x-%e4%b8%8a%e5%ae%89%e8%a3%9d-monitorix\/","title":{"rendered":"\u5728 CentOS 6.x \u4e0a\u5b89\u88dd Monitorix"},"content":{"rendered":"<p>Monitorix \u5b98\u65b9\u7db2\u7ad9\uff1a<a href=\"http:\/\/www.monitorix.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.monitorix.org\/<\/a><\/p>\n<p>\u5b89\u88dd Monitorix \u6240\u9808\u5957\u4ef6<br \/># <span style=\"color: #ff0000\">yum install perl-Config-General perl-HTTP-Server-Simple perl-MIME-Lite perl-MailTools perl-XML-Simple rrdtool rrdtool-perl<\/span><\/p>\n<p>\u4e0b\u8f09 Monitorix<br \/># <span style=\"color: #ff0000\">wget http:\/\/www.monitorix.org\/monitorix-3.4.0-1.noarch.rpm<\/span><br \/>\u9032\u884c\u5b89\u88dd<br \/># <span style=\"color: #ff0000\">rpm -ivh monitorix-3.4.0-1.noarch.rpm<\/span><\/p>\n<p>\u6216<br \/># <span style=\"color: #ff0000\">yum install<\/span> <span style=\"color: #ff0000\">monitorix &#8211;enablerepo=epel<\/span><\/p>\n<p>\u555f\u52d5 Monitorix \u670d\u52d9<br \/># <span style=\"color: #ff0000\">service monitorix start<\/span><br \/><span style=\"color: #0000ff\">\u6b63\u5728\u555f\u52d5 monitorix\uff1a\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [\u00a0 \u78ba\u5b9a\u00a0 ]<\/span><\/p>\n<p>\u8a2d\u5b9a\u958b\u6a5f\u6642\u555f\u52d5<br \/># <span style=\"color: #ff0000\">chkconfig &#8211;level 3 monitorix on<\/span><\/p>\n<p>\u6aa2\u67e5 Monitorix \u670d\u52d9\u662f\u5426\u6709\u6b63\u5e38\u555f\u52d5<br \/># <span style=\"color: #ff0000\">netstat -antulp | grep monitorix<\/span><br \/><span style=\"color: #0000ff\">tcp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0 0.0.0.0:8080\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0.0.0.0:*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 LISTEN\u00a0\u00a0\u00a0\u00a0\u00a0 47040\/monitorix-htt<\/span><br \/>[@more@]<br \/>\u958b\u555f\u700f\u89bd\u5668\uff0c\u8f38\u5165 <span style=\"color: #ff0000\">http:\/\/Server&#8217;IP:8080\/monitorix<\/span><br \/><a id=\"res_2364183\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-2364183.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-2364183.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p><a id=\"res_2364182\" href=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/25793-2364182.png\"><img decoding=\"async\" src=\"https:\/\/2blog.ilc.edu.tw\/wp-content\/uploads\/sites\/985\/25793\/previews-med\/25793-2364182.png\" border=\"0\" alt=\"\" \/><\/a><\/p>\n<p>\u9650\u5236\u53ef\u4ee5\u9023\u7dda\u7684\u7bc4\u570d 192.168.1.0\/24<br \/># <span style=\"color: #ff0000\">sed -i &#8216;s\/hosts_deny =\/hosts_deny = all\/&#8217; \/etc\/monitorix.conf<\/span><br \/># <span style=\"color: #ff0000\">sed -i &#8216;s\/hosts_allow =\/hosts_allow = 192.168.1.0\/24\/&#8217; \/etc\/monitorix.conf<\/span><\/p>\n<p>\u8a2d\u5b9a\u9023\u7dda\u6642\u9808\u8981\u8f38\u5165\u5bc6\u78bc<br \/># <span style=\"color: #ff0000\">sed -i &#8217;34s\/enabled = n\/enabled = y\/&#8217; \/etc\/monitorix.conf<\/span><br \/>\u8a2d\u5b9a\u53ef\u4ee5\u9023\u7dda\u7684\u4f7f\u7528\u8005 admin \u5bc6\u78bc 123456<br \/># <span style=\"color: #ff0000\">htpasswd -cb \/var\/lib\/monitorix\/htpasswd admin 123456<\/span><br \/><span style=\"color: #0000ff\">Adding password for user admin<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Monitorix \u5b98\u65b9\u7db2\u7ad9\uff1ahttp:\/\/www.monitorix.org\/ \u5b89\u88dd Monitorix \u6240 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/02\/22\/%e5%9c%a8-centos-6-x-%e4%b8%8a%e5%ae%89%e8%a3%9d-monitorix\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5728 CentOS 6.x \u4e0a\u5b89\u88dd Monitorix\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117,107],"tags":[],"class_list":["post-18199","post","type-post","status-publish","format-standard","hentry","category-c-78462","category-c-72382"],"meta_key":{"_encloseme":["1"],"lt_post_id":["471167"],"_pingme":["1"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18199"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18199"}],"version-history":[{"count":1,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18199\/revisions"}],"predecessor-version":[{"id":19858,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18199\/revisions\/19858"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}