{"id":108,"date":"2014-04-07T00:26:03","date_gmt":"2014-04-06T15:26:03","guid":{"rendered":"http:\/\/dukehide.dip.jp\/wordpress\/com\/?p=108"},"modified":"2018-02-12T18:41:13","modified_gmt":"2018-02-12T09:41:13","slug":"zabbix-install","status":"publish","type":"post","link":"https:\/\/dukehide.com\/pc\/zabbix-install\/","title":{"rendered":"Zabbix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>Linux\u306e\u76e3\u8996\u30c4\u30fc\u30eb\u306b<a href=\"http:\/\/www.zabbix.com\/jp\/\" target=\"_blank\" rel=\"noopener\">Zabbix<\/a>\u306a\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u8a66\u3057\u306b\u5c0e\u5165\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u7c21\u6613\u30e1\u30e2\u3002<br \/>\n<a href=\"https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"146\" data-permalink=\"https:\/\/dukehide.com\/pc\/zabbix-install\/20140407_2\/\" data-orig-file=\"https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?fit=800%2C530&amp;ssl=1\" data-orig-size=\"800,530\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"20140407_2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?fit=300%2C199&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?fit=640%2C424&amp;ssl=1\" tabindex=\"0\" role=\"button\" src=\"https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?resize=150%2C150&#038;ssl=1\" alt=\"20140407_2\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-146\" srcset=\"https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?resize=144%2C144&amp;ssl=1 144w, https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?zoom=2&amp;resize=150%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/dukehide.com\/pc\/wordpress\/wp-content\/uploads\/2014\/04\/20140407_2.png?zoom=3&amp;resize=150%2C150&amp;ssl=1 450w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<div class=\"terminal\">\nRed Hat Enterprise Linux \/ CentOS<br \/>\n<br \/>\nInstalling repository configuration package<br \/>\nZabbix 2.2 for RHEL6, Oracle Linux 6, CentOS 6:<br \/>\n# rpm -ivh http:\/\/repo.zabbix.com\/zabbix\/2.2\/rhel\/6\/x86_64\/zabbix-release-2.2-1.el6.noarch.rpm<br \/>\n<br \/>\nInstalling Zabbix packages<br \/>\n# yum install zabbix-server-mysql zabbix-web-mysql<br \/>\n<br \/>\nyum -y install zabbix-server-mysql zabbix-web-mysql zabbix-web-japanese<br \/>\nyum -y install zabbix-agent<br \/>\nyum -y install zabbix-get\n<\/div>\n<p><\/p>\n<p>zabbix\u306eyum\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u7121\u52b9\u5316<\/p>\n<div class=\"terminal\">\nvi \/etc\/yum.repos.d\/zabbix.repo<br \/>\n---(\u4e0b\u8a18\u3092\u5909\u66f4)---------------------------<br \/>\n[zabbix]<br \/>\nname=Zabbix Official Repository - $basearch<br \/>\nbaseurl=http:\/\/repo.zabbix.com\/zabbix\/2.0\/rhel\/6\/$basearch\/<br \/>\nenabled=1<br \/>\n\u3000\u2193<br \/>\nenabled=0<br \/>\n<br \/>\n[zabbix-non-supported]<br \/>\nname=Zabbix Official Repository non-supported - $basearch<br \/>\nbaseurl=http:\/\/repo.zabbix.com\/non-supported\/rhel\/6\/$basearch\/<br \/>\nenabled=1<br \/>\n\u3000\u2193<br \/>\nenabled=0\n<\/div>\n<p><\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4f5c\u6210<\/p>\n<div class=\"terminal\">\n\u30fbMySQL\u306bZabbix\u7528\u306eDB\u3068\u30e6\u30fc\u30b6\u3092\u4f5c\u6210<br \/>\nmysql -u root -p<br \/>\n---(\u4e0b\u8a18\u3092\u5b9f\u884c)---------------------------<br \/>\n\u30fbZabbix\u7528DB\u306e\u4f5c\u6210<br \/>\ncreate database zabbix character set utf8;<br \/>\n<br \/>\n\u30fbZabbix\u7528\u30e6\u30fc\u30b6\u306e\u4f5c\u6210<br \/>\ngrant all privileges on zabbix.* to zabbix@localhost identified by '\uff1c\u30d1\u30b9\u30ef\u30fc\u30c9\uff1e';<br \/>\n<br \/>\n\u30fb\u8a2d\u5b9a\u306e\u53cd\u6620<br \/>\nFLUSH PRIVILEGES;<br \/>\nexit\n<\/div>\n<p><\/p>\n<p>Zabbix\u7528\u306eDB\u30b9\u30ad\u30fc\u30de\u3068\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<\/p>\n<div class=\"terminal\">\nmysql -uroot -p zabbix < \/usr\/share\/doc\/zabbix-server-mysql-2.2.0\/create\/schema.sql\nmysql -uroot -p zabbix < \/usr\/share\/doc\/zabbix-server-mysql-2.2.0\/create\/images.sql\nmysql -uroot -p zabbix < \/usr\/share\/doc\/zabbix-server-mysql-2.2.0\/create\/data.sql\n<\/div>\n<p><\/p>\n<p>zabbix\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a<\/p>\n<div class=\"terminal\">\nvi \/etc\/zabbix\/zabbix_server.conf<br \/>\n---(\u4e0b\u8a18\u3092\u5909\u66f4)---------------------------<br \/>\n# DBPassword=<br \/>\n\u3000\u2193<br \/>\nDBPassword=\uff1c\u30d1\u30b9\u30ef\u30fc\u30c9\uff1e<br \/>\n------------------------------<br \/>\n<br \/>\n\u30fbZabbix\u30b5\u30fc\u30d0\u306e\u8d77\u52d5<br \/>\nservice zabbix-server start<br \/>\n<br \/>\n\u30fbZabbix\u30b5\u30fc\u30d0\u306e\u81ea\u52d5\u8d77\u52d5\u3092\u8a2d\u5b9a<br \/>\nchkconfig zabbix-server on\n<\/div>\n<p><\/p>\n<p>\u4eca\u56de\u306f\u52c9\u5f37\u306e\u305f\u3081\u306e\u5c0e\u5165\u3067\u3059\u3002\u4e00\u5148\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3060\u3051\u6e08\u307e\u305b\u3066\u304a\u304d\u3001\u4f7f\u7528\u4e91\u3005\u306b\u3064\u3044\u3066\u306f\u307e\u305f\u5f8c\u307b\u3069\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u306e\u76e3\u8996\u30c4\u30fc\u30eb\u306bZabbix\u306a\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u8a66\u3057\u306b\u5c0e\u5165\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u7c21\u6613\u30e1\u30e2\u3002 Red Hat Enterprise Linux \/ CentOS Installing repository conf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false,"_lightning_design_setting":[],"vkexunit_cta_each_option":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[112,3],"tags":[27,79],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9iVw6-1K","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/posts\/108"}],"collection":[{"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/comments?post=108"}],"version-history":[{"count":0,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/media?parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/categories?post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/tags?post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}