{"id":2230,"date":"2012-04-18T17:39:11","date_gmt":"2012-04-18T09:39:11","guid":{"rendered":"http:\/\/blog.pmail.idv.tw\/?p=2230"},"modified":"2012-04-18T17:39:11","modified_gmt":"2012-04-18T09:39:11","slug":"centos-6-2-%e5%ae%89%e8%a3%9d-nagios","status":"publish","type":"post","link":"https:\/\/blog.pmail.idv.tw\/?p=2230","title":{"rendered":"CentOS 6.2 \u5b89\u88dd Nagios"},"content":{"rendered":"<p>\u7d00\u9304\u5728CentOS 6.2 \u5b89\u88ddNaigos<\/p>\n<p>Nagios \u662f\u4e00\u5957\u53ef\u4ee5\u76e3\u8996\u7db2\u8def\u4e0a\u7684\u8a2d\u5099\u8207\u4e3b\u6a5f,\u82e5\u670d\u52d9\u767c\u751f\u554f\u984c,\u53ef\u4ee5\u5728\u7db2\u9801\u4e0a\u986f\u793a\u6216\u662fE-mail<\/p>\n<p>\u901a\u77e5\u7ba1\u7406\u54e1<\/p>\n<p>Nagios \u5b98\u65b9\u7db2\u7ad9\uff1a<a href=\"http:\/\/www.nagios.org\">http:\/\/www.nagios.org<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<p>\u5229\u7528\u6700\u5c0f\u5b89\u88ddISO (CentOS-6.2-i386-minimal.iso) \u5b89\u88ddCentOS 6.2<\/p>\n<p>\u5229\u7528Yum \u5b89\u88dd Nagios<\/p>\n<p>yum install nagios nagios-plugins nagios-plugins-nrpe &#8211;enablerepo=rpmforge<\/p>\n<p>Nagios \u57fa\u65bc\u5b89\u5168\u8003\u91cf\uff0c\u9810\u8a2d\u53ea\u6709\u901a\u904e\u8eab\u4efd\u8a8d\u8b49\u7684\u4f7f\u7528\u8005\u624d\u53ef\u4ee5\u4f7f\u7528\u7db2\u9801\u7684\u529f\u80fd\uff0c\u6240\u4ee5\u5fc5\u9808\u8981\u53d6\u6d88\u8eab\u4efd\u8a8d\u8b49\u7684\u6a5f\u5236\u3002<br \/># vim \/etc\/nagios\/cgi.cfg<br \/>\u628a<br \/>use_authentication=1<br \/>\u6539\u6210<br \/>use_authentication=0 <\/p>\n<p>\u5982\u679cyum \u627e\u4e0d\u5230nagios \u5957\u4ef6\u5c31\u9700\u8981\u5148\u5b89\u88ddyum \u64f4\u5145\u5957\u4ef6 <\/p>\n<p><a title=\"http:\/\/pkgs.repoforge.org\/rpmforge-release\/\" href=\"http:\/\/pkgs.repoforge.org\/rpmforge-release\/\">http:\/\/pkgs.repoforge.org\/rpmforge-release\/<\/a> <\/p>\n<p>\u4e0b\u8f09 rpmforge-release-0.5.2-2.el6.rf.i686.rpm \u5b89\u88dd\u5f8c,Yum\u5c31\u53ef\u4ee5\u627e\u5230Nagios \u76f8\u95dc\u5957\u4ef6<\/p>\n<p>htpasswd \u8a2d\u5b9a\u4f7f\u7528\u8005\u548c\u5bc6\u78bc<br \/># htpasswd \/etc\/nagios\/htpasswd.users admin<br \/>New password:<br \/>Re-type new password:<br \/>Adding password for user admin <\/p>\n<p>\u8a2d\u5b9a\u5b8c\u7562\u5f8c\u767b\u5165\u65b9\u5f0f <a href=\"http:\/\/ip\/nagios\">http:\/\/ip\/nagios<\/a> <\/p>\n<p><a href=\"https:\/\/blog.pmail.idv.tw\/wp-content\/uploads\/2012\/04\/nagios.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"nagios\" border=\"0\" alt=\"nagios\" src=\"https:\/\/blog.pmail.idv.tw\/wp-content\/uploads\/2012\/04\/nagios_thumb.jpg\" width=\"244\" height=\"119\"><\/a><\/p>\n<div class=\"21cd169d3c0f71e95b84db320302cb4a\" data-index=\"1\" style=\"float: right; margin:10px 0 10px 10px;\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-8711325745898650\"\r\n     crossorigin=\"anonymous\"><\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u7d00\u9304\u5728CentOS 6.2 \u5b89\u88ddNaigos Nagios \u662f\u4e00\u5957\u53ef\u4ee5\u76e3\u8996\u7db2\u8def\u4e0a &hellip; <a href=\"https:\/\/blog.pmail.idv.tw\/?p=2230\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2230","post","type-post","status-publish","format-standard","hentry","category-linux-nagios"],"_links":{"self":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/2230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2230"}],"version-history":[{"count":0,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/2230\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}