免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7701 | 回复: 3
打印 上一主题 下一主题

[其他] cacti好奇怪的问题 [复制链接]

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:15数据库技术版块每日发帖之星
日期:2016-02-26 06:20:00IT运维版块每日发帖之星
日期:2016-07-13 06:20:002016科比退役纪念章
日期:2016-07-31 11:28:35
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-04-15 23:11 |只看该作者 |倒序浏览
好几天了安装了cacti,发现手工执行php /var/www/html/cacti/poller.php --force之后就能显示出rra下面的文件,但是能出空图,没有数据,感觉好像这个东西没有执行一项,但是的的确确是写了crontab 而且通过cron的日志发现确实五分钟执行一次,好奇怪啊,而且我改用spine之后,好像spine没有生效,声明执行./spine没任何报错,而且cacti.log没有任何错误

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:15数据库技术版块每日发帖之星
日期:2016-02-26 06:20:00IT运维版块每日发帖之星
日期:2016-07-13 06:20:002016科比退役纪念章
日期:2016-07-31 11:28:35
2 [报告]
发表于 2014-04-16 09:16 |只看该作者
04/15/2014 02:34:50 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/localhost_proc_7.rrd --template proc 1397543690:105
04/15/2014 02:34:50 PM - SPINE: Poller[0] Time: 0.0935 s, Threads: 1, Hosts: 2
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: Net-SNMP Close Completed
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: MYSQL Free & Close Completed
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: Allocated Variable Memory Freed
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: PHP Script Server Pipes Closed
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: Thread Cleanup Complete
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] TH[1] Total Time: 0.033 Seconds
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] TH[1] DS[7] SCRIPT: perl /var/www/html/cacti/scripts/unix_processes.pl, output: 105
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] DEBUG: The NIFTY POPEN returned the following File Descriptor 7
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] TH[1] NOTE: There are '1' Polling Items for this Host
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] TH[1] Host has no information for recache.
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] PING: Result UDP: Host is Alive
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] DEBUG: UDP Host Alive, Try Count:1, Time:0.0290 ms
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[1] DEBUG: Entering UDP Ping
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 0
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[0] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
04/15/2014 02:34:50 PM - SPINE: Poller[0] Host[0] TH[1] Total Time: 0.00057 Seconds
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: Initial Value of Active Threads is 0
04/15/2014 02:34:50 PM - SPINE: Poller[0] NOTE: Spine is behaving in a 0.8.7g+ manner
04/15/2014 02:34:50 PM - SPINE: Poller[0] NOTE: Spine will support multithread device polling.
04/15/2014 02:34:50 PM - SPINE: Poller[0] SPINE: Initializing PHP Script Server(s)
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
04/15/2014 02:34:50 PM - SPINE: Poller[0] SPINE: Initializing Net-SNMP API
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: Spine is running asroot.
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: MySQL is Thread Safe!
04/15/2014 02:34:50 PM - SPINE: Poller[0] Version 0.8.8b starting
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The PHP Script Server is Not Required
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: StartHost='0', EndHost='1', TotalPHPScripts='0'
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 1
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The script timeout is 25
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 1
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The polling interval is 60 seconds
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The threads variable is 1
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The log_pstats variable is 0
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The boost_redirect variable is 0
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The log_pwarn variable is 0
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The log_perror variable is 1
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The snmp_retries variable is 3
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The ping_timeout variable is 400
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The ping_retries variable is 1
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The ping_method variable is 2
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The availability_method variable is 3
04/15/2014 02:34:50 PM - SPINE: Poller[0] DEBUG: The path_php variable is /usr/bin/php
04/15/2014 02:34:50 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS: 0 1]
04/15/2014 02:34:50 PM - POLLER: Poller[0] WARNING: Poller Output Table not Empty. Issues Found: 6, Data Sources: mem_buffers(DS[3]), mem_swap(DS[4]), (DS[5]), users(DS[6]), proc(DS[7]), proc(DS[7])
04/15/2014 02:34:50 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Cron, but 4281 seconds have passed since the last poll!
04/15/2014 02:34:50 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '4281', Max Runtime '58', Poller Runs: '1'

手工执行了一下php /var/www/html/cacti/poller.php

论坛徽章:
16
IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每月发帖之星
日期:2015-09-11 19:30:52IT运维版块每周发帖之星
日期:2015-09-11 19:20:31IT运维版块每日发帖之星
日期:2015-08-26 06:20:00每日论坛发贴之星
日期:2015-08-20 06:20:00IT运维版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15金牛座
日期:2014-05-04 16:58:09双子座
日期:2013-12-17 16:44:37辰龙
日期:2013-11-22 15:20:59狮子座
日期:2013-11-18 22:55:08射手座
日期:2013-11-12 10:54:26
3 [报告]
发表于 2014-04-17 10:34 |只看该作者
cacti页面上有个turn on debug 看下那个。

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
4 [报告]
发表于 2014-04-25 10:07 |只看该作者
先看看有没有数据,
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP