久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

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

163次閱讀
沒有評論

共計 4019 個字符,預計需要花費 11 分鐘才能閱讀完成。

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

生產環(huán)境:

數據庫:mysql 5.5.49-cll-lve

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

分析:

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

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

6. 數據庫表有損壞。# 需要修復數據庫嗎?

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

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

[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)控對象時導致數據庫出問題怎么辦”這篇文章的所有內容,感謝各位的閱讀!希望分享的內容對大家有幫助,更多相關知識,歡迎關注丸趣 TV 行業(yè)資訊頻道!

正文完
 
丸趣
版權聲明:本站原創(chuàng)文章,由 丸趣 2023-07-19發(fā)表,共計4019字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發(fā)布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 华阴市| 二连浩特市| 崇明县| 买车| 通榆县| 呼玛县| 肥乡县| 河津市| 成安县| 双鸭山市| 梅河口市| 车险| 焦作市| 十堰市| 湟源县| 安达市| 曲靖市| 万全县| 武冈市| 旺苍县| 庆阳市| 浦江县| 兴山县| 都安| 荥阳市| 泗水县| 平舆县| 宝坻区| 东港市| 五大连池市| 石台县| 福建省| 玛纳斯县| 巍山| 安塞县| 闵行区| 安康市| 鹰潭市| 达尔| 上饶县| 屏东市|