增加cacti监控对象时导致数据库出问题
2016-06-30 09:17
204 查看
生产环境:
数据库:mysql 5.5.49-cll-lve
问题:在众多Cacti监控的对象中,由于增加了监控对象nginx,导致cacti在监控所有对象中仅有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日志文件,发现没有加载有效数据,通过修复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
UtilitiesUtilities
附件:http://down.51cto.com/data/2367859
数据库:mysql 5.5.49-cll-lve
问题:在众多Cacti监控的对象中,由于增加了监控对象nginx,导致cacti在监控所有对象中仅有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日志文件,发现没有加载有效数据,通过修复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
UtilitiesUtilities
附件:http://down.51cto.com/data/2367859
相关文章推荐
- 可以恢复flashfxp密码的FlashFXP Password Recovery v1.0.160.2006 汉化版
- You must SET PASSWORD before executing this statement的解决方法
- sql 批量修改数据库表
- MYSQL安装时解决要输入current root password的解决方法
- List all the Databases on a SQL Server
- Linux 入门常用命令 password ― 修改密码,改变用户
- 模仿password输入框的实现代码
- PassWord输入框代码分享
- 基于JS实现密码框(password)中显示文字提示功能代码
- mysql 忘记密码,如何重新设置新密码(mysql5.6已测试过OK)
- Mysql常用操作
- ***常规思路
- Oracle listener password encryption
- 如何破解root以及grub密码
- Jenkins进阶系列之——09Publish Over SSH插件
- 自己CA脚本
- mysql修改密码后phpmyadmin 出现#1045
- openssl安装配置
- CentOS 6.3下利用Rsyslog+LogAnalyzer+MySQL部署日志服务器
- SimpleCursorAdapter类与数据绑定