{"id":3019,"date":"2016-10-22T22:22:39","date_gmt":"2016-10-22T13:22:39","guid":{"rendered":"http:\/\/www.itbook.info\/web\/?p=3019"},"modified":"2016-10-22T22:22:39","modified_gmt":"2016-10-22T13:22:39","slug":"raspberrypi-2%e3%81%abzabbix%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%92%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.itbook.info\/web\/2016\/10\/raspberrypi-2%e3%81%abzabbix%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%92%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f.html","title":{"rendered":"RaspberryPi 2\u306bZabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u305f"},"content":{"rendered":"<aside class=\"row veu_insertAds before\"><div class=\"col-md-12\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n                        <!-- cat_\u4e0a\u90e8 -->\r\n                        <ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-6102004203189610\" data-ad-slot=\"9628163001\" data-ad-format=\"auto\"><\/ins>\r\n                        <script>\r\n                        (adsbygoogle = window.adsbygoogle || []).push({});\r\n                        <\/script><\/div><\/aside><p>RaspberryPi 2\u306bZabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u305f\u306e\u3067\u5099\u5fd8\u30e1\u30e2\u3002<\/p>\n<h2 id=\"\u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\">\u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre><code class=\"(null)\">% sudo apt-get -y install zabbix-server-mysql zabbix-agent zabbix-frontend-php php-mysql php-gd php-xml-util php-mbstring php-bcmath php-net-socket php-gettext <\/code><\/pre>\n<p><!--more--><\/p>\n<h2 id=\"php\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a\">PHP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<\/h2>\n<pre><code class=\"(null)\">% apt-get -y install php php-cgi libapache2-mod-php php-common php-pear php-mbstring\n\n% a2enconf php7.0-cgi \nEnabling conf php7.0-cgi.\nTo activate the new configuration, you need to run:\n  service apache2 reload\n\n% vi \/etc\/php\/7.0\/apache2\/php.ini\npost_max_size = 16M\nmax_execution_time = 300\nmax_input_time = 300\ndate.timezone = Asia\/Tokyo\n\n% systemctl restart apache2 <\/code><\/pre>\n<h2 id=\"mysql\u306e\u8a2d\u5b9a\">MySQL\u306e\u8a2d\u5b9a<\/h2>\n<pre><code class=\"(null)\">% mysql -uroot -p\nmysql&gt; create database zabbix character set utf8 collate utf8_bin;\nmysql&gt; grant all privileges on zabbix.* to zabbix@localhost identified by &apos;&lt;PASSWORD&gt;&apos;;\nmysql&gt; exit\n\n% cd \/usr\/share\/zabbix-server-mysql\n% zcat schema.sql.gz | mysql -v -uzabbix -p zabbix\n% zcat images.sql.gz | mysql -v -uzabbix -p zabbix\n% zcat data.sql.gz | mysql -v -uzabbix -p zabbix<\/code><\/pre>\n<h2 id=\"zabbix\u306e\u8a2d\u5b9a\">Zabbix\u306e\u8a2d\u5b9a<\/h2>\n<pre><code class=\"(null)\">% sudo vi \/etc\/zabbix\/zabbix_server.conf\nDBHost=localhost\nDBName=zabbix\nDBUser=zabbix\nDBPassword=&lt;PASSWORD&gt;\n\n$ sudo service zabbix-server restart<\/code><\/pre>\n<h2 id=\"always_populate_raw_post_dataphp7\u3067\u524a\u9664\u306e\u30c1\u30a7\u30c3\u30af\u3092\u7121\u52b9\u306b\u3059\u308b\">always_populate_raw_post_data(PHP7\u3067\u524a\u9664)\u306e\u30c1\u30a7\u30c3\u30af\u3092\u7121\u52b9\u306b\u3059\u308b<\/h2>\n<p>PHP7\u3092\u4f7f\u3046\u5834\u5408\u3001\u300calways_populate_raw_post_data\u300d\u306e\u30c1\u30a7\u30c3\u30af\u3067\u5f15\u3063\u304b\u304b\u308b\u305f\u3081\u3001\u30c1\u30a7\u30c3\u30af\u3057\u306a\u3044\u3088\u3046\u306b\u7121\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"(null)\">cp \/usr\/share\/zabbix\/includ\ne\/classes\/setup\/CFrontendSetup.php \/usr\/share\/zabbix\/include\/classes\/setup\/CFrontendSetup.php.org\nvim \/usr\/share\/zabbix\/include\/classes\/setup\/CFrontendSetup.php<\/code><\/pre>\n<pre><code class=\"(null)\">\/\/ check for deprecated PHP 5.6.0 option &apos;always_populate_raw_post_data&apos;\nif (version_compare(PHP_VERSION, &apos;5.6&apos;, &apos;&gt;=&apos;)) {\n         $result[] = $this-&gt;checkPhpAlwaysPopulateRawPostData();<\/code><\/pre>\n<p>\u4e0a\u8a18\u884c\u3092\u4ee5\u4e0b\u306b\u5909\u66f4<\/p>\n<pre><code class=\"(null)\">\/\/ check for deprecated PHP 5.6.0 option &apos;always_populate_raw_post_data&apos;\nif (version_compare(PHP_VERSION, &apos;7.1&apos;, &apos;&gt;=&apos;)) {\n         $result[] = $this-&gt;checkPhpAlwaysPopulateRawPostData();\n<\/code><\/pre>\n<p>http:\/\/<ipaddress>\/zabbix\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001Zabbix\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u56de\u306fZabbix\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<aside class=\"row veu_insertAds after\"><div class=\"col-md-12\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n                        <!-- cat_\u4e0a\u90e8 -->\r\n                        <ins class=\"adsbygoogle\" style=\"display:block\" data-ad-client=\"ca-pub-6102004203189610\" data-ad-slot=\"9628163001\" data-ad-format=\"auto\"><\/ins>\r\n                        <script>\r\n                        (adsbygoogle = window.adsbygoogle || []).push({});\r\n                        <\/script><\/div><\/aside>","protected":false},"excerpt":{"rendered":"<p>RaspberryPi 2\u306bZabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u305f\u306e\u3067\u5099\u5fd8\u30e1\u30e2\u3002 \u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb % sudo apt-get -y install zabbix-server-mysql zabbix-ag [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[290,314,315],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RaspberryPi 2\u306bZabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u305f - \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u65e5\u3005\u306e\u51fa\u6765\u4e8b\u3092\u8a9e\u308b<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itbook.info\/web\/2016\/10\/raspberrypi-2\u306bzabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u305f.html\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RaspberryPi 2\u306bZabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u305f - \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u65e5\u3005\u306e\u51fa\u6765\u4e8b\u3092\u8a9e\u308b\" \/>\n<meta property=\"og:description\" content=\"RaspberryPi 2\u306bZabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u305f\u306e\u3067\u5099\u5fd8\u30e1\u30e2\u3002 \u5404\u7a2e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb % sudo apt-get -y install zabbix-server-mysql zabbix-ag [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itbook.info\/web\/2016\/10\/raspberrypi-2\u306bzabbix\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u307f\u305f.html\" \/>\n<meta property=\"og:site_name\" content=\"\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u65e5\u3005\u306e\u51fa\u6765\u4e8b\u3092\u8a9e\u308b\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-22T13:22:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.itbook.info\/web\/#website\",\"url\":\"https:\/\/www.itbook.info\/web\/\",\"name\":\"\\u30cd\\u30c3\\u30c8\\u30ef\\u30fc\\u30af\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u304c\\u65e5\\u3005\\u306e\\u51fa\\u6765\\u4e8b\\u3092\\u8a9e\\u308b\",\"description\":\"\\u30cd\\u30c3\\u30c8\\u30ef\\u30fc\\u30af\\u30cd\\u30bf\\u3068\\u304b\\u3092\\u9069\\u5f53\\u306b\\u66f8\\u304d\\u6563\\u3089\\u304b\\u3059\\u30d6\\u30ed\\u30b0\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.itbook.info\/web\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.itbook.info\/web\/2016\/10\/raspberrypi-2%e3%81%abzabbix%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%92%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f.html#webpage\",\"url\":\"https:\/\/www.itbook.info\/web\/2016\/10\/raspberrypi-2%e3%81%abzabbix%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%92%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f.html\",\"name\":\"RaspberryPi 2\\u306bZabbix\\u3092\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u3092\\u3057\\u3066\\u307f\\u305f - \\u30cd\\u30c3\\u30c8\\u30ef\\u30fc\\u30af\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u304c\\u65e5\\u3005\\u306e\\u51fa\\u6765\\u4e8b\\u3092\\u8a9e\\u308b\",\"isPartOf\":{\"@id\":\"https:\/\/www.itbook.info\/web\/#website\"},\"datePublished\":\"2016-10-22T13:22:39+00:00\",\"dateModified\":\"2016-10-22T13:22:39+00:00\",\"author\":{\"@id\":\"https:\/\/www.itbook.info\/web\/#\/schema\/person\/3707482c5270f902ec5d92dba1db0920\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.itbook.info\/web\/2016\/10\/raspberrypi-2%e3%81%abzabbix%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%82%92%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f.html\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.itbook.info\/web\/#\/schema\/person\/3707482c5270f902ec5d92dba1db0920\",\"name\":\"na3620\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.itbook.info\/web\/#personlogo\",\"inLanguage\":\"ja\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1e7e7f8079aa707666c2a1069de805ef?s=96&d=mm&r=g\",\"caption\":\"na3620\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/posts\/3019"}],"collection":[{"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/comments?post=3019"}],"version-history":[{"count":1,"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/posts\/3019\/revisions"}],"predecessor-version":[{"id":3020,"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/posts\/3019\/revisions\/3020"}],"wp:attachment":[{"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/media?parent=3019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/categories?post=3019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itbook.info\/web\/wp-json\/wp\/v2\/tags?post=3019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}