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
- OPatch failed with error code 73AIError
- 【AndroidStudio】Error:Execution failed for task ':app:preDebugAndroidTestBuild'.AndroidErrorAIAPPUI
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- Realcase: Failed to upgrade SQL Server 2016 SP2 CU11. (Installation success or error status: 1648)AISQLServerError
- FATAL - Fatal error: Target Interaction Manager failed at StartupErrorAI
- ERROR: Failed to resolve: org.greenrobot:eventbus:2.4.0ErrorAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500GitErrorRPCAIHTTP
- 如何修復 Mozilla Firefox 中出現的 “Network Protocol Error”FirefoxProtocolError
- ssh到圖形介面時報:X11 forwarding request failed on channel 0ForwardAI
- 解決 yum clean all Error rpmdb open failedErrorAI
- PSQLException: ERROR: failed to find conversion function from unknown to charSQLExceptionErrorAIFunction
- error in ./src/components/form/Editor.vue Module build failed: Error:Vue packages version mismatchErrorORMVueUIAIPackage
- python爬蟲--urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certiPython爬蟲ErrorAI
- ascp: Failed to open TCP connection for SSH, exiting. Session Stop (Error: Failed to open TCP connection for SSH)AITCPSessionError
- Microsoft SQL Server, Error: 15128 ()ROSSQLServerError
- ERROR:Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODINGErrorAIEncoding
- Error: pngquant failed to build, make sure that libpng-dev is installedErrorAIUIdev
- ERROR: failed to establish dependency between database db_name and diskgroupErrorAIDatabase
- Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the processErrorExceptionAI
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- 測試中出現ERROR StatusLogger No log4j2 configuration fileError
- Spark SQL中出現 CROSS JOIN 問題解決SparkSQLROS
- fetch_array()與fetch_assoc()的用法
- error: install: %pre scriptlet failed (2), skipping cvuqdisk-1.0.9-1ErrorAI
- error: RPC failed; curl 18 transfer closed with outstanding read data remainingErrorRPCAIREM
- wsl損壞,WSLRegisterDistribution Failed with Error 0x8007019eAIError
- Job for docker.service failed because the control process exited with error codeDockerAIError
- bind (ERROR 502): bind(0.0.0.0:8811) failed. Error: Address already in use [98] (埠被佔用)ErrorAI
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- merge sql error, dbType sqlserver, druid1.1.10, sql : nullSQLErrorServerUINull
- PING[ARC5]: Heartbeat failed to connect to standby 'dghq'. Error is 12154.AIError
- Network Error;net::ERR_FAILED(請求跨越)前後端ErrorAI後端
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED解決辦法ErrorDNNAI
- Job for mysqld.service failed because the control process exited with error code...MySqlAIError
- Docker 映象拉取失敗(error pulling image configuration:download failed)DockerErrorAI
- mysql-SQL Error: 1205, SQLState: 41000MySqlError
- 畫影圖形: SVG & Canvas 圖形對比SVGCanvas