溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

增加cacti監(jiān)控對象時導致數(shù)據(jù)庫出問題怎么辦

發(fā)布時間:2021-11-23 13:47:51 來源:億速云 閱讀:180 作者:小新 欄目:數(shù)據(jù)庫

這篇文章主要介紹增加cacti監(jiān)控對象時導致數(shù)據(jù)庫出問題怎么辦,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!

生產(chǎn)環(huán)境:

數(shù)據(jù)庫:mysql 5.5.49-cll-lve

問題:在眾多Cacti監(jiān)控的對象中,由于增加了監(jiān)控對象nginx,導致cacti在監(jiān)控所有對象中僅有1個對象出圖出數(shù)據(jù)。

分析:

1.systemutilities –>Rebuild poller cache #需要重建cache嗎?
2.系統(tǒng)時間不準確,重新設置時間  #需要更新服務器時間嗎?
3.圖像沒有生成,運行

# /usr/bin/php /var/www/html/cacti/poller.php --force #出現(xiàn)數(shù)據(jù)了嗎?
4.權限問題,修改權限#chmod 777 -R /var/www/html/cacti/rra #沒有權限嗎?
5.crontab -e  #定時任務的問題嗎?

6.數(shù)據(jù)庫表有損壞。#需要修復數(shù)據(jù)庫嗎?

  出現(xiàn)問題之后,我們要通過檢查錯誤日志來分析問題所在,請查看附件。

通過查看cacti日志文件,發(fā)現(xiàn)沒有加載有效數(shù)據(jù),通過修復cacti數(shù)據(jù)庫解決了出圖出數(shù)據(jù)的問題。

[root@sky9896 sky]# mysqlcheck --auto-repair --databases cacti  -p

Enter password:

cacti.cdef                                         OK

cacti.cdef_items                                   OK

cacti.colors                                       OK

cacti.data_input                                   OK

cacti.data_input_data

warning : 2 clients are using or haven't closed the table properly

status  : OK

cacti.data_input_fields                            OK

cacti.data_local

warning : 3 clients are using or haven't closed the table properly

status  : OK

cacti.data_template                                OK

cacti.data_template_data

warning : 3 clients are using or haven't closed the table properly

status  : OK

cacti.data_template_data_rra

warning : 2 clients are using or haven't closed the table properly

status  : OK

cacti.data_template_rrd

warning : 2 clients are using or haven't closed the table properly

status  : OK

cacti.graph_local

warning : 3 clients are using or haven't closed the table properly

status  : OK

cacti.graph_template_input                         OK

cacti.graph_template_input_defs                    OK

cacti.graph_templates                              OK

cacti.graph_templates_gprint                       OK

cacti.graph_templates_graph

warning : 3 clients are using or haven't closed the table properly

status  : OK

cacti.graph_templates_item

warning : 2 clients are using or haven't closed the table properly

status  : OK

cacti.graph_tree

warning : 1 client is using or hasn't closed the table properly

status  : OK

cacti.graph_tree_items

warning : 1 client is using or hasn't closed the table properly

status  : OK

cacti.host

warning : 9 clients are using or haven't closed the table properly

status  : OK

cacti.host_graph                                   OK

cacti.host_snmp_cache

warning : 9 clients are using or haven't closed the table properly

status  : OK

cacti.host_snmp_query                              OK

cacti.host_template                                OK

cacti.host_template_graph                          OK

cacti.host_template_snmp_query                     OK

cacti.plugin_config

warning : 1 client is using or hasn't closed the table properly

status  : OK

cacti.plugin_db_changes

warning : 1 client is using or hasn't closed the table properly

status  : OK

cacti.plugin_discover_hosts

warning : 5 clients are using or haven't closed the table properly

status  : OK

cacti.plugin_discover_template                     OK

cacti.plugin_hooks

warning : 1 client is using or hasn't closed the table properly

status  : OK

cacti.plugin_notification_lists                    OK

cacti.plugin_realms

warning : 1 client is using or hasn't closed the table properly

status  : OK

cacti.plugin_thold_contacts                        OK

cacti.plugin_thold_host_failed                     OK

cacti.plugin_thold_log

warning : 7 clients are using or haven't closed the table properly

status  : OK

cacti.plugin_thold_template_contact                OK

cacti.plugin_thold_threshold_contact               OK

cacti.poller                                       OK

cacti.poller_command

warning : 9 clients are using or haven't closed the table properly

status  : OK

cacti.poller_item

warning : 9 clients are using or haven't closed the table properly

status  : OK

cacti.poller_output                                OK

cacti.poller_output_rt

warning : 1 client is using or hasn't closed the table properly

status  : OK

cacti.poller_reindex

warning : 9 clients are using or haven't closed the table properly

status   : OK

cacti.poller_time                                  OK

cacti.rra                                          OK

cacti.rra_cf                                       OK

cacti.settings

warning : 9 clients are using or haven't closed the table properly

status  : OK

cacti.settings_graphs                              OK

cacti.settings_tree                                OK

cacti.snmp_query                                   OK

cacti.snmp_query_graph                             OK

cacti.snmp_query_graph_rrd                         OK

cacti.snmp_query_graph_rrd_sv                      OK

cacti.snmp_query_graph_sv                          OK

cacti.syslog                                       OK

cacti.syslog_alert                                 OK

cacti.syslog_facilities                            OK

cacti.syslog_host_facilities                       OK

cacti.syslog_hosts                                 OK

cacti.syslog_incoming                              OK

cacti.syslog_logs                                  OK

cacti.syslog_priorities                            OK

cacti.syslog_remove                                OK

cacti.syslog_removed                               OK

cacti.syslog_reports                               OK

cacti.syslog_statistics                            OK

cacti.thold_data

warning : 9 clients are using or haven't closed the table properly

status  : OK

cacti.thold_template                               OK

cacti.user_auth                                    OK

cacti.user_auth_perms                              OK

cacti.user_auth_realm

warning : 1 client is using or hasn't closed the table properly

status  : OK

cacti.user_log

warning : 8 clients are using or haven't closed the table properly

status  : OK

cacti.version                                      OK

以上是“增加cacti監(jiān)控對象時導致數(shù)據(jù)庫出問題怎么辦”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關知識,歡迎關注億速云行業(yè)資訊頻道!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI