{"id":5055,"date":"2015-02-19T09:14:41","date_gmt":"2015-02-19T00:14:41","guid":{"rendered":"http:\/\/www.vincentina.net\/?p=5055"},"modified":"2015-02-19T09:14:41","modified_gmt":"2015-02-19T00:14:41","slug":"ruby-zabbixapi%e3%81%a7zabbix%e3%81%aeapi%e3%82%92%e5%88%a9%e7%94%a8%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=5055","title":{"rendered":"Ruby zabbixapi\u3067Zabbix\u306eAPI\u3092\u5229\u7528\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>\u30de\u30a4\u30d6\u30fc\u30e0\u3068\u8a00\u3063\u3066\u3082\u3044\u3044\u307b\u3069\u6700\u8fd1API\u306e\u8a71\u304c\u7d9a\u3044\u3061\u3083\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u524d\u56de\u306fRedmine\u3067\u3001\u4eca\u56de\u306fZabbix\u3067\u3059\u3002<br \/>\nRedmine\u306b\u6bd4\u3079\u308b\u3068\u60c5\u5831\u91cf\u304c\u3068\u3066\u3082\u5c11\u306a\u3044\u3093\u3067\u3059\u3088\u306d\u3002\u3069\u3046\u3057\u307e\u3057\u3087\u3046\u3002\u65e5\u672c\u8a9e\u306e\u30b5\u30a4\u30c8\u304c\u5c11\u306a\u3044\u3088\u3046\u3067\u3001\u308f\u3056\u308f\u3056\u65e5\u672c\u8a9e\u3092\u30ad\u30fc\u30ef\u30fc\u30c9\u306b\u6df7\u305c\u3066\u65e5\u672c\u8a9e\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u63a2\u3059\u3088\u308a\u3082\u3001\u30b3\u30de\u30f3\u30c9\u304c\u30e1\u30a4\u30f3\u306a\u306e\u3067\u6d77\u5916\u306e\u30b5\u30a4\u30c8\u3067\u3082\u6c17\u306b\u305b\u305a\u3058\u3063\u304f\u308a\u898b\u3066\u3044\u304f\u65b9\u304c\u52b9\u7387\u304c\u826f\u3044\u3088\u3046\u3067\u3059\u3002\u3044\u308d\u3044\u308d\u3068\u5f04\u304f\u308a\u307e\u308f\u3057\u3066\u307f\u3066\u3001\u3084\u3063\u3068\u305d\u306e\u7b54\u3048\u304c\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\nAPI\u3092\u4f7f\u3046\u4e8b\u3067\u3069\u3093\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u3042\u306e\u91cd\u305f\u3044UI\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3044\u3044\uff01\u3068\u3044\u3046\u3053\u3068\u304b\u306a\u3002<br \/>\n\u81ea\u5206\u3067Zabbix\u306eUI\u4f5c\u3063\u305f\u3063\u305f\uff01\u306a\u3093\u3066\u3044\u3046\u307b\u3069\u306e\u731b\u8005\u306f\u307e\u3060\u898b\u3064\u304b\u3063\u3066\u3044\u307e\u305b\u3093\uff01w<\/p>\n<p>&nbsp;<\/p>\n<p>Zabbix.org\u306b\u3088\u308b\u3068\u3001\u5229\u7528\u3067\u304d\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306f4\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.zabbix.org\/wiki\/Docs\/api\/libraries\" target=\"_blank\">Docs\/api\/libraries <\/a>&#8211; Zabbix.org:\u3000\u304b\u3089<\/p>\n<h3><span id=\"Ruby\" class=\"mw-headline\">Ruby<\/span><\/h3>\n<ul>\n<li>Zabbix API by nelsonab (latest code seems to be on github) &#8211; a Ruby wrapper<\/li>\n<li>Rubix by Dhruv Bansal &#8211; a Ruby library for working with the API and both retrieving and sending data to Zabbix server<\/li>\n<li>zabbixapi by Express 42 &#8211; a Ruby gem, see README on github<\/li>\n<li>zabby by Farzad Farid &#8211; a Ruby library and client for Zabbix<\/li>\n<\/ul>\n<p>\u3067\u306f\u3053\u306e\u4e2d\u304b\u3089\u3001zabbixapi\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8<\/p>\n<p>4\u7a2e\u985e\u305d\u308c\u305e\u308c\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u691c\u8a3c\u3057\u3066\u3044\u308b\u65b9\u304c\u3044\u3089\u3063\u3057\u3083\u308b\u306e\u3067\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/gist.github.com\/mechamogera\/4689505\" target=\"_blank\">Zabbix API\u3092Ruby\u304b\u3089\u5229\u7528\u3059\u308b\u5834\u5408\u3069\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u826f\u3044\u306e\u304b\u8abf\u3079\u3066\u307f\u308b:<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u3067\u306f\u3067\u306f\u3001\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u304b\u3002<br \/>\n\u305d\u306e\u307e\u307eGem\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30682.4.2\u304c\u5165\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">&#x5B;takeken@centos]$ gem install zabbixapi<\/pre>\n<p>\u305d\u306e\u307e\u307e\u9032\u3081\u3066\u3044\u304f\u3068\u3001\u306a\u3093\u3068\u307e\u3041\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5408\u308f\u306a\u3044\u3089\u3057\u304f\u3001Zabbix\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u4f7f\u3048\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u7d30\u304b\u304f\u5206\u304b\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u4e0d\u4e00\u81f4\u3067\u3084\u3080\u306a\u304f\u5165\u308c\u66ff\u3048\u3092\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">Zabbix API version: 2.0.9 is not support by this version of zabbixapi (RuntimeError)<\/pre>\n<p>\u5ff5\u306e\u305f\u3081Zabbixserver\u3067\u3082\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3060\u3044\u3076\u6614\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u306e\u3067v2.0.9\u3067\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">takeken@vincentina]# zabbix_server -V\r\nZabbix server v2.0.9<\/pre>\n<p>gem\u306e\u5165\u308c\u306a\u304a\u3057\u3092\u3057\u307e\u3059\u3002Gem\u306e\u30b3\u30de\u30f3\u30c9\u3082\u3044\u308d\u3044\u308d\u3068\u899a\u3048\u3066\u3044\u306a\u3044\u306e\u3067\u30b0\u30b0\u3063\u3066\u8abf\u3079\u307e\u3059\u3002\u3053\u308c\u306f\u524a\u9664\u306e\u77ed\u7e2e\u5f62\u3067\u3059\u3002\u57fa\u672c\u7684\u306a\u3082\u306e\u306f\u899a\u3048\u306a\u3044\u3068\u3060\u306d\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">&#x5B;takeken@centos]$ gem uni zabbixapi -v 2.4.2<\/pre>\n<p>\u4eca\u306eZabbix\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u4f7f\u3048\u308bzabbixapi\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/rubygems.org\/gems\/zabbixapi\" target=\"_blank\">zabbixapi | RubyGems.org <\/a>| your community gem host:<\/p>\n<p><a href=\"http:\/\/www.rubydoc.info\/gems\/zabbixapi\/2.4.2\" target=\"_blank\">File: README <\/a>\u2014 Documentation for zabbixapi (2.4.2):<\/p>\n<p>\u3069\u3046\u3084\u30892.0.0\u306b\u306a\u308b\u3089\u3057\u3044\u3067\u3059\u3002<br \/>\nZabbix\u304c2.2.9\u306e\u5834\u5408\u306f\u3001zabbixapi\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.2.0\u301c\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u5229\u7528\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u306a\u3069\u306a\u3069\u3001\u8272\u3005\u306a\u60c5\u5831\u306fGithub\u306e\u30b5\u30a4\u30c8\u3067\u78ba\u8a8d\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/express42\/zabbixapi\/tree\/zabbix2.0\" target=\"_blank\">express42\/zabbixapi at zabbix2.0:<\/a><\/p>\n<p>\u305a\u3089\u305a\u3089\u3068\u3072\u3068\u901a\u308a\u306e\u30b3\u30de\u30f3\u30c9\u304c\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u8f09\u305b\u3066\u3042\u308b\u3088\u3046\u3067\u3059\u306d\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305a\u4eca\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u60c5\u5831\u3092\u53d6\u308b\u3053\u3068\u306a\u306e\u3067\u3059\u304cGet\u306e\u30b3\u30de\u30f3\u30c9\u304c\u898b\u5f53\u305f\u3089\u306a\u3044\u3002\u306a\u305c\uff1f<br \/>\n\u898b\u65b9\u306b\u306a\u304b\u306a\u304b\u6163\u308c\u306a\u304f\u3066\u3059\u3050\u306b\u898b\u3064\u3051\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001hosts.get\u30e1\u30bd\u30c3\u30c9\u3067\u53d6\u308c\u308b\u3089\u3057\u3044\u4e8b\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305a\u306f\u30d9\u30fc\u30b9\u3068\u306a\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\r\nrequire &quot;zabbixapi&quot;\r\n\r\nZabbix_url = &quot;http:\/\/\u30db\u30b9\u30c8\u540d\/zabbix\/api_jsonrpc.php&quot;\r\nZabbix_id = 'Admin'\r\nZabbix_pass = '\u30d1\u30b9\u30ef\u30fc\u30c9'\r\n\r\n=begin\r\n\u901a\u5e38\u306e\u8a8d\u8a3c\u306a\u3089\u4e0b\u8a18\u306e\u8a18\u8ff0\r\nzbx = ZabbixApi.connect(\r\n\u00a0 :url =&gt; 'http:\/\/localhost\/zabbix\/api_jsonrpc.php',\r\n\u00a0 :user =&gt; 'Admin',\r\n\u00a0 :password =&gt; 'zabbix'\r\n)\r\n\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u306e\u5834\u5408\u306f\u4e0b\u8a18\u306e\u8a18\u8ff0\r\nzbx = ZabbixApi.connect(\r\n\u00a0 :url =&gt; 'http:\/\/localhost\/zabbix\/api_jsonrpc.php',\r\n\u00a0 :user =&gt; 'Admin',\r\n\u00a0 :password =&gt; 'zabbix',\r\n\u00a0 :http_password =&gt; 'foo',\r\n\u00a0 :http_user =&gt; 'bar'\r\n)\r\n=end\r\n\r\nzbx = ZabbixApi.connect(\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 :url =&gt; Zabbix_url , :user =&gt; Zabbix_id , :password =&gt; Zabbix_pass\r\n)\r\n\r\nputs &quot;START&quot;\r\n# \u305f\u3068\u3048\u3070\u5168\u30db\u30b9\u30c8\r\n# p zbx.hosts.get(:output =&gt; &quot;hosts&quot;)\r\n# \u305f\u3068\u3048\u3070\u5168\u30a2\u30a4\u30c6\u30e0\r\n# p zbx.items.get(:output =&gt; &quot;items&quot;)\r\nputs\r\nputs &quot;vincentina&quot;\r\nputs zbx.hosts.get(:host =&gt; &quot;vincentina&quot;)\r\nputs\r\nputs &quot;zabbix server&quot;\r\nputs zbx.hosts.get(:host =&gt; &quot;Zabbix Server&quot;)\r\nputs &quot;END&quot;\r\n<\/pre>\n<p>\u4e0a\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u6307\u5b9a\u3057\u3066\u3044\u308b\u30db\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u5b9f\u306f\u672c\u756a\u30b5\u30fc\u30d0\u30fc\u3067\u691c\u8a3c\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u4eca\u306fGET\u3060\u3051\u306e\u691c\u8a3c\u3067\u3059\u3002<br \/>\n\u76e3 \u8996\u3057\u3066\u3044\u308b\u5bfe\u8c61\u306e\u30b5\u30fc\u30d0\u30fc\u306f\u3053\u306eVPS1\u53f0\u306e\u307f\u3067\u3059\u304c\u3001\u6614\u306e\u540d\u6b8b\u3068\u3044\u3046\u304b\u521d\u671f\u8a2d\u5b9a\u306eZabbixServer\u304c\u8a2d\u5b9a\u3057\u305f\u307e\u307e\u3067\u3057\u305f\u306e\u3067\u3001\u305b\u3063\u304b\u304f\u306a\u306e\u30672 \u53f0\u306e\u540d\u524d\u3067\u305d\u308c\u305e\u308c\u6307\u5b9a\u3057\u3066\u307f\u3066\u3001\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u30a2\u30a4\u30c6\u30e0\u3068\u304b\u3082\u305d\u308c\u305e\u308c\u306e\u6307\u5b9a\u3057\u305f\u9805\u76ee\u3067\u53d6\u5f97\u3067\u304d\u308b\u306f\u305a\u3060\u3002\u3068\u601d\u3063\u3066\u8a66\u3057\u3066\u307f\u308b\u3068items.get\u30e1\u30bd\u30c3\u30c9\u304c\u4f7f\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u30db\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306e\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u307e\u3059\u3002\u898b\u3084\u3059\u3044\u3088\u3046\u306b\u9014\u4e2d\u3067\u6539\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">START\r\n\r\nvincentina\r\n{&quot;maintenances&quot;=&gt;&#x5B;], &quot;hostid&quot;=&gt;&quot;10085&quot;, &quot;proxy_hostid&quot;=&gt;&quot;0&quot;,\r\n&quot;host&quot;=&gt;&quot;vincentina&quot;, &quot;status&quot;=&gt;&quot;0&quot;, &quot;disable_until&quot;=&gt;&quot;0&quot;,\r\n&quot;error&quot;=&gt;&quot;&quot;, &quot;available&quot;=&gt;&quot;1&quot;, &quot;errors_from&quot;=&gt;&quot;0&quot;, &quot;lastaccess&quot;=&gt;&quot;0&quot;,\r\n&quot;ipmi_authtype&quot;=&gt;&quot;-1&quot;, &quot;ipmi_privilege&quot;=&gt;&quot;2&quot;, &quot;ipmi_username&quot;=&gt;&quot;&quot;,\r\n&quot;ipmi_password&quot;=&gt;&quot;&quot;, &quot;ipmi_disable_until&quot;=&gt;&quot;0&quot;, &quot;ipmi_available&quot;=&gt;&quot;0&quot;,\r\n&quot;snmp_disable_until&quot;=&gt;&quot;0&quot;, &quot;snmp_available&quot;=&gt;&quot;0&quot;, &quot;maintenanceid&quot;=&gt;&quot;0&quot;,\r\n&quot;maintenance_status&quot;=&gt;&quot;0&quot;, &quot;maintenance_type&quot;=&gt;&quot;0&quot;, &quot;maintenance_from&quot;=&gt;&quot;0&quot;,\r\n&quot;ipmi_errors_from&quot;=&gt;&quot;0&quot;, &quot;snmp_errors_from&quot;=&gt;&quot;0&quot;, &quot;ipmi_error&quot;=&gt;&quot;&quot;,\r\n&quot;snmp_error&quot;=&gt;&quot;&quot;, &quot;jmx_disable_until&quot;=&gt;&quot;0&quot;, &quot;jmx_available&quot;=&gt;&quot;0&quot;,\r\n&quot;jmx_errors_from&quot;=&gt;&quot;0&quot;, &quot;jmx_error&quot;=&gt;&quot;&quot;, &quot;name&quot;=&gt;&quot;vincentina&quot;}\r\n\r\nzabbix server\r\n{&quot;maintenances&quot;=&gt;&#x5B;], &quot;hostid&quot;=&gt;&quot;10084&quot;, &quot;proxy_hostid&quot;=&gt;&quot;0&quot;,\r\n&quot;host&quot;=&gt;&quot;Zabbix server&quot;, &quot;status&quot;=&gt;&quot;1&quot;, &quot;disable_until&quot;=&gt;&quot;0&quot;,\r\nerror&quot;=&gt;&quot;&quot;, &quot;available&quot;=&gt;&quot;1&quot;, &quot;errors_from&quot;=&gt;&quot;0&quot;, &quot;lastaccess&quot;=&gt;&quot;0&quot;,\r\n&quot;ipmi_authtype&quot;=&gt;&quot;-1&quot;, &quot;ipmi_privilege&quot;=&gt;&quot;2&quot;, &quot;ipmi_username&quot;=&gt;&quot;&quot;,\r\n&quot;ipmi_password&quot;=&gt;&quot;&quot;, &quot;ipmi_disable_until&quot;=&gt;&quot;0&quot;, &quot;ipmi_available&quot;=&gt;&quot;0&quot;,\r\n&quot;snmp_disable_until&quot;=&gt;&quot;0&quot;, &quot;snmp_available&quot;=&gt;&quot;0&quot;, &quot;maintenanceid&quot;=&gt;&quot;0&quot;,\r\n&quot;maintenance_status&quot;=&gt;&quot;0&quot;, &quot;maintenance_type&quot;=&gt;&quot;0&quot;, &quot;maintenance_from&quot;=&gt;&quot;0&quot;,\r\n&quot;ipmi_errors_from&quot;=&gt;&quot;0&quot;, &quot;snmp_errors_from&quot;=&gt;&quot;0&quot;, &quot;ipmi_error&quot;=&gt;&quot;&quot;,\r\n&quot;snmp_error&quot;=&gt;&quot;&quot;, &quot;jmx_disable_until&quot;=&gt;&quot;0&quot;, &quot;jmx_available&quot;=&gt;&quot;0&quot;,\r\n&quot;jmx_errors_from&quot;=&gt;&quot;0&quot;, &quot;jmx_error&quot;=&gt;&quot;&quot;, &quot;name&quot;=&gt;&quot;Zabbix server&quot;}\r\nEND<\/pre>\n<p>\u30de\u30cb\u30e5\u30a2\u30eb\u306a\u3057\u3060\u3068\u5927\u90e8\u5206\u306e\u610f\u5473\u304c\u5206\u304b\u3089\u306a\u3044\u3067\u3059\u306d\u3002<br \/>\nitem\u306b\u95a2\u3057\u3066\u306f\u3001\u3068\u306b\u304b\u304f\u60c5\u5831\u91cf\u304c\u3048\u3052\u3064\u306a\u3044\u4e8b\u3082\u3042\u308a\u307e\u3063\u305f\u304f\u8a33\u304c\u5206\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3053\u3053\u3067\u307e\u305a\u4e00\u3064\u52d8\u9055\u3044\u304c\u3042\u3063\u3066\u3001Zabbix\u3092\u4f7f\u3063\u305f\u4e8b\u304c\u306a\u3044\u3068\u610f\u5473\u304c\u5206\u304b\u3089\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001items\u306fitems\u3001template\u306ftemplate\u3067\u3042\u3063\u3066\u30ea\u30bd\u30fc\u30b9\u306e\u60c5\u5831\u3067\u306f\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u305d\u3082\u305d\u3082API\u3068\u3044\u3046\u306e\u306f\u305d\u3046\u3044\u3046\u3082\u306e\u3067\u3057\u305f\u306d\u3002<br \/>\n\u30ea\u30bd\u30fc\u30b9\u306e\u76e3\u8996\u304c\u3057\u305f\u3044\u5834\u5408\u306f\u3001API\u3067\u30b0\u30e9\u30d5\u306e\u64cd\u4f5c\u3067\u304d\u308b\u306e\u3067\u3001\u30b0\u30e9\u30d5\u306eAPI\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304b\u306d\u3002\u305d\u308c\u306f\u7f6e\u3044\u3066\u304a\u3044\u3066\u3001\u3068\u306b\u304b\u304f\u30a6\u30a7\u30d6\u4e0a\u306b\u3042\u307e\u308a\u60c5\u5831\u304c\u306a\u3044\u306e\u3067\u4e00\u822c\u7684\u306a\u8a00\u3044\u65b9\u3092\u3059\u308b\u3068\u81ea\u5206\u306e\u8db3\u3067\u63a2\u3059\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u306a\u306e\u3067\u624b\u3092\u4f7f\u3063\u3066\u63a2\u3055\u306a\u304f\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u9806\u756a\u306b\u8272\u3005\u3068\u3055\u308f\u3063\u3066\u307f\u307e\u3059\u3002<br \/>\nzbx.graphs.get_ids_by_host(<span class=\"pl-c1\">:host<\/span> =&gt; <span class=\"pl-s1\"><span class=\"pl-pds\">&#8220;<\/span>hostname<span class=\"pl-pds\">&#8220;<\/span><\/span>)<\/p>\n<p>\u3046\u30fc\u3093\u3002\u4f55\u3060\u3053\u306e\u756a\u53f7\u306f\u3002\u4f55\u3060\u304b\u826f\u304f\u5206\u304b\u308a\u307e\u305b\u3093w<\/p>\n<pre>START\r\n[\"560\", \"536\", \"537\", \"542\", \"588\", \"589\", \"590\", \"591\", \"592\", \"593\", \"594\", \"596\", \"597\", \"595\", \"538\", \"529\", \"530\", \"531\", \"532\", \"553\", \"554\", \"548\", \"549\", \"550\", \"543\", \"544\", \"555\", \"556\", \"557\", \"558\"]\r\nEND<\/pre>\n<p>\u3082\u306e\u306b\u3088\u3063\u3066\u306ffilter\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3067\u304d\u308b\u307f\u305f\u3044\u306a\u306e\u3067\u3001\u3053\u308c\u3067\u8a66\u3057\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb<br \/>\nzbx.graphs.get_ids_by_host(<span class=\"pl-c1\">:host<\/span> =&gt; <span class=\"pl-s1\"><span class=\"pl-pds\">&#8220;<\/span>hostname<span class=\"pl-pds\">&#8220;<\/span><\/span>, filter =&gt; <span class=\"pl-s1\"><span class=\"pl-pds\">&#8220;<\/span>CPU<span class=\"pl-pds\">&#8220;<\/span><\/span>)<\/p>\n<p>CPU\u3067\u30d5\u30a3\u30eb\u30bf\u30fc\u3055\u308c\u3066\u4e00\u90e8\u3060\u3051\u306e\u8868\u793a\u3068\u306a\u308a\u307e\u3057\u305f\u3002\u304c\u3001\u3084\u3063\u3071\u308a\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u2026<\/p>\n<pre>START\r\n[\"529\", \"530\", \"531\"]\r\nEND<\/pre>\n<p>&nbsp;<\/p>\n<p>\u706f\u53f0\u4e0b\u6697\u3057\u3067\u3086\u3063\u304f\u308a\u8abf\u3079\u3066\u307f\u308b\u3068\u3061\u3083\u3093\u3068Class\u3068Methods\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u304c\u7f6e\u3044\u3066\u3042\u308a\u307e\u3057\u305f\u3002\u5f53\u7136\u306a\u304c\u3089\u82f1\u8a9e\u306b\u306a\u3063\u3061\u3083\u3044\u307e\u3059\u3002\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n<p><a href=\"http:\/\/www.rubydoc.info\/gems\/zabbixapi\/2.0.0\/\" target=\"_blank\">File: README <\/a>\u2014 Documentation for zabbixapi (2.0.0):<\/p>\n<p>Redmine\u306b\u6bd4\u3079\u3066GET\u3060\u3051\u3067\u306f\u3044\u307e\u3044\u3061\u4f7f\u3044\u3069\u3053\u308d\u306e\u30d3\u30b8\u30e7\u30f3\u304c\u6d6e\u304b\u3070\u306a\u3044\u306e\u3067\u3001\u4f5c\u696d\u52b9\u7387\u304c\u3060\u3093\u3060\u3093\u3068\u843d\u3061\u3066\u304d\u307e\u3057\u305f\u3002\u307c\u3061\u307c\u3061POST\u3001UPDATE\u3001DELETE\u306e\u691c\u8a3c\u306b\u9032\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3068\u3001\u305d\u306e\u524d\u306b\u691c\u8a3c\u4f5c\u696d\u7528\u306eZabbix\u3092\u7528\u610f\u3057\u305f\u3044\u3067\u3059\u3002\u672c\u756a\u30b5\u30fc\u30d0\u30fc\u3067\u691c\u8a3c\u3092\u3059\u308b\u306e\u306f\u611a\u306e\u9aa8\u9802\u3067\u3059\u304b\u3089\u3002\u3067\u3082\u3067\u3082OS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u3084\u308b\u306e\u306f\u3081\u3093\u3069\u304f\u3055\u3044\uff01\uff01<\/p>\n<p>\u305d\u3093\u306a\u3068\u304d\u306fVagrant\u301c\uff01\u3068Zabbix\u3092\u5165\u308c\u308b<span style=\"font-size: 12pt;\">Chef\u306e\u30ec\u30b7\u30d4\u306f\u4f5c\u3063\u3066\u306a\u304b\u3063\u305f\uff01\u306e\u3067<\/span>\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u301c\u3067\u4ee3\u7528\u3057\u307e\u3059w<br \/>\n\u3042\u301c\u301c\u301c\u3093\u306a\u306b\u305f\u304f\u3055\u3093Chef\u306e\u56de\u304c\u3042\u3063\u305f\u306e\u306b\u4f5c\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u3068\u306f\uff01\uff01\u7d76\u671b\u3057\u304b\u3051\u305f\uff01<\/p>\n<p>\u30fb\u30fb\u30fb\u6c17\u3092\u3068\u308a\u306a\u304a\u3057\u3066\u691c\u8a3c\u7528Zabbix\u3092\u7528\u610f\u3057\u307e\u3059\u3002<br \/>\n\u5ff5\u306e\u305f\u3081\u30d2\u30b9\u30c8\u30ea\u30fc\u3092\u6b8b\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre>\u5c02\u7528\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066\u304a\u3044\u3066\r\ncd vagrant\/zabbix\r\n\r\n\u30dc\u30c3\u30af\u30b9\u540d\u3092\u78ba\u8a8d\u3002\u4fbf\u5229\u3060\u306d\u3002\r\n$ vagrant box list\r\ncentos5 (virtualbox, 0)\r\ncentos6 (virtualbox, 0)\r\n\r\nvagrant init \u3067Vagrantfile\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\r\n$ vagrant init centos6\r\n\r\n\u30d6\u30ea\u30c3\u30b8\u63a5\u7d9a\u3057\u305f\u3044\u306e\u3067Varantfile\u3092\u7de8\u96c6\u3001\u30d1\u30d6\u30ea\u30c3\u30af\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002\r\nVagrantfile\r\nconfig.vm.network \"public_network\"\r\n\r\n\u8d77\u52d5\u3002\r\nvagrant up\r\n\r\nOS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068Zabbix\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u3084\u3063\u3066\u304f\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3002\r\nsh setup.sh\r\n\r\n\u3053\u308c\u3067\u5b8c\u6210\u3002<\/pre>\n<p>\u30ea\u30d6\u30fc\u30c8\u3057\u3066\u307f\u308b\u3068\u3001Zabbix-server\u304c\u52d5\u3044\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305forz<br \/>\n\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7ba1\u7406\u306a\u3093\u3066\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u4ed5\u65b9\u306a\u3044\u3067\u3059\u3002Zabbix\u306e\u5410\u3044\u3066\u3044\u308b\u30a8\u30e9\u30fc\u5185\u5bb9\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u308b\u3068\u3001\u3069\u3046\u3084\u3089\u6307\u5b9a\u3055\u308c\u3066\u3044\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3063\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u3002<br \/>\n\u3053\u306e\u8fba\u306fChef\u3068\u304bVagrant\u306a\u3089\u81ea\u52d5\u3067\u3084\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u305d\u306e\u8fba\u304c\u9055\u3046\u3068\u3053\u3067\u3059\u304b\u306d\u3002\u3002<br \/>\n\u4eca\u56de\u306f\u624b\u52d5\u3067\u5408\u308f\u305b\u307e\u3059\u3002\u89aa\u306b\u306a\u3063\u3066\u89aa\u306e\u3042\u308a\u304c\u305f\u307f\u304c\u308f\u304b\u308b\u3068\u8a00\u3046\u3088\u3046\u306b\u3001\u8272\u3005\u3068\u3084\u3063\u3066\u307f\u3066\u3053\u305d\u3082\u306e\u306e\u9055\u3044\u304c\u308f\u304b\u3063\u3066\u304f\u308b\u306e\u306d\u3002<\/p>\n<pre>mysql -uroot zabbix &lt; \/usr\/share\/doc\/zabbix-server-mysql-2.2.8\/create\/schema.sql\r\nmysql -uroot zabbix &lt; \/usr\/share\/doc\/zabbix-server-mysql-2.2.8\/create\/images.sql\r\nmysql -uroot zabbix &lt; \/usr\/share\/doc\/zabbix-server-mysql-2.2.8\/create\/data.sql<\/pre>\n<p>\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u624b\u52d5\u3067\u5b9f\u884c\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u3063\u3066\u7d42\u4e86\u3067\u3059\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u65b9\u306fzabbix-server-mysql-2.2.6\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u305d\u306e\u90e8\u5206\u3092\u4fee\u6b63\u3057\u305f\u3060\u3051\u3067OK\u3067\u3057\u305f\u3002\u826f\u304b\u3063\u305f\u3002<br \/>\n\u30c8\u30fc\u30bf\u30eb\u3067\u306f\u307b\u3093\u306e\u6570\u5206\u3067\u691c\u8a3c\u7528\u306eZabbix\u306e\u74b0\u5883\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">&#x5B;root@localhost ~]# service zabbix-server status\r\nzabbix_server (pid\u00a0 1996) is running...<\/pre>\n<p>\u305d\u308c\u3067\u306f\u672c\u984c\u306b\u623b\u308a\u3001POST\u3060\u3068\u304bUPDATE\u3060\u3068\u304b\u3001\u672c\u4f53\u3092\u64cd\u4f5c\u3059\u308b\u5074\u306eAPI\u3092\u4f7f\u3063\u3066Zabbix\u306e\u30c7\u30fc\u30bf\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u3057\u307e\u3059\u304b\u3002\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u307e\u307e\u3067\u3059\u304c\u3001\u30db\u30b9\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">zbx.hosts.create_or_update(\r\n\u00a0 :host =&gt; &quot;hogehoge&quot;,\r\n\u00a0 :interfaces =&gt; &#x5B;\r\n\u00a0\u00a0\u00a0 {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :type =&gt; 1,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :main =&gt; 1,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :ip =&gt; '10.0.0.1',\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :dns =&gt; 'server.example.org',\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :port =&gt; 10050,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :useip =&gt; 0\r\n\u00a0\u00a0\u00a0 }\r\n\u00a0 ],\r\n\u00a0 :groups =&gt; &#x5B; :groupid =&gt; zbx.hostgroups.get_id(:name =&gt; &quot;hostgroup&quot;) ]\r\n)<\/pre>\n<p>\u6210\u529f\u3057\u307e\u3057\u305f\uff01hogehoge\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/za01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/za01-300x43.png\" alt=\"za01\" width=\"300\" height=\"43\" class=\"alignnone size-medium wp-image-5060\" srcset=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/za01-300x43.png 300w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/za01-624x90.png 624w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/za01.png 738w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<p>\u30a4\u30c6\u30ec\u30fc\u30bf\u3092\u4f7f\u3063\u3066hoge1\u304b\u3089hoge10\u307e\u3067\u306e\u30db\u30b9\u30c8\u3092\u4e00\u6c17\u306b\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u30bd\u30fc\u30b9<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">range = 1..10\r\nrange.each do |x|\r\nzbx.hosts.create_or_update(\r\n\u00a0 :host =&gt; &quot;hoge#{x}&quot;,\r\n\u00a0 :interfaces =&gt; &#x5B;\r\n\u00a0\u00a0\u00a0 {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :type =&gt; 1,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :main =&gt; 1,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :ip =&gt; &quot;10.0.0.#{x}&quot;,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :dns =&gt; 'server.example.org',\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :port =&gt; 10050,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 :useip =&gt; 0\r\n\u00a0\u00a0\u00a0 }\r\n\u00a0 ],\r\n\u00a0 :groups =&gt; &#x5B; :groupid =&gt; zbx.hostgroups.get_id(:name =&gt; &quot;hostgroup&quot;) ]\r\n)<\/pre>\n<p>\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge01-300x86.png\" alt=\"hoge01\" width=\"300\" height=\"86\" class=\"alignnone size-medium wp-image-5069\" srcset=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge01-300x86.png 300w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge01-1024x294.png 1024w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge01-624x179.png 624w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge01.png 1173w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u7d9a\u3044\u3066\u306f\u3001UPdate Host\u306e\u30c6\u30b9\u30c8\u3002<br \/>\n\u30b9\u30c6\u30fc\u30bf\u30b9\u304c0\u3067\u30db\u30b9\u30c8\u304c\u6709\u52b9\u30011\u3067\u30db\u30b9\u30c8\u304c\u7121\u52b9\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">zzbx.hosts.update(\r\n\u00a0 :hostid =&gt; zbx.hosts.get_id(:host =&gt; &quot;hogehoge&quot;),\r\n\u00a0 :status =&gt; 0\r\n)\r\n#You can check host:\r\nputs zbx.hosts.get_full_data(:host =&gt; &quot;hogehoge&quot;)<\/pre>\n<p>\u3053\u306e\u5834\u5408\u306fhogehoge\u3060\u3051\u3067\u3059\u3002\u3055\u304d\u307b\u3069\u4f5c\u3063\u305fhoge1\u304b\u3089hoge10\u3092\u4e00\u6c17\u306b\u7121\u52b9\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30a4\u30c6\u30ec\u30fc\u30bf\u3067\u6570\u5b57\u3092\u56de\u3059\u3060\u3051\u306a\u306e\u3067\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">range.each do |x|\r\nzbx.hosts.update(\r\n\u00a0 :hostid =&gt; zbx.hosts.get_id(:host =&gt; &quot;hoge#{x}&quot;),\r\n\u00a0 :status =&gt; 1\r\n)\r\n#You can check host:\r\nputs zbx.hosts.get_full_data(:host =&gt; &quot;hoge#{x}&quot;)\r\nend<\/pre>\n<p>\u3053\u3046\u306a\u308a\u307e\u3059\u3002\u3063\u3066\u753b\u50cf\u3060\u3068\u7d50\u679c\u3057\u304b\u5206\u304b\u3089\u306a\u3044w<br \/>\n\u4e00\u5fdc\u6210\u529f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge02-300x82.png\" alt=\"hoge02\" width=\"300\" height=\"82\" class=\"alignnone size-medium wp-image-5070\" srcset=\"https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge02-300x82.png 300w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge02-1024x279.png 1024w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge02-624x170.png 624w, https:\/\/www.vincentina.net\/wp-content\/uploads\/2015\/02\/hoge02.png 1177w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u7d9a\u3044\u3066\u306f\u3001Update Item\u3067\u3059\u3002\u5f15\u6570\u3092item\u306b\u3059\u308b\u3068\u5168\u30a2\u30a4\u30c6\u30e0\u3092\u51fa\u529b\u3059\u308b\u306e\u3067\u3001\u3055\u304d\u307b\u3069\u306e\u5bb9\u91cf\u3067\u30b9\u30c6\u30fc\u30bf\u30b90\u3068\u3059\u308b\u3068\u3001\u5168\u30a2\u30a4\u30c6\u30e0\u6709\u52b9\u3068\u3044\u3046\u3053\u3068\u3067\u3057\u3087\u3046\u304b\u3002\u305d\u308c\u306f\u6050\u308d\u3057\u3044\u3067\u3059\u306d\u3002<br \/>\n\u691c\u8a3c\u74b0\u5883\u306a\u306e\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u2026<\/p>\n<p>\u3046\u30fc\u3093\u3002\u3053\u308c\u306f\u4e0a\u624b\u304f\u52d5\u304b\u306a\u3044\u307f\u305f\u3044\u3067\u3059\u3002\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u8272\u3005\u3068\u8a66\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u30b3\u30de\u30f3\u30c9\u3092\u30d1\u30ba\u30eb\u306e\u3088\u3046\u306b\u5f53\u3066\u306f\u3081\u3066\u4f7f\u3046\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002<br \/>\n\u30cd\u30b9\u30c8\u3057\u3066\u3044\u304f\u3068\u3044\u3046\u8a00\u3044\u65b9\u3092\u30b9\u30eb\u306e\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u30db\u30b9\u30c8\u3084\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u5408\u308f\u305b\u3066\u30a2\u30af\u30b7\u30e7\u30f3\u3084\u30c8\u30ea\u30ac\u30fc\u3068\u7d61\u3081\u3066\u3001\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3068\u3044\u3046\u306e\u306f\u306a\u304b\u306a\u304b\u3080\u305a\u304b\u3057\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3069\u3053\u304b\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u76e3\u8996\u3082\u53ef\u80fd\u3068\u3044\u3046\u4e8b\u306f\u8a18\u8f09\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3084\u308a\u3088\u3046\u306b\u3088\u3063\u3066\u306f\u53ef\u80fd\u306a\u306e\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3042\u308b\u7a0b\u5ea6\u306e\u4e8b\u306f\u3067\u304d\u305f\u306e\u3067\u3053\u308c\u3067\u3044\u3063\u305f\u3093\u7d42\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=5055\" data-text=\"Ruby zabbixapi\u3067Zabbix\u306eAPI\u3092\u5229\u7528\u3057\u3066\u307f\u308b\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u30de\u30a4\u30d6\u30fc\u30e0\u3068\u8a00\u3063\u3066\u3082\u3044\u3044\u307b\u3069\u6700\u8fd1API\u306e\u8a71\u304c\u7d9a\u3044\u3061\u3083\u3063\u3066\u3044\u307e\u3059\u3002 \u524d\u56de\u306fRedmine\u3067\u3001\u4eca\u56de\u306fZabbix\u3067\u3059\u3002 Redmine\u306b\u6bd4\u3079\u308b\u3068\u60c5\u5831\u91cf\u304c\u3068\u3066\u3082\u5c11\u306a\u3044\u3093\u3067\u3059\u3088\u306d\u3002\u3069\u3046\u3057\u307e\u3057\u3087\u3046\u3002\u65e5\u672c\u8a9e\u306e\u30b5\u30a4\u30c8\u304c\u5c11 &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=5055\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Ruby zabbixapi\u3067Zabbix\u306eAPI\u3092\u5229\u7528\u3057\u3066\u307f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-5055","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5055"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5055\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}