{"id":610,"date":"2015-02-18T16:36:00","date_gmt":"2015-02-18T07:36:00","guid":{"rendered":"https:\/\/wp.zassoul.com\/?p=610"},"modified":"2015-02-18T16:36:00","modified_gmt":"2015-02-18T07:36:00","slug":"%e6%81%af%e6%8a%9c%e3%81%8d","status":"publish","type":"post","link":"https:\/\/wp.zassoul.com\/?p=610","title":{"rendered":"\u606f\u629c\u304d"},"content":{"rendered":"<p>Ruby\u304c\u306a\u304b\u306a\u304b\u9032\u307e\u306a\u3044\u306e\u3067\u606f\u629c\u304d\u304c\u3066\u3089Zabbix2.4\u3092\u30a4\u30f3\u30b9\u30c8\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.zabbix.com\/documentation\/3.0\/manual\/installation\/install_from_packages\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3053<\/a>\u306b\u3057\u305f\u304c\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8ffd\u52a0\u3057\u3066\u3084\u308b\u3002<\/p>\n<p><b>1) \u30ea\u30dd\u30b8\u30c8\u30ea\u767b\u9332<\/b><br \/><span style=\"color: #666666; font-size: x-small;\"># rpm -ivh http:\/\/repo.zabbix.com\/zabbix\/2.4\/rhel\/7\/x86_64\/zabbix-server-2.4.3-1.el7.x86_64.rpm<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">http:\/\/repo.zabbix.com\/zabbix\/2.4\/rhel\/7\/x86_64\/zabbix-server-2.4.3-1.el7.x86_64.rpm \u3092\u53d6\u5f97\u4e2d<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">\u8b66\u544a: \/var\/tmp\/rpm-tmp.VOoJhc: \u30d8\u30c3\u30c0\u30fc V4 DSA\/SHA1 Signature\u3001\u9375 ID 79ea5ed4: NOKEY<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">\u30a8\u30e9\u30fc: \u4f9d\u5b58\u6027\u306e\u6b20\u5982:<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">&nbsp; &nbsp; &nbsp; &nbsp; OpenIPMI-libs &gt;= 2.0.14 \u306f zabbix-server-2.4.3-1.el7.x86_64 \u306b\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">&nbsp; &nbsp; &nbsp; &nbsp; fping &gt;= 3 \u306f zabbix-server-2.4.3-1.el7.x86_64 \u306b\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">&nbsp; &nbsp; &nbsp; &nbsp; iksemel \u306f zabbix-server-2.4.3-1.el7.x86_64 \u306b\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">&nbsp; &nbsp; &nbsp; &nbsp; net-snmp \u306f zabbix-server-2.4.3-1.el7.x86_64 \u306b\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">&nbsp; &nbsp; &nbsp; &nbsp; unixODBC \u306f zabbix-server-2.4.3-1.el7.x86_64 \u306b\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">&nbsp; &nbsp; &nbsp; &nbsp; zabbix \u306f zabbix-server-2.4.3-1.el7.x86_64 \u306b\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">&nbsp; &nbsp; &nbsp; &nbsp; zabbix-server-implementation = 2.4.3-1.el7 \u306f zabbix-server-2.4.3-1.el7.x86_64 \u306b\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059<\/span><\/p>\n<p>\u8272\u3005\u8db3\u308a\u306a\u3044\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u8db3\u308a\u306a\u3044\u3082\u306e\u3092\u5165\u308c\u308b\u3002<\/p>\n<p>\u305d\u306e\u524d\u306byum\u306e\u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306byum-plugin-priorities\u3092\u5165\u308c\u308b\u3002<\/p>\n<p>fping\u3068iksemel\u306f\u6a19\u6e96\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u63d0\u4f9b\u3055\u308c\u3066\u306a\u3044\u3089\u3057\u304f, RPMfforge\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u5165\u308c\u308b\u306e\u304c\u3044\u3044\u3089\u3057\u3044\u3002<br \/>(\u30d1\u30c3\u30b1\u30fc\u30b8\u3063\u3066\u3059\u3054\u304f\u4fbf\u5229\u3060\u3051\u3069, \u306a\u3093\u304b\u8272\u3005\u3068\u80cc\u666f\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u306d\u3002\u3044\u3084, \u81ea\u5206\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5165\u308c\u308b\u3088\u308a\u3082\u5168\u7136\u3044\u3044\u3093\u3060\u3051\u3069\u3055)<\/p>\n<p>RPMforge\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8a2d\u5b9a\u306e\u4ed5\u65b9\u306f\u30b0\u30b0\u308b\u3002<br \/>1) RPMforge\u30ea\u30dd\u30b8\u30c8\u30ea\u767b\u9332<br \/>2) priority\u3092\u8a2d\u5b9a(20\u306b\u3057\u305f) \u305d\u3057\u3066zabbix\u306eprioroty\u306f\u306a\u3093\u3068\u306a\u304f10\u306b\u30fb\u30fb\u30fb\u3002<br \/>\u4ee5\u4e0a\u3002<br \/>\u3042\u3068\u306f\u518d\u3073fping\/iksemel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/><span style=\"color: #666666; font-size: x-small;\"># yum &#8211;enablerepo=rpmforge -y install fping<\/span><\/p>\n<p>iksemel\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u306e\u3067zabbix\u306enonn-support\u304b\u3089\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<br \/><span style=\"color: #666666; font-size: x-small;\"># rpm -ivh&nbsp;http:\/\/repo.zabbix.com\/non-supported\/rhel\/7\/x86_64\/iksemel-1.4-2.el7.centos.x86_64.rpm<\/span><\/p>\n<p>\u3093\u30fc\u3053\u308c\u3060\u3063\u305f\u3089fping\u3082\u5408\u308f\u305b\u3066\u304a\u3051\u3070\u3088\u304b\u3063\u305f\u304b\u306a\u3002\u307e, \u3044\u3063\u304b\u3002<\/p>\n<p>\u518d\u3073Zabbix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3078\u623b\u308b\u3002<\/p>\n<p><b>2) zabbix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/b><br \/><span style=\"color: #666666; font-size: x-small;\"># yum &#8211;enablerepo=zabbix<\/span><span style=\"color: #666666; font-size: x-small;\">&nbsp;install zabbix-server-mysql zabbix-web-mysql<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"># yum &#8211;enablerepo=zabbix install zabbix-agent<\/span><\/p>\n<p><b>3) Database\u4f5c\u6210<\/b><br \/>\u203b\u4e8b\u524d\u306bmariadb, mariadb-server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f<\/p>\n<p><span style=\"color: #666666; font-size: x-small;\"># mysql -u root -p<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Enter password:<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Welcome to the MariaDB monitor. &nbsp;Commands end with ; or g.<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Your MariaDB connection id is 11<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Server version: 5.5.41-MariaDB MariaDB Server<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"><br \/><\/span><span style=\"color: #666666; font-size: x-small;\">Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"><br \/><\/span><span style=\"color: #666666; font-size: x-small;\">Type &#8216;help;&#8217; or &#8216;h&#8217; for help. Type &#8216;c&#8217; to clear the current input statement.<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"><br \/><\/span><span style=\"color: #666666; font-size: x-small;\">MariaDB [(none)]&gt; create database zabbix character set utf8 collate utf8_bin;<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Query OK, 1 row affected (0.00 sec)<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"><br \/><\/span><span style=\"color: #666666; font-size: x-small;\">MariaDB [(none)]&gt; grant all privileges on zabbix.* to zabbix@localhost identified by &#8216;z@bbix&#8217;;<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Query OK, 0 rows affected (0.00 sec)<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"><br \/><\/span><span style=\"color: #666666; font-size: x-small;\">MariaDB [(none)]&gt; quit;<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Bye<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"><br \/><\/span><span style=\"color: #666666; font-size: x-small;\"><br \/><\/span><span style=\"color: #666666; font-size: x-small;\"># mysql -u root -p zabbix &lt; .\/schema.sql<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Enter password:<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"># mysql -u root -p zabbix &lt; .\/images.sql<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Enter password:<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"># mysql -u root -p zabbix &lt; data.sql<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">Enter password:<\/span><\/p>\n<p>\u5b8c\u4e86\u3002<\/p>\n<p><b>4)&nbsp;zabbix_server.conf\u306e\u7de8\u96c6<\/b><\/p>\n<p># vi \/etc\/zabbix\/zabbix_server.conf<br \/>DBHost=localhost<br \/>DBName=zabbix<br \/>DBUser=zabbix<br \/>DBPassword=<i>db-pass<\/i><\/p>\n<p><b>5) PHP\u306e\u8a2d\u5b9a<\/b><br \/># vi&nbsp;\/etc\/httpd\/conf.d\/zabbix.conf<br \/>php_value max_execution_time 300<br \/>php_value memory_limit 128M<br \/>php_value post_max_size 16M<br \/>php_value upload_max_filesize 2M<br \/>php_value max_input_time 300<br \/>php_value date.timezone <b>Asia\/Tokyo<\/b><\/p>\n<p>\u3053\u3053\u306f\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3060\u3051\u3044\u3058\u3063\u305f\u3002<\/p>\n<p><b>6) zabbix\u8d77\u52d5<\/b><\/p>\n<p><span style=\"color: #666666; font-size: x-small;\"># systemctl enable zabbix-server<\/span><br \/><span style=\"color: #666666; font-size: x-small;\">#&nbsp;systemctl start zabbix-server<\/span><\/p>\n<p>\u3053\u3053\u307e\u3067\u304d\u305f\u3089 http:\/\/zabbix\u306eIP\/zabbix\/ \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3093\u3060\u304cFirewalld\u304c\u52b9\u3044\u3066\u3044\u3066\u5f3e\u304b\u308c\u308b\u3002<br \/>\u3093\u30fc\u30fc\u30fc\u3042\u3063\u3061\u3083\u3053\u3063\u3061\u3083\u3067\u5236\u5fa1\u3059\u308b\u3068\u3081\u3093\u3069\u3044\u3057, \u3046\u3061\u306fL3SW\u3067ACL\u304b\u3051\u308b\u304b\u3089\u30b5\u30fc\u30d0\u5074\u306eFW\u7cfb\u6b62\u3081\u3061\u3083\u3046\u304b\u3002SELinux\u3082\u5408\u308f\u305b\u3066\u3002<\/p>\n<p>\u3063\u3066\u3053\u3068\u3067<\/p>\n<p><span style=\"color: #666666; font-size: x-small;\"># setenforcce 0<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"># systemctl stop firewalld<\/span><br \/><span style=\"color: #666666; font-size: x-small;\"># systemctl disable firewalld<\/span><\/p>\n<p>\u4ee5\u4e0a\u3002<\/p>\n<p>\u3053\u3063\u304b\u3089\u306fWebbUI\u306b\u3057\u305f\u304c\u3063\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u3002<\/p>\n<p>\u3044\u3084\u30fc\u3084\u3063\u3071\u76ee\u306b\u898b\u3048\u308b\u7d50\u679c\u304c\u3042\u308b\u3068\u3044\u3044\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby\u304c\u306a\u304b\u306a\u304b\u9032\u307e\u306a\u3044\u306e\u3067\u606f\u629c\u304d\u304c\u3066\u3089Zabbix2.4\u3092\u30a4\u30f3\u30b9\u30c8\u3057\u305f\u3002 \u3053\u3053\u306b\u3057\u305f\u304c\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8ffd\u52a0\u3057\u3066\u3084\u308b\u3002 1) \u30ea\u30dd\u30b8\u30c8\u30ea\u767b\u9332# rpm -ivh http:\/\/repo.zabbix.com\/zabbi\u2026 <span class=\"read-more\"><a href=\"https:\/\/wp.zassoul.com\/?p=610\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,13,68,8],"tags":[],"class_list":["post-610","post","type-post","status-publish","format-standard","hentry","category-it","category-linux","category-zabbix","category-8"],"_links":{"self":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=610"}],"version-history":[{"count":0,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/610\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}