

{"id":922,"date":"2017-06-12T14:48:23","date_gmt":"2017-06-12T05:48:23","guid":{"rendered":"https:\/\/curecode.jp\/tech\/?p=922"},"modified":"2017-06-12T14:48:23","modified_gmt":"2017-06-12T05:48:23","slug":"cacti-poller0-error-sql-assoc-failed","status":"publish","type":"post","link":"https:\/\/curecode.jp\/tech\/cacti-poller0-error-sql-assoc-failed\/","title":{"rendered":"cacti \u3067  CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:&#8217;1017&#8242; \u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30b0\u30e9\u30d5\u304c\u63cf\u753b\u3055\u308c\u306a\u3044"},"content":{"rendered":"<p>\n  \u30ea\u30bd\u30fc\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u306e Cacti \u4f7f\u3063\u3066\u307e\u3059\u304b? \u79c1\u3082\u6700\u8fd1\u306f Zabbix \u304c\u30e1\u30a4\u30f3\u3067\u3059\u304c\u3001\u53e4\u3044\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u307e\u3060 Cacti \u304c\u6b8b\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u30b0\u30e9\u30d5\u304c\u3046\u307e\u304f\u63cf\u753b\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\u3002\n<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti-300x128.jpg\" alt=\"Cacti \u306e\u30b0\u30e9\u30d5\" width=\"300\" height=\"128\" class=\"alignnone size-medium wp-image-925\" srcset=\"https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti-300x128.jpg 300w, https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti-200x85.jpg 200w, https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti.jpg 628w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption>Cacti \u306e\u30b0\u30e9\u30d5\u304c\u9014\u4e2d\u304b\u3089\u5168\u304f\u63cf\u753b\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3044\u308b<\/figcaption><\/figure>\n<p>\n  \u307e\u305a SNMP \u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u3092\u7591\u3044\u307e\u3057\u305f\u304c\u3001\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u6b21\u306b\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002\n<\/p>\n<pre class=\"log\">\r\n02\/10\/2016 04:05:01 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1017', SQL:\"SELECT local_data_id, rrd_name FROM poller_output LIMIT 20\"\r\n02\/10\/2016 04:05:01 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1017', SQL:\"SELECT COUNT(*) FROM poller_output\"\r\n02\/10\/2016 04:05:02 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1017', SQL:\"select  poller_output.output,  poller_output.time,  UNIX_TIMESTAMP(poller_output.time) as unix_time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000\"\r\n02\/10\/2016 04:05:02 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1017', SQL:\"select  poller_output.output,  poller_output.time,  UNIX_TIMESTAMP(poller_output.time) as unix_time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000\"\r\n02\/10\/2016 04:05:02 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1017', SQL:\"select  poller_output.output,  poller_output.time,  UNIX_TIMESTAMP(poller_output.time) as unix_time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000\"\r\n<\/pre>\n<p>\n    \u3053\u306e\u30ed\u30b0\u3092\u624b\u304c\u304b\u308a\u306b\u8abf\u3079\u3066\u307f\u308b\u3068\u3001\u3069\u3046\u3084\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u7834\u640d\u3057\u3066\u3044\u308b\u3068\u304d\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n    \u305d\u3053\u3067\u3044\u308d\u3044\u308d\u306a\u624b\u6bb5\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\u3002\n<\/p>\n<h3>Cacti \u306e DB \u4fee\u5fa9\u30c4\u30fc\u30eb\u3092\u5b9f\u884c\u3059\u308b<\/h3>\n<p>Cacti \u306b\u306f repair_database.php \u3068\u3044\u3046\u4fee\u5fa9\u30c4\u30fc\u30eb\u304c\u5099\u308f\u3063\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><code class=\"shell\"># \/usr\/bin\/php \/var\/lib\/cacti\/cli\/repair_database.php <\/code><\/pre>\n<p>\n    \u3057\u304b\u3057\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u3046\u307e\u304f\u884c\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u305d\u3053\u3067\u6b21\u306e\u65b9\u6cd5\u306b\u79fb\u308a\u307e\u3059\u3002\n<\/p>\n<h3>Rebuild Poller Cache \u306e\u5b9f\u884c<\/h3>\n<p>\n    Cacti \u306e Poller Cache \u3092\u518d\u69cb\u7bc9\u3057\u307e\u3059\u3002\u3053\u306e\u6a5f\u80fd\u306f Web \u306e\u753b\u9762\u304b\u3089\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\n<\/p>\n<p>\n    Web \u7ba1\u7406\u753b\u9762\u306e\u4e0b\u306e\u65b9\u306b\u3042\u308b System Utilites \u30e1\u30cb\u30e5\u30fc\u304b\u3089 Rebuild Poller Cache \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti_rebuild_poller_cache1.png\" alt=\"cacti_rebuild_poller_cache1\" width=\"888\" height=\"785\" class=\"alignnone size-full wp-image-926\" srcset=\"https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti_rebuild_poller_cache1.png 888w, https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti_rebuild_poller_cache1-300x265.png 300w, https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti_rebuild_poller_cache1-768x679.png 768w, https:\/\/curecode.jp\/tech\/wp-content\/uploads\/2016\/03\/cacti_rebuild_poller_cache1-200x177.png 200w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><figcaption>Cacti \u306e Rebuild Poller Cache \u3092\u5b9f\u884c\u3059\u308b\u3068\u3053\u308d<\/figcaption><\/figure>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u3053\u306e\u65b9\u6cd5\u3067\u306f\u4f55\u3082\u5909\u308f\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3002<\/p>\n<h3>MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>\n    MySQL \u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u30c6\u30fc\u30d6\u30eb\u4e00\u89a7\u306f poller_output \u30c6\u30fc\u30d6\u30eb\u306f\u51fa\u3066\u304d\u307e\u3059\u304c\u3001\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u8abf\u3079\u308b\u3068\n<\/p>\n<pre><code class=\"shell\">\r\n# cd \/var\/lib\/mysql\/cacti\/\r\n# ls poller_output*\r\npoller_output.frm\r\n<\/code><\/pre>\n<p>\n  \u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb poller_output.frm \u3060\u3051\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002 \u672c\u6765\u3042\u308b\u306f\u305a\u306e\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb poller_output.MYD \u3084\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30d5\u30a1\u30a4\u30eb poller_output.MYI \u304c\u3042\u308a\u307e\u305b\u3093\u3002\n<\/p>\n<p>\n    \u3053\u306e\u3088\u3046\u306a\u5834\u5408\u306f\u3082\u3046\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304b\u3089\u5fa9\u65e7\u3059\u308b\u304b\u3001\u3042\u304d\u3089\u3081\u3066\u518d\u69cb\u7bc9\u3057\u307e\u3059\u3002\u4eca\u56de\u306f <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/5.6\/ja\/myisam-repair.html\" target=\"_blank\">MySQL 5.6 \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30de\u30cb\u30e5\u30a2\u30eb MyISAM \u30c6\u30fc\u30d6\u30eb\u306e\u4fee\u5fa9\u65b9\u6cd5<\/a> \u306e\u65b9\u6cd5\u306b\u5f93\u3063\u3066 TRUNCATE \u3092\u3057\u307e\u3057\u305f\u3002\n<\/p>\n<h3>poller_output \u30c6\u30fc\u30d6\u30eb\u306e Truncate<\/h3>\n<p>\n    \u5ff5\u306e\u305f\u3081\u306b poller_output.frm \u3092\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u6b21\u306b mysql \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066 TRUNCATE \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n<\/p>\n<pre><code class=\"sql\">\r\nmysql> TRUNCATE TABLE poller_output ;\r\nQuery OK, 0 rows affected (0.01 sec)     \r\n<\/code><\/pre>\n<p>\n\u7a7a\u306e poller_output.MYD  poller_output.MYI \u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u307e\u3059\u3002\u5f85\u907f\u3057\u3066\u3044\u305f poller_output.frm \u3092\u623b\u3057\u307e\u3059\uff08\u305d\u3082\u305d\u3082\u30c7\u30fc\u30bf\u304c\u5931\u308f\u308c\u3066\u3044\u308b\u306e\u3067\u672c\u6765\u4e0d\u8981\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\uff09\n<\/p>\n<p>\n    \u3053\u308c\u3067\u30b0\u30e9\u30d5\u306e\u63cf\u753b\u304c\u7121\u4e8b\u5fa9\u6d3b\u3057\u307e\u3057\u305f\u3002\n<\/p>\n<h3>IT\u30a8\u30f3\u30b8\u30cb\u30a2\u52df\u96c6\u4e2d\uff01<\/h3>\n<p>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u682a\u5f0f\u4f1a\u793e\u306fIT\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u52df\u96c6\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u5c11\u4eba\u6570\u306e\u8077\u5834\u306a\u306e\u3067\u3001\u4e0a\u6d41\u30fb\u4e0b\u6d41\u3084\u30b5\u30fc\u30d0\u30fc\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5bfe\u5fdc\u306e\u57a3\u6839\u306a\u304f\u3001\u3042\u306a\u305f\u306e\u5f37\u307f\u3092\u6d3b\u304b\u3057\u306a\u304c\u3089 \u3044\u308d\u3044\u308d\u306a\u3053\u3068\u306b\u30c1\u30e3\u30ec\u30f3\u30b8\u53ef\u80fd\u3067\u3059\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066\u306e\u672a\u7d4c\u9a13\u306e\u65b9\u3001\u7d4c\u9a13\u304c\u5c11\u306a\u3044\u65b9\u3082\u6b53\u8fce\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u3088\u308aIT\u30a8\u30f3\u30b8\u30cb\u30a2\u52df\u96c6\u306e\u63a1\u7528\u60c5\u5831\u3092\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<div class=\"curecode_recruit_bn\">\n\t\t\t\t<a href=\"https:\/\/curecode.jp\/recruit\/itengineer\/\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/themes\/tech\/images\/it_recruit.png?20241220\" alt=\"\u4e8b\u696d\u62e1\u5927\u306b\u4f34\u3044\u65b0\u3057\u3044\u9818\u57df\u306b\u4e00\u7dd2\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u304f\u30e1\u30f3\u30d0\u30fc\u3092\u52df\u96c6\u3057\u307e\u3059\u3002\"  width=\"500\" height=\"180\"\/><br \/>\n\t\t\t\t<\/a>\n\t\t<\/div>\n<h3>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u516c\u5f0f\u30a4\u30f3\u30b9\u30bf\u30b0\u30e9\u30e0<\/h3>\n<p>\u30ad\u30e5\u30a2\u30b3\u30fc\u30c9\u682a\u5f0f\u4f1a\u793e\u306e\u65b0\u30b5\u30fc\u30d3\u30b9\u60c5\u5831\u3084\u3001\u30aa\u30d5\u30a3\u30b9\u30e9\u30a4\u30d5\u306e\u7d20\u6575\u306a\u77ac\u9593\u307e\u3067\u3002\u79c1\u305f\u3061\u306e\u65e5\u3005\u306e\u55b6\u307f\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"curecode_recruit_bn\">\n\t\t\t\t<a href=\"https:\/\/www.instagram.com\/curecode\/\" target=\"_blank\" rel=\"noopener noreferrer\"><br \/>\n\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/curecode.jp\/tech\/wp-content\/themes\/tech\/images\/insta_bn.png?20241220\" alt=\"\u4e8b\u696d\u62e1\u5927\u306b\u4f34\u3044\u65b0\u3057\u3044\u9818\u57df\u306b\u4e00\u7dd2\u306b\u53d6\u308a\u7d44\u3093\u3067\u3044\u304f\u30e1\u30f3\u30d0\u30fc\u3092\u52df\u96c6\u3057\u307e\u3059\u3002\"  width=\"500\" height=\"180\"\/><br \/>\n\t\t\t\t<\/a>\n\t\t<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30ea\u30bd\u30fc\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30c4\u30fc\u30eb\u306e Cacti \u4f7f\u3063\u3066\u307e\u3059\u304b? \u79c1\u3082\u6700\u8fd1\u306f Zabbix \u304c\u30e1\u30a4\u30f3\u3067\u3059\u304c\u3001 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":1162,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84],"tags":[115,71],"class_list":["post-922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","tag-cacti","tag-mysql"],"_links":{"self":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/comments?post=922"}],"version-history":[{"count":4,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/922\/revisions"}],"predecessor-version":[{"id":1261,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/posts\/922\/revisions\/1261"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/media\/1162"}],"wp:attachment":[{"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/media?parent=922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/categories?post=922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/curecode.jp\/tech\/wp-json\/wp\/v2\/tags?post=922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}