{"id":4062,"date":"2015-12-09T11:40:08","date_gmt":"2015-12-09T02:40:08","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=4062"},"modified":"2015-12-09T11:52:10","modified_gmt":"2015-12-09T02:52:10","slug":"%e3%80%90zabbix%e3%82%b7%e3%83%aa%e3%83%bc%e3%82%ba%e3%80%91zabbix2-2%e3%82%92centos6%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/%e3%80%90zabbix%e3%82%b7%e3%83%aa%e3%83%bc%e3%82%ba%e3%80%91zabbix2-2%e3%82%92centos6%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/","title":{"rendered":"\u3010Zabbix\u30b7\u30ea\u30fc\u30ba\u3011Zabbix2.2\u3092CentOS6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u661f\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3001Zabbix\u306b\u89e6\u308c\u308b\u6a5f\u4f1a\u304c\u591a\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u5099\u5fd8\u9332\u7684\u306a\u610f\u5473\u3082\u542b\u3081\u3066\u5b9a\u671f\u7684\u306bZabbix\u95a2\u9023\u306e\u8a18\u4e8b\u3092\u4e0a\u3052\u3066\u884c\u304d\u305f\u3044\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u521d\u56de\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u500b\u4eba\u7684\u306a\u5fa9\u7fd2\u3082\u517c\u306d\u3066CentOS6\u306bZabbix2.2\uff08LTS\uff09\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u30fb\u8981\u4ef6<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u306b\u8a73\u7d30\u306a\u8981\u4ef6\u516c\u5f0f\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u4e00\u8aad\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"doku_title\">Zabbix Documentation 2.2\u30002\u8981\u4ef6<\/div>\n<p><a href=\"https:\/\/www.zabbix.com\/documentation\/2.2\/jp\/manual\/installation\/requirements\">https:\/\/www.zabbix.com\/documentation\/2.2\/jp\/manual\/installation\/requirements<\/a><\/p>\n<p>\u4eca\u56de\u306f\u691c\u8a3c\u306a\u306e\u3067t2micro\u3067CentOS6\u3092\u7acb\u3061\u4e0a\u3052\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<p>OS\u8d77\u52d5\u5f8c\u3001SELinux\u306f\u4e8b\u524d\u306b\u505c\u6b62\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30fb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u307e\u305a\u306fZabbix\u7528DB\u306bMySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>MySQL5.0.3\u4ee5\u4e0a\u3067\u3042\u308c\u3070\u52d5\u4f5c\u306f\u3057\u307e\u3059\u304c\u3001Zabbix\u306e\u904b\u7528\u4e0aDB\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u91cd\u8981\u3067\u3042\u308b\u305f\u3081MySQL5.6\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# yum install http:\/\/dev.mysql.com\/get\/mysql-community-release-el6-5.noarch.rpm\r\n# yum install mysql-community-server.x86_64\r\n<\/pre>\n<p>Zabbix\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# rpm -ivh http:\/\/repo.zabbix.com\/zabbix\/2.2\/rhel\/6\/x86_64\/zabbix-release-2.2-1.el6.noarch.rpm\r\n# yum install zabbix-server-mysql zabbix-web-mysql zabbix-web-japanese zabbix-agent\r\n<\/pre>\n<pre>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001MySQL\u3092\u8d77\u52d5\u3057\u3066Zabbix\u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmysql&gt; create database zabbix character set utf8;\r\nmysql&gt; grant all privileges on zabbix.* to zabbixuser@localhost identified by '\u4efb\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9';\r\nmysql&gt; exit\r\n<\/pre>\n<p>\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u521d\u671f\u30b9\u30ad\u30fc\u30de\u3068\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# cd \/usr\/share\/doc\/zabbix-server-mysql-2.2.9\/create\/\r\n\r\n# mysql -uzabbixuser -p zabbix &lt; schema.sql\r\n# mysql -uzabbixuser -pzabbixpassword zabbix &lt; images.sql\r\n# mysql -uzabbixuser -pzabbixpassword zabbix &lt; data.sql\r\n<\/pre>\n<p>\u3053\u308c\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u521d\u671f\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306fZabbix\u30b5\u30fc\u30d0\u30fc\u306e\u521d\u671f\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<p>zabbix.conf\u306bMySQL\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u53cd\u6620\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# vi \/etc\/zabbix\/zabbix_server.conf\r\n\r\nDBHost=localhost\r\nDBName=zabbix\r\nDBUser=zabbixuser\r\nDBPassword=\u4efb\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\r\n<\/pre>\n<p>\u4ee5\u4e0a\u3067Zabbix\u306e\u521d\u671f\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002Zabbix\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# service zabbix-server start\r\nStarting Zabbix server: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&#x5B; \u00a0OK \u00a0]\r\n<\/pre>\n<p>\u7121\u4e8b\u8d77\u52d5\u304c\u3067\u304d\u305f\u3089\u7d9a\u3044\u3066Zabbix\u3067\u4f7f\u7528\u3059\u308bPHP\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067zabbix.conf\u5185\u306bPHP\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30b9\u30da\u30c3\u30af\u306b\u4f59\u88d5\u304c\u3042\u308c\u3070\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u3053\u3067\u306f\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u8a2d\u5b9a\u3060\u3051\u65e5\u672c\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# sed -ie &quot;s\/# php_value.*\/php_value date.timezone Asia\\\/Tokyo\/g&quot; \/etc\/httpd\/conf.d\/zabbix.conf\r\n<\/pre>\n<p>httpd\u304c\u8d77\u52d5\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u8d77\u52d5\u3001\u8d77\u52d5\u6e08\u307f\u306e\u5834\u5408\u306f\u8a2d\u5b9a\u53cd\u6620\u306e\u305f\u3081\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# service httpd start\r\n# service httpd restart\r\n<\/pre>\n<p>\u81ea\u52d5\u8d77\u52d5\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u306a\u3044\u65b9\u306f\u6709\u52b9\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# chkconfig zabbix-server on\r\n# chkconfig httpd on\r\n# chkconfig mysqld on\r\n<\/pre>\n<p>\u4ee5\u4e0a\u3067\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h3>\u30fbZabbix\u306b\u30ed\u30b0\u30a4\u30f3<\/h3>\n<p>\u65e9\u901fZabbix\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u521d\u671f\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3092\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u540d:Admin \u00a0\u30d1\u30b9\u30ef\u30fc\u30c9:zabbix<\/p>\n<p>http:\/\/IP\u30a2\u30c9\u30ec\u30b9\/zabbix\/setup.php<\/p>\n<a href=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4091\" src=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z1-300x216.png\" alt=\"z1\" width=\"300\" height=\"216\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z1-300x216.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z1-900x649.png 900w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z1.png 978w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<p>Next\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u521d\u671f\u8a2d\u5b9a\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<a href=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4092\" src=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z2-300x216.png\" alt=\"z2\" width=\"300\" height=\"216\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z2-300x216.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z2-900x649.png 900w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z2.png 978w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<p>&nbsp;<\/p>\n<p>Zabbix\u306e\u8981\u4ef6\u4e8b\u9805\u78ba\u8a8d\u753b\u9762\u3067\u3059\u3002\u5168\u3066OK\u3067\u3042\u308c\u3070\u6b21\u306b\u9032\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<a href=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4093\" src=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z3-300x216.png\" alt=\"z3\" width=\"300\" height=\"216\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z3-300x216.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z3-900x649.png 900w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z3.png 978w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<p>\u4f5c\u6210\u3057\u305fMySQL\u7528\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u5165\u529b\u3057\u307e\u3059\u3002Test connection\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066OK\u304c\u51fa\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<a href=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4094\" src=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z4-300x216.png\" alt=\"z4\" width=\"300\" height=\"216\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z4-300x216.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z4-900x649.png 900w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z4.png 978w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<p>&nbsp;<\/p>\n<p>port\u756a\u53f7\u3068\u540d\u524d\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3053\u306e\u753b\u9762\u3067\u5909\u66f4\u3057\u307e\u3059\u3002\u7279\u306b\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u306f\u6b21\u3078\u3002<\/p>\n<a href=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4095\" src=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z5-300x216.png\" alt=\"z5\" width=\"300\" height=\"216\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z5-300x216.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z5-900x649.png 900w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z5.png 978w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<p>\u8a2d\u5b9a\u306e\u78ba\u8a8d\u753b\u9762\u3067\u3059\u3002\u5185\u5bb9\u306b\u8aa4\u308a\u304c\u306a\u3051\u308c\u3070\u305d\u306e\u307e\u307e\u9032\u307f\u307e\u3059\u3002<\/p>\n<a href=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-4096\" src=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z6-300x216.png\" alt=\"z6\" width=\"300\" height=\"216\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z6-300x216.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z6-900x649.png 900w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2015\/08\/z6.png 978w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<p>\u4ee5\u4e0a\u3067\u521d\u671f\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001\u5ff5\u306e\u70ba\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5909\u66f4\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u30fb\u307e\u3068\u3081<\/h3>\n<p>\u7c21\u5358\u3067\u3059\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3053\u308c\u3067\u4ee5\u4e0a\u3068\u306a\u308a\u307e\u3059\u3002\u6b21\u56de\u4ee5\u964d\u306f\u76e3\u8996\u8a2d\u5b9a\u306b\u8e0f\u307f\u8fbc\u3081\u305f\u3089\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Zabbix3.0\u306e\u30ea\u30ea\u30fc\u30b9\u304c\u5f85\u305f\u308c\u307e\u3059\u304c\u3001\u30ea\u30ea\u30fc\u30b9\u72b6\u6cc1\u306b\u3088\u3063\u3066Zabbix3.0\u306e\u691c\u8a3c\u8a18\u4e8b\u3082\u4e0a\u3052\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u661f\u3067\u3059\u3002 \u6700\u8fd1\u3001Zabbix\u306b\u89e6\u308c\u308b\u6a5f\u4f1a\u304c\u591a\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u5099\u5fd8\u9332\u7684\u306a\u610f\u5473\u3082\u542b\u3081\u3066\u5b9a\u671f\u7684\u306bZabbix\u95a2\u9023\u306e\u8a18\u4e8b\u3092\u4e0a\u3052\u3066\u884c\u304d\u305f\u3044\u601d\u3044\u307e\u3059\u3002 \u4eca\u56de\u306f\u521d\u56de\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u500b\u4eba\u7684\u306a\u5fa9\u7fd2\u3082\u517c\u306d\u3066CentOS6\u306bZ&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5026,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"4062","footnotes":""},"categories":[29,110,6],"tags":[],"class_list":{"0":"post-4062","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux","8":"category-zabbix","9":"category-monit","10":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/4062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=4062"}],"version-history":[{"count":21,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/4062\/revisions"}],"predecessor-version":[{"id":5029,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/4062\/revisions\/5029"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/5026"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=4062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=4062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=4062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}