增加cacti监控对象时导致数据库出问题怎么办

技术增加cacti监控对象时导致数据库出问题怎么办这篇文章主要介绍增加cacti监控对象时导致数据库出问题怎么办,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!生产环境:数据库:mysql 5.5.

本文主要介绍在添加cacti监控对象时如何处理数据库问题。很详细,有一定的参考价值。感兴趣的朋友一定要看完!

生产环境:

数据库:mysql 5.5.49-cll-lve

问题:在众多Cacti监控的对象中,由于增加了监控对象nginx,导致cacti在监控所有对象中仅有1个对象出图出数据。

分析:

1.系统实用程序重建轮询器缓存#您需要重建缓存吗?

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日志文件,发现没有加载有效数据,通过修复cacti数据库解决了数据出图问题。

[root@sky9896 sky]# mysqlcheck -自动修复-数据库cacti -p

输入密码:

cacti.cdef OK

cacti.cdef_items OK

仙人掌。颜色可以

数据输入正常

cacti.data_input_data

警告: 2客户端正在使用或尚未正确关闭表

状态:正常

数据输入字段正常

cacti.data_local

警告: 3客户端正在使用或尚未正确关闭表

状态:正常

cacti.data _模板

                    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监控对象时导致数据库出问题怎么办”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!

内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/113122.html

(0)

相关推荐

  • 40种聚会小游戏,聚会适合两人一组玩的小游戏

    技术40种聚会小游戏,聚会适合两人一组玩的小游戏快乐大本营的,谁是卧底40种聚会小游戏!还有考验默契的,一个人画一个人猜,or一个人看词比动作,然后不说话的那种,叫别人猜是什么
    瞎子背瘸子
    目的:沟通配合能力,活跃气氛

    生活 2021年10月31日
  • 如何使用Ranger给HDFS授权

    技术如何使用Ranger给HDFS授权这篇文章给大家介绍如何使用Ranger给HDFS授权,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。主要介绍如何使用Ranger 给HDFS 授权。文档概述1.介

    攻略 2021年11月2日
  • 男人英语单词是什么,英语单词man和men怎么发音

    技术男人英语单词是什么,英语单词man和men怎么发音man[m鎛]把嘴巴张大一点,强调嬉簟en[men]嘴巴张小一点,不需要强调e音男人英语单词是什么。policeman也是一样,嘴巴张大一点,强调嬉簟olicem

    生活 2021年10月27日
  • 淘宝买家信用,淘宝买家信誉分规则介绍

    技术淘宝买家信用,淘宝买家信誉分规则介绍一、评分原则:与买家有直接关系。当买家收到商品时,可以对卖家的商品、服务以及物流进行评价。看看卖家的商品是否与描述的一样淘宝买家信用?卖家的服务态度是否认真又耐心?物流的速度快不快

    生活 2021年10月27日
  • 如何使用Eclipse进行PHP的服务器端调试

    技术如何使用Eclipse进行PHP的服务器端调试这篇文章将为大家详细讲解有关如何使用Eclipse进行PHP的服务器端调试,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。首先,得将您P

    攻略 2021年11月25日
  • Hibernate日志类别有哪些

    技术Hibernate日志类别有哪些本篇内容主要讲解“Hibernate日志类别有哪些”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Hibernate日志类别有哪些”吧!在H

    攻略 2021年12月4日