{"id":543,"date":"2011-11-20T05:46:10","date_gmt":"2011-11-19T20:46:10","guid":{"rendered":"http:\/\/daily.belltail.jp\/?p=543"},"modified":"2011-11-20T05:46:10","modified_gmt":"2011-11-19T20:46:10","slug":"nagios%e3%81%a7%e3%82%b5%e3%83%bc%e3%83%90%e7%9b%a3%e8%a6%96%ef%bc%a0squeeze","status":"publish","type":"post","link":"https:\/\/daily.belltail.jp\/?p=543","title":{"rendered":"Nagios\u3067\u30b5\u30fc\u30d0\u76e3\u8996\uff20squeeze"},"content":{"rendered":"<p>\u3042\u3093\u307e\u3057\u60c5\u5831\u304c\u306a\u3044\u3067\u3059\u306d\uff0e\u307f\u306a\u3055\u3093\u4f59\u88d5\u3060\u304b\u3089\u3067\u3059\u304b\uff0e<br \/>\nWEB\u30d9\u30fc\u30b9\u306e\u30b5\u30fc\u30d0\u76e3\u8996\u30b7\u30b9\u30c6\u30e0\u306e\u4e00\u3064\u306bNagios\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\uff0e\u3059\u3054\u3044\u9ad8\u6a5f\u80fd\u3067\u3059\uff0e<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u5c0e\u5165\u3068\u52d5\u304b\u3059\u307e\u3067\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u304b\u308b\u30fc\u304f\u30e1\u30e2\uff0e<\/p>\n<p>\u74b0\u5883\u306fDebian6(x86)\u3067\uff0cLAMP\u69cb\u6210\u3068\u3057\u307e\u3059\uff0e<br \/>\n\u5165\u308c\u305f\u306e\u306f\u4ed6\u3067\u3082\u306a\u3044\u3053\u306e\u30b5\u30fc\u30d0(\u3055\u304f\u3089VPS\u3067\u7a3c\u50cd)\u3067\u3059\uff0e\u6700\u8fd1\u3044\u308d\u3044\u308d\u3042\u3063\u3066\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\uff0e<\/p>\n<p>\u4eca\u65e5\u306e\u3068\u3053\u308d\u306f\uff0c\u7d30\u304b\u3044\u8a2d\u5b9a\u306f\u30a2\u30c9\u30db\u30c3\u30af\u306a\u304b\u3093\u3058\u306b\u306a\u308b\u306e\u3067\u7701\u7565\u3068\u3044\u3046\u3053\u3068\u3067\uff0e<br \/>\n\u3042\u3068VirtualHost\u4e0b\u306b\u3057\u305f\u308a\u307f\u305f\u3044\u306a\u3044\u308d\u3044\u308d\u3067\u304d\u307e\u3059\u304c\u305d\u306e\u3078\u3093\u3082\u6c17\u304c\u5411\u3044\u305f\u3089\u66f8\u304d\u307e\u3059\uff0e<br \/>\n\u3042\u3093\u307e\u8a73\u7d30\u66f8\u304f\u3068\u50d5\u304c\u3053\u306e\u9bd6\u306e\u3069\u3053\u3092\u3069\u3046\u56fa\u3081\u3066\u308b\u304b\u308f\u304b\u3063\u3061\u3083\u3046\u306e\u3067\u6c17\u306f\u5411\u304b\u306a\u3044\u3068\u601d\u3046\u3093\u3060\uff0e<\/p>\n<p>\u4ee5\u4e0b\u306e\u4f5c\u696d\u306f\u7279\u8a18\u306a\u3044\u5834\u5408\u5168\u3066\u30b5\u30fc\u30d0\u4e0a\u3067\u884c\u3044\u307e\u3059\uff0e<\/p>\n<p><!--more--><\/p>\n<p>*\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u305d\u306e\u307e\u307e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% sudo aptitude install nagios3\r\n<\/pre>\n<p>*\u8a2d\u5b9a<br \/>\napache\u3067\u52d5\u3044\u3066\u308b\u9bd6\u306a\u306e\u3067\uff0c\u57fa\u672c\u7684\u306b\u306fnagios\u306e\u3088\u308d\u3057\u304f\u7528\u610f\u3057\u3066\u304f\u308c\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066\u767b\u9332\u3057\u307e\u3059\uff0e<\/p>\n<p>**\u8a8d\u8a3c\u3092\u3055\u305b\u308b\u3079\u304d\u306a\u306e\u3067\uff0chtdigest\u3092\u884c\u3044\u307e\u3059<br \/>\n\u30b5\u30fc\u30d0\u76e3\u8996\u30c4\u30fc\u30eb\u306a\u306e\u3067\uff0c\u57fa\u672c\u7684\u306b\u306f\u8a8d\u8a3c\u3092\u3055\u305b\u308b\u3079\u304d\u3067\u3059\uff0e<br \/>\n\u3053\u306e\u8a8d\u8a3c\u306fapache\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<p>\u6700\u521d\u306b\uff0capache2\u3067digest\u8a8d\u8a3c\u3092\u884c\u3046mod_auth_digest\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% sudo \/usr\/sbin\/a2enmod auth_digest\r\n<\/pre>\n<p>\u3067\uff0c\u30d1\u30b9\u30ef\u30fc\u30c9\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\uff0e\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u9069\u5f53\u306b\uff0e<br \/>\n&#8220;Nagios Auth&#8221;\u306f\u8a8d\u8a3c\u81ea\u4f53\u306b\u3064\u3051\u308b\u540d\u524d\uff0cusername\u306f\u8a8d\u8a3c\u3055\u305b\u305f\u3044\u30e6\u30fc\u30b6\u540d\u3067\u3059\uff0e\u3067\u305d\u308c\u306b\u5bfe\u3059\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u308c\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% htdigest -c ~\/.nagios.htdigest &quot;Nagios Auth&quot; username\r\nAdding password for username in realm Nagios Auth.\r\nNew password:\r\nRe-type new password:\r\n<\/pre>\n<p>\u3053\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4ed6\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306e\u8a8d\u8a3c\u3068\u304b\u306b\u4f7f\u3044\u307e\u308f\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u305f\u3076\u3093\u3084\u3081\u305f\u307b\u3046\u304c\u3044\u3044\u3067\u3059\uff0e<br \/>\n\u307e\u305f\u540c\u3058\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8a8d\u8a3c\u3055\u305b\u305f\u3044\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f-c\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9664\u304f\u3060\u3051\u3067OK\u3067\u3059\uff0e<\/p>\n<p>**apache\u306e\u8a2d\u5b9a<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% (\/etc\/nagios\/apache2.conf\u3092\u7de8\u96c6)\r\n% sudo \/etc\/init.d\/apache2 restart\r\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u3068\u3053\u308d\u3067\uff0c\u6b21\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u90e8\u5206\u3092\u9069\u5207\u306b\u5909\u3048\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: plain; highlight: [3,11,12,13,14]; title: ; notranslate\" title=\"\">\r\n&lt;DirectoryMatch (\/usr\/share\/nagios3\/htdocs|\/usr\/lib\/cgi-bin\/nagios3|\/etc\/nagios3\/stylesheets)&gt;\r\n        Options FollowSymLinks\r\n        Options ExecCGI\r\n\r\n        DirectoryIndex index.php\r\n\r\n        AllowOverride AuthConfig\r\n        Order Allow,Deny\r\n        Allow From All\r\n\r\n        AuthName &quot;Nagios Auth&quot;\r\n        AuthType Digest\r\n        AuthUserFile \/home\/(your-account)\/.nagios.htdigest\r\n        require user username\r\n&lt;\/DirectoryMatch&gt;\r\n<\/pre>\n<p>\u3067\u306fNagios\u3092\u8d70\u3089\u305b\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% sudo \/etc\/init.d\/nagios3 restart\r\n<\/pre>\n<p>\u3053\u308c\u3067\uff0c\u30d6\u30e9\u30a6\u30b6\u3067http:\/\/your_server\/nagios3\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\n<p><a href=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2011\/11\/nagios_scr.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/daily.belltail.jp\/wp-content\/uploads\/2011\/11\/nagios_scr.png\" alt=\"\" title=\"nagios_scr\" width=\"690\" height=\"684\" class=\"alignnone size-full wp-image-557\" \/><\/a><\/p>\n<p>\uff61\uff9f+.(\u30fb\u2200\u30fb)\uff9f+.\uff9f <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3042\u3093\u307e\u3057\u60c5\u5831\u304c\u306a\u3044\u3067\u3059\u306d\uff0e\u307f\u306a\u3055\u3093\u4f59\u88d5\u3060\u304b\u3089\u3067\u3059\u304b\uff0e WEB\u30d9\u30fc\u30b9\u306e\u30b5\u30fc\u30d0\u76e3\u8996\u30b7\u30b9\u30c6\u30e0\u306e\u4e00\u3064\u306bNagios\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\uff0e\u3059\u3054\u3044\u9ad8\u6a5f\u80fd\u3067\u3059\uff0e \u3068\u3044\u3046\u3053\u3068\u3067\u5c0e\u5165\u3068\u52d5\u304b\u3059\u307e\u3067\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u304b\u308b\u30fc\u304f\u30e1\u30e2\uff0e \u74b0\u5883\u306fDebian [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,8,10],"class_list":["post-543","post","type-post","status-publish","format-standard","hentry","category-1","tag-linux","tag-8","tag-10"],"_links":{"self":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=543"}],"version-history":[{"count":0,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions"}],"wp:attachment":[{"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daily.belltail.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}