cacti-不出圖形,cacti.log中出“ERROR: SQL Assoc Failed!
[root@CactiEZ log]# tail cacti.log
2016年04月06日 14:53:16 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'2006', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'"
2016年04月06日 14:53:16 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'2006', SQL:"select poller_output.output, poller_output.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"
2016年04月06日 14:53:17 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'2006', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'"
發現cacti不繪製圖形,日誌出現這樣的報錯。
解決方法:
2016年04月06日 14:53:16 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'2006', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'"
2016年04月06日 14:53:16 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'2006', SQL:"select poller_output.output, poller_output.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"
2016年04月06日 14:53:17 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'2006', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'"
發現cacti不繪製圖形,日誌出現這樣的報錯。
解決方法:
# mysql
mysql> use cacti
mysql> select count(*) from poller_output;
ERROR 1017 (HY000): Can't find file: 'poller_output' (errno: 2)
mysql> truncate table poller_output;
Query OK, 0 rows affected (0.00 sec)
mysql> select count(*) from poller_output;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
問題解決,再次檢視cacti.log,不再出現ERROR: SQL Assoc Failed!內容。
把cacti裡的系統工具---重建採集器快取 不出影像的話,可以試試這個。來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29820633/viewspace-2076197/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【ERROR】OPatch failed with error code 73ErrorAI
- [ERROR] Failed to open logErrorAI
- OPatch failed with error code 73AIError
- Error: failed PB timebomb checkErrorAI
- 在IAR 中出現the stack plug-in failed to set a breakpoint on "main"AI
- 遷移過程中出現的open failed錯誤AI
- maridb Error 'Operation DROP USER failed forErrorAI
- Opiino: Attach Failed! Error=-1 Ifvp=0AIError
- ssh到圖形介面時報:X11 forwarding request failed on channel 0ForwardAI
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- Android 3.0 DELETE_FAILED_INTERNAL_ERRORAndroiddeleteAIError
- 利用SQL實現一個圖形概率問題SQL
- 利用圖形介面從SQL匯入匯出到MySQLMySql
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- ERROR: Failed to resolve: org.greenrobot:eventbus:2.4.0ErrorAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- OPatch failed with error code 73(OracleHomeInventory gets null oracleHomeInfo)AIErrorOracleNull
- LOGIN:ERROR-Failed to initialize policy manager(轉)ErrorAI
- "OPatch failed with error code 73"故障一例AIError
- [筆記].痛哉!!!Error: Can't access JTAG chain, Error: Operation failed筆記ErrorAI
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- 如何修復 Mozilla Firefox 中出現的 “Network Protocol Error”FirefoxProtocolError
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- 解決 yum clean all Error rpmdb open failedErrorAI
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- OPatch failed with error code 73 (These not-installed components)AIError
- oem12c opatchauto failed with error code 135AIError
- Connection to x as user y failed: ERROR: Wrong password for userAIError
- GPG key retrieval failed: [Errno 14] HTTP Error 404: Not FoundAIHTTPError
- Spark SQL中出現 CROSS JOIN 問題解決SparkSQLROS
- 畫影圖形: SVG & Canvas 圖形對比SVGCanvas
- error in ./src/components/form/Editor.vue Module build failed: Error:Vue packages version mismatchErrorORMVueUIAIPackage
- mysql主從複製中出現的error和解救辦法薦MySqlError
- 【AndroidStudio】Error:Execution failed for task ':app:preDebugAndroidTestBuild'.AndroidErrorAIAPPUI
- GitLab error: RPC failed; result=22, HTTP code = 413GitlabErrorRPCAIHTTP
- ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper create failed after 4 attemptsErrorAI
- Ping:Transmit Failed, Error Code 65問題解決MITAIError
- DBLOGIN ERROR: Failed to open data source for user OGG.ErrorAI