{"id":4740,"date":"2021-10-01T19:02:01","date_gmt":"2021-10-01T10:02:01","guid":{"rendered":"https:\/\/do-gugan.com\/~furuta\/?p=4740"},"modified":"2021-10-01T19:02:47","modified_gmt":"2021-10-01T10:02:47","slug":"monit","status":"publish","type":"post","link":"https:\/\/do-gugan.com\/~furuta\/archives\/2021\/10\/monit.html","title":{"rendered":"Monit\u3067Web\u30b5\u30fc\u30d0\u30fc\u6b7b\u6d3b\u76e3\u8996\u3092\u3059\u308b"},"content":{"rendered":"\n<p>\u6570\u65e5\u524d\u3001CentOS\u30b5\u30fc\u30d0\u30fc\u3092yum update\u3057\u305f\u8fba\u308a\u304b\u3089Web\u30b5\u30fc\u30d0\u30fc\uff08Apache\uff09\u304c\u65e5\u306b\u6570\u56de\u306b\u7121\u53cd\u5fdc\u306b\u306a\u308b\u73fe\u8c61\u304c\u3067\u307e\u3057\u305f\u3002\u30d7\u30ed\u30bb\u30b9\u306f\u5b58\u5728\u3057\u3066\u3044\u308b\u3082\u306e\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305a\u3002telnet localhost 80\u306f\u3067\u304d\u308b\u3051\u3069\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u304c\u8fd4\u3063\u3066\u3053\u306a\u3044\u611f\u3058\u3002systemctl restart httpd\u3059\u308c\u3070\u6cbb\u308b\u304c\u307e\u305f\u6570\u6642\u9593\u7d4c\u3064\u3068\u518d\u767a\u3059\u308b\u3001\u3068\u3044\u3046\u611f\u3058\u3002\u30ed\u30b0\u3092\u307f\u3066\u3082\u3053\u308c\u3068\u3044\u3063\u305f\u60c5\u5831\u306f\u3064\u304b\u3081\u305a\u3002<\/p>\n\n\n\n<p>\u305d\u3082\u305d\u3082\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u306fConoHa\u306eKUSANAGI\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u69cb\u7bc9\u3057\u3066\u3044\u3066\u3001Apache\u306e\u88cf\u306bphp7-fpm\u304c\u3044\u305f\u308a\u3057\u3066\u3061\u3087\u3063\u3068\u69cb\u6210\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u95a2\u4fc2\u304c\u7406\u89e3\u3057\u304d\u308c\u3066\u3044\u306a\u3044\u3068\u3053\u308d\u304c\u3042\u308a\u3001\u6570\u65e5\u7c98\u3063\u305f\u3082\u306e\u306e\u304a\u624b\u4e0a\u3052\u3002<\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a<a href=\"https:\/\/www.site24x7.com\/\">site24x7.com<\/a>\u306e\u7121\u6599\u30d7\u30e9\u30f3\u306710\u5206\u304a\u304d\u306e\u6b7b\u6d3b\u30c1\u30a7\u30c3\u30af\u3092\u3057\u3066\u3044\u3066\u30b5\u30a4\u30c8\u304c\u6b7b\u3093\u3067\u3044\u305f\u3089\u30e1\u30fc\u30eb\u3084\u30a2\u30d7\u30ea\u901a\u77e5\u3067\u308f\u304b\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u3001\u6c17\u3065\u304d\u3057\u3060\u3044ssh\u3057\u3066httpd\u518d\u8d77\u52d5\u3068\u3044\u3046\u3053\u3068\u3092\u3057\u3066\u307e\u3057\u305f\u304c\u3001\u3055\u3059\u304c\u306b\u9762\u5012\u3060\u3057\u5bdd\u3066\u3044\u308b\u9593\u306b\u767a\u751f\u3059\u308b\u3068\u6570\u6642\u9593\u843d\u3061\u305f\u307e\u307e\u306b\u306a\u308a\u3001\u540c\u5c45\u3057\u3066\u3044\u308b\u4ed6\u30b5\u30a4\u30c8\u306b\u3082\u8ff7\u60d1\u306b\u306a\u308b\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u81ea\u52d5\u518d\u8d77\u52d5\u306e\u4ed5\u7d44\u307f\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u25a0Monit\u304c\u6700\u521d\u304b\u3089\u5165\u3063\u3066\u305f<\/h1>\n\n\n\n<p>\u30b0\u30b0\u3063\u305f\u3068\u3053\u308d<a href=\"https:\/\/mmonit.com\/monit\/\">Monit<\/a>\u3068\u3044\u3046\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u6b7b\u6d3b\u76e3\u8996\u30c4\u30fc\u30eb\u304c\u624b\u8efd\u305d\u3046\u3060\u3068\u601d\u3044\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089KUSANAGI\u30a4\u30e1\u30fc\u30b8\u306b\u306f\u6700\u521d\u304b\u3089\u5165\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3057\u305f\u3002\/etc\/monit.d\/\u4e0b\u306b\u306fKUSANAGI\u3067\u4f5c\u6210\u3057\u305fWordPress\u306e\u6570\u3060\u3051\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u73fe\u6642\u70b9\u3067\u5f79\u306b\u7acb\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u4e00\u65e6\u5168\u90e8\u524a\u9664\uff08\u6b63\u78ba\u306b\u306f\u9000\u907f\uff09\u3002\u65b0\u898f\u3067\u8a2d\u5b9a\u3057\u306a\u304a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\/etc\/monitrc<\/h2>\n\n\n\n<p>\u30e1\u30a4\u30f3\u306e\u5171\u901a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3002\u3053\u308c\u306f\u3068\u304f\u306b\u3044\u3058\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u76e3\u8996\u5468\u671f\uff08\u30c7\u30d5\u30a9\u30eb\u30c830\u79d2\uff09\u3084\u30ed\u30b0\u3092\u3069\u3053\u306b\u5410\u304f\u304b\u306a\u3069\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\/etc\/monit.d\/alert<\/h2>\n\n\n\n<p>\u30e1\u30fc\u30eb\u306e\u8a2d\u5b9a\u3002\/etc\/monitrc\u4e0a\u3067\/etc\/monit.d\/\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u3059\u3079\u3066\u8aad\u307f\u8fbc\u3080\u6307\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5225\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u3053\u308c\u3067\u306a\u304f\u3066\u3082\u69cb\u308f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002KUSANAGI\u30a4\u30e1\u30fc\u30b8\u3067\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3068\u3044\u3046\u3060\u3051\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306e\u30db\u30b9\u30c8\u3067\u306f\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306f\u904b\u7528\u3057\u3066\u3044\u306a\u3044\u306e\u3067gmail\u3092\u4f7f\u3044\u307e\u3059\u3002\u4e00\u756a\u4e0a\u304c\u9001\u4fe1\u3057\u305f\u3044\u30a2\u30c9\u30ec\u30b9\uff08gmail\u30a2\u30c9\u30ec\u30b9\u3067\u306a\u304f\u3066OK\uff09\u3002username\u3068password\u3067\u81ea\u5206\u306egmail\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\u3057\u307e\u3059\u3002\u4e8c\u6bb5\u968e\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306f<a href=\"https:\/\/support.google.com\/accounts\/answer\/185833?hl=ja\">\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9<\/a>\u3092\u4f5c\u6210\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002\u3068\u3044\u3046\u304b\u3053\u3093\u306a\u3068\u3053\u308d\u306bGoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u672c\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u66f8\u304f\u306e\u3082\u4e0d\u7528\u5fc3\u306a\u306e\u3067\u5fc5\u305a\u305d\u3046\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set alert xxxxxxxxxxx@gmail.com\nset mailserver smtp.gmail.com\n    port 587\n    username \"xxxxxxxx@gmail.com\"\n    password \"xxxxxxxxxxxx\"\n    using TLSV12\n    with timeout 30 seconds\n\nset mail-format {\n        from: xxxxx@xxxxxxxxxx.com\n        subject: &#91;MONIT] $SERVICE $EVENT at $DATE\n        message: Monit alert this action.\n        Please check monit status on $HOST.\n\nService: $SERVICE\nEvent:   $EVENT\nAction:  $ACTION\nData:    $DATE\nHost:    $HOST\n\n$DESCRIPTION.\n}<\/code><\/pre>\n\n\n\n<p>from\u306e\u3068\u3053\u308d\u306f\u30e1\u30fc\u30eb\u306e\u5dee\u51fa\u4eba\u540d\u3002\u3053\u308c\u306fgmail\u306e\u5834\u5408gmail\u30a2\u30c9\u30ec\u30b9\u306b\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3057\u307e\u3046\u3088\u3046\u3067\u3059\uff08\u3053\u3053\u3067\u6307\u5b9a\u3059\u308b\u30a2\u30c9\u30ec\u30b9\u3092\u672c\u4eba\u30a2\u30c9\u30ec\u30b9\u3068\u3057\u3066gmail\u5074\u306b\u767b\u9332\u3059\u308c\u3070\u3044\u3051\u308b\u304b\u3082\uff1f\uff09<\/p>\n\n\n\n<p>subject\u304c\u984c\u540d\u3001message\u4ee5\u4e0b\u304c\u672c\u6587\u3067$\u304c\u3064\u3044\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u306b\u305d\u306e\u6642\u306e\u72b6\u6cc1\u306b\u5fdc\u3058\u305f\u60c5\u5831\u304c\u5165\u308a\u307e\u3059\u30022\u30d0\u30a4\u30c8\u6587\u5b57\u3092\u5165\u308c\u308b\u3068\u3061\u3083\u3093\u3068UTF-8\u3068\u304b\u3067\u6587\u5b57\u5316\u3051\u305b\u305a\u306b\u5c4a\u304f\u304b\u306f\u8a66\u3057\u3066\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\/etc\/monit.d\/logging<\/p>\n\n\n\n<p>\u3053\u308c\u3082KUSANAGI\u30a4\u30e1\u30fc\u30b8\u306b\u6700\u521d\u304b\u3089\u5165\u3063\u3066\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># log to monit.log\nset logfile \/var\/log\/monit.log<\/code><\/pre>\n\n\n\n<p>\u3068\u3060\u3051\u66f8\u304b\u308c\u3066\u304a\u308a\u3001\u30ed\u30b0\u306e\u4fdd\u5b58\u5148\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u3060\u3051\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\/etc\/monit.d\/httpd.conf<\/h2>\n\n\n\n<p>\u3053\u3061\u3089\u3092\u30bc\u30ed\u304b\u3089\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>check process httpd with pidfile \"\/var\/run\/httpd.pid\"\n        start program = \"\/usr\/bin\/systemctl start httpd\"\n        stop program = \"\/usr\/bin\/systemctl stop httpd\"\n        if failed port 80 protocol http request \"\/index.php\" then restart\n        if 10 restarts within 10 cycles then unmonitor<\/code><\/pre>\n\n\n\n<p>\u3000start program\u3068stop program\u306f\u6587\u5b57\u901a\u308a\u3001\u8d77\u52d5\u3001\u7d42\u4e86\u306b\u5fc5\u8981\u306a\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30dd\u30a4\u30f3\u30c8\u306f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if failed port 80 protocol http request \"\/index.php\" then restart\n<\/code><\/pre>\n\n\n\n<p>\u3067\u3059\u3002\u4eca\u56de\u306e\u30a6\u30c1\u306e\u72b6\u6cc1\u3060\u3068httpd\u30d7\u30ed\u30bb\u30b9\u306f\u3044\u304d\u3066\u3044\u3066telnet\u307e\u3067\u306f\u3067\u304d\u307e\u3059\u3002\u306a\u306e\u3067\u5358\u306b\u30dd\u30fc\u30c8\u3092\u76e3\u8996\u3059\u308b\u3060\u3051\u3067\u306f\u751f\u304d\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u5b9f\u969b\u306bURL\u3092\u6307\u5b9a\u3057\u3066\u5fdc\u7b54\u304c\u3042\u308b\u3068\u3053\u308d\u307e\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u307e\u3059\u3002\u30db\u30b9\u30c8\u306f\u81ea\u8eab\u306a\u306e\u3067\u7701\u7565\u53ef\u80fd\u3002\u30dd\u30fc\u30c8\u3082\u305f\u3076\u3093\u306a\u304f\u3066\u3082\u3044\u3044\u304b\u3082\u3002\u6307\u5b9a\u3059\u308b\u30da\u30fc\u30b8\u306f\u3069\u3053\u3067\u3082\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u304c\u3001PHP\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u307e\u308a\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u8efd\u3044\u30da\u30fc\u30b8\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002Apache\u5074\u3067\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u304c30\u79d2\u306b\uff11\u56de\u767a\u751f\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u901a\u5e38\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u3057\u3066\u306f\u95b2\u89a7\u3055\u308c\u306a\u3044\u96a0\u3057URL\u307f\u305f\u3044\u306a\u3068\u3053\u308d\u3060\u3068\u9664\u5916\u6307\u5b9a\u304c\u3057\u3084\u3059\u3044\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002\u307e\u3041\u81ea\u5206\u306e\u5834\u5408\u306f\u6b21\u7bc0\u306e\u3088\u3046\u306bUser-Agent\u3067\u9664\u5916\u3057\u305f\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\uff08\/index.html\uff09\u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u4e0b\u306f10\u56de\u8a66\u3057\u3066\u30c0\u30e1\u306a\u3089\u8ae6\u3081\u308b\uff08unmonitor\uff09\u3068\u3044\u3046\u3053\u3068\u306e\u3088\u3046\u3067\u3059\u3002\u306a\u306b\u304b\u3082\u3063\u3068\u81f4\u547d\u7684\u306a\u539f\u56e0\u3067\u843d\u3061\u3066\u3044\u308b\u6642\u306b\u7121\u95c7\u306b\u7121\u9650\u8a66\u884c\u3057\u306a\u3044\u305f\u3081\u3060\u3068\u601d\u308f\u308c\u307e\u3059\u3002\u73fe\u72b6\u4e0d\u90fd\u5408\u304c\u306a\u3044\u306e\u3067\u521d\u671f\u72b6\u614b\u3067\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">monit\u30b3\u30de\u30f3\u30c9\u306e\u64cd\u4f5c<\/h2>\n\n\n\n<p>CentOS7\u306e\u5834\u5408\u3001httpd\u540c\u69d8\u3001systemctl\u30b3\u30de\u30f3\u30c9\u3067\u8d77\u52d5\u3084\u7d42\u4e86\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305fmonit -t\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u304c\u3067\u304d\u3001monit reload\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u518d\u8aad\u307f\u8fbc\u307f\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30e1\u30fc\u30eb\u4f8b<\/h2>\n\n\n\n<p>\u5b9f\u969b\u306b\u518d\u8d77\u52d5\u304c\u884c\u308f\u308c\u305f\u969b\u306b\u3053\u3093\u306a\u30e1\u30fc\u30eb\u304c\u6765\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/do-gugan.com\/~furuta\/wp-content\/uploads\/2021\/10\/monit.png\"><img loading=\"lazy\" decoding=\"async\" width=\"499\" height=\"381\" src=\"https:\/\/do-gugan.com\/~furuta\/wp-content\/uploads\/2021\/10\/monit.png\" alt=\"\" class=\"wp-image-4741\" srcset=\"https:\/\/do-gugan.com\/~furuta\/wp-content\/uploads\/2021\/10\/monit.png 499w, https:\/\/do-gugan.com\/~furuta\/wp-content\/uploads\/2021\/10\/monit-300x229.png 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/a><figcaption>monit\u304b\u3089\u306e\u30e1\u30fc\u30eb\u4f8b<\/figcaption><\/figure>\n\n\n\n<p>1\u901a\u76ee\u3067\u691c\u77e5\u3057\u3066\u5fa9\u65e7\u3092\u77e5\u3089\u305b\u308b\u307e\u3067\u306b30\u79d2\u3061\u3087\u3063\u3068\u304b\u304b\u3063\u3066\u307e\u3059\u306d\u3002\u3053\u308c\u306f\u5358\u306b30\u79d2\u9593\u9694\u8a2d\u5b9a\u3060\u304b\u3089\u304b\u306a\uff1f\u5b9f\u969b\u306b\u306f1\u901a\u76ee\u306e\u76f4\u5f8c\u306b\u5fa9\u5e30\u306f\u3057\u3066\u3044\u308b\u306e\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Apache\u306e\u30ed\u30b0\u304b\u3089monit\u3092\u9664\u5916\u3059\u308b<\/h2>\n\n\n\n<p>\u3055\u3066\u3001\u4e0a\u306b\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6295\u3052\u3066\u6b7b\u6d3b\u76e3\u8996\u3092\u3059\u308b\u3068Apache\u306e\u30ed\u30b0\u304c\u3068\u3093\u3067\u3082\u306a\u3044\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1551 - ::1 - - &#91;01\/Oct\/2021:18:00:26 +0900] \"GET \/index.php HTTP\/1.1\" 200 7046 \"-\" \"Monit\/5.26.0\" -\n964 - ::1 - - &#91;01\/Oct\/2021:18:00:56 +0900] \"GET \/index.php HTTP\/1.1\" 200 7046 \"-\" \"Monit\/5.26.0\" -\n45978 - ::1 - - &#91;01\/Oct\/2021:18:01:26 +0900] \"GET \/index.php HTTP\/1.1\" 200 7046 \"-\" \"Monit\/5.26.0\" -\n956 - ::1 - - &#91;01\/Oct\/2021:18:01:56 +0900] \"GET \/index.php HTTP\/1.1\" 200 7046 \"-\" \"Monit\/5.26.0\" -\n3797 - ::1 - - &#91;01\/Oct\/2021:18:02:26 +0900] \"GET \/index.php HTTP\/1.1\" 200 7046 \"-\" \"Monit\/5.26.0\" -\n26580 - ::1 - - &#91;01\/Oct\/2021:18:02:56 +0900] \"GET \/index.php HTTP\/1.1\" 200 7046 \"-\" \"Monit\/5.26.0\" -\n1069 - ::1 - - &#91;01\/Oct\/2021:18:03:26 +0900] \"GET \/index.php HTTP\/1.1\" 200 7046 \"-\" \"Monit\/5.26.0\" -\n<\/code><\/pre>\n\n\n\n<p>\u306a\u306e\u3067\u3001\/etc\/httpd\/httpd.conf\u306e\u30ed\u30b0\u8a2d\u5b9a\u306b\u9664\u5916\u6307\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002log_config_module\u306eIfModule\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u4e2d\u306e\u3001SetEnvIF\u3067\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u9664\u5916\u3057\u3066\u3044\u308b\u8fba\u308a\u306b\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002User-Agent\uff08\u30d6\u30e9\u30a6\u30b6\u540d\uff09\u3082SetEnvIF\u3067\u6307\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u308c\u5c02\u7528\u306bBrowserMatch\u3068\u3044\u3046\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u5b9f\u969b\u306eUA\u306f\u300cMonit\/5.26.0\u300d\u3067\u3059\u304c\u3001\u5c06\u6765\u7684\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u304b\u308f\u308b\u53ef\u80fd\u6027\u3082\u3042\u308b\u306e\u3067\u6b63\u898f\u8868\u73fe\u3067\u300cMonit\u300d\u3060\u3051\u30de\u30c3\u30c1\u3055\u305b\u308b\u306e\u304c\u671b\u307e\u3057\u3044\u3067\u3059\u304c\u3001BrowserMatch\u306f\u6700\u521d\u304b\u3089\u90e8\u5206\u4e00\u81f4\u3067\u5224\u5b9a\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u7b2c\u4e00\u5f15\u6570\u306b\u300cMonit\u300d\u3068\u66f8\u304f\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule log_config_module&gt;\n   \uff08\u4e2d\u7565\uff09\n    #CustomLog \"logs\/access_log\" combined\n    SetEnvIF Request_URI \"\\.(jpg|jpeg|gif|png|css|js|swf|ico|pdf|svg|eot|ttf|woff|woff2|map)$\" no_log\n    BrowserMatch Monit monit no_log\n    CustomLog \/var\/log\/httpd\/access.log kusanagi env=!no_log\n\n&lt;\/IfModule&gt;<\/code><\/pre>\n\n\n\n<p>\u8b58\u5225\u5b50\u306bmonit\u3068no_log\u3092\u3064\u3051\u3066\u304a\u304d\u307e\u3059\u3002no_log\u304c\u3064\u3044\u3066\u3044\u308c\u3070\u30e1\u30a4\u30f3\u306eaccess.log\u304b\u3089\u306f\u9664\u5916\u3055\u308c\u307e\u3059\u3002monit\u306f\u5c02\u7528\u30d5\u30a1\u30a4\u30eb\u3067\u30ed\u30b0\u3092\u6b8b\u3059\u6642\u306a\u3069\u306b\u4f7f\u3044\u307e\u3059\u304c\u73fe\u72b6\u306f\u3064\u3051\u305f\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u25a0\u307e\u3068\u3081<\/h1>\n\n\n\n<p>Apache\u304c\u7121\u53cd\u5fdc\u306b\u306a\u308b\u6839\u672c\u539f\u56e0\u3092\u63b4\u3081\u3066\u3044\u306a\u3044\u307e\u307e\u6ce5\u7e04\u5f0f\u306b\u5bfe\u7b56\u3092\u3057\u3066\u304a\u6065\u305a\u304b\u3057\u3044\u9650\u308a\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u6700\u4f4e\u9650Web\u30b5\u30fc\u30d0\u30fc\u306e\u7a3c\u50cd\u306f\u7d99\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u9001\u3089\u308c\u3066\u304f\u308b\u30ed\u30b0\u3092\u307f\u308b\u3068\u3001\u3082\u3068\u3082\u3068site24x7\uff0810\u5206\u6bce\u30c1\u30a7\u30c3\u30af\uff09\u304c\u77e5\u3089\u305b\u3066\u304f\u308b\u306e\u3088\u308a\u983b\u7e41\u306b\u518d\u8d77\u52d5\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u653e\u7f6e\u3059\u308c\u3070\u81ea\u52d5\u5fa9\u5e30\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u5c0f\u898f\u6a21\u306a\u30ed\u30c3\u30af\u304c\u3082\u3063\u3068\u305f\u304f\u3055\u3093\u8d77\u304d\u3066\u305f\u3063\u3053\u3068\u3067\u3057\u3087\u3046\u304b\u3002\u3084\u306f\u308a\u304d\u3061\u3093\u3068\u539f\u56e0\u7a76\u660e\u304c\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u306d&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u65e5\u524d\u3001CentOS\u30b5\u30fc\u30d0\u30fc\u3092yum update\u3057\u305f\u8fba\u308a\u304b\u3089Web\u30b5\u30fc\u30d0\u30fc\uff08Apache\uff09\u304c\u65e5\u306b\u6570\u56de\u306b\u7121\u53cd\u5fdc\u306b\u306a\u308b\u73fe\u8c61\u304c\u3067\u307e\u3057\u305f\u3002\u30d7\u30ed\u30bb\u30b9\u306f\u5b58\u5728\u3057\u3066\u3044\u308b\u3082\u306e\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305a\u3002telnet  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[390,391,392,384,388,389],"class_list":["post-4740","post","type-post","status-publish","format-standard","hentry","category-cat79","tag-monit","tag-httpd","tag-392","tag-linux","tag-centos","tag-apache"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts\/4740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/comments?post=4740"}],"version-history":[{"count":2,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts\/4740\/revisions"}],"predecessor-version":[{"id":4743,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts\/4740\/revisions\/4743"}],"wp:attachment":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/media?parent=4740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/categories?post=4740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/tags?post=4740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}