laoadiy 发表于 2014-04-15 23:11

cacti好奇怪的问题

好几天了安装了cacti,发现手工执行php /var/www/html/cacti/poller.php --force之后就能显示出rra下面的文件,但是能出空图,没有数据,感觉好像这个东西没有执行一项,但是的的确确是写了crontab 而且通过cron的日志发现确实五分钟执行一次,好奇怪啊,而且我改用spine之后,好像spine没有生效,声明执行./spine没任何报错,而且cacti.log没有任何错误

laoadiy 发表于 2014-04-16 09:16

04/15/2014 02:34:50 PM - POLLER: Poller 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 Time: 0.0935 s, Threads: 1, Hosts: 2
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: Net-SNMP Close Completed
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: MYSQL Free & Close Completed
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: Allocated Variable Memory Freed
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: PHP Script Server Pipes Closed
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: Thread Cleanup Complete
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The Value of Active Threads is 0
04/15/2014 02:34:50 PM - SPINE: Poller Host TH DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
04/15/2014 02:34:50 PM - SPINE: Poller Host TH Total Time: 0.033 Seconds
04/15/2014 02:34:50 PM - SPINE: Poller Host TH DS SCRIPT: perl /var/www/html/cacti/scripts/unix_processes.pl, output: 105
04/15/2014 02:34:50 PM - SPINE: Poller Host DEBUG: The NIFTY POPEN returned the following File Descriptor 7
04/15/2014 02:34:50 PM - SPINE: Poller Host TH NOTE: There are '1' Polling Items for this Host
04/15/2014 02:34:50 PM - SPINE: Poller Host TH Host has no information for recache.
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The Value of Active Threads is 1
04/15/2014 02:34:50 PM - SPINE: Poller Host PING: Result UDP: Host is Alive
04/15/2014 02:34:50 PM - SPINE: Poller Host DEBUG: UDP Host Alive, Try Count:1, Time:0.0290 ms
04/15/2014 02:34:50 PM - SPINE: Poller Host DEBUG: Entering UDP Ping
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: In Poller, About to Start Polling of Host
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: Valid Thread to be Created
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The Value of Active Threads is 0
04/15/2014 02:34:50 PM - SPINE: Poller Host TH DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
04/15/2014 02:34:50 PM - SPINE: Poller Host TH Total Time: 0.00057 Seconds
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The Value of Active Threads is 1
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: In Poller, About to Start Polling of Host
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: Valid Thread to be Created
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: Initial Value of Active Threads is 0
04/15/2014 02:34:50 PM - SPINE: Poller NOTE: Spine is behaving in a 0.8.7g+ manner
04/15/2014 02:34:50 PM - SPINE: Poller NOTE: Spine will support multithread device polling.
04/15/2014 02:34:50 PM - SPINE: Poller SPINE: Initializing PHP Script Server(s)
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
04/15/2014 02:34:50 PM - SPINE: Poller SPINE: Initializing Net-SNMP API
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: Spine is running asroot.
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: MySQL is Thread Safe!
04/15/2014 02:34:50 PM - SPINE: Poller Version 0.8.8b starting
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The Maximum SNMP OID Get Size is 10
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The PHP Script Server is Not Required
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: StartHost='0', EndHost='1', TotalPHPScripts='0'
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The number of php script servers to run is 1
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The script timeout is 25
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The number of concurrent processes is 1
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The polling interval is 60 seconds
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The threads variable is 1
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The log_pstats variable is 0
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The boost_redirect variable is 0
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The log_pwarn variable is 0
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The log_perror variable is 1
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The snmp_retries variable is 3
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The ping_timeout variable is 400
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The ping_retries variable is 1
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The ping_method variable is 2
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The ping_failure_count variable is 2
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The ping_recovery_count variable is 3
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The availability_method variable is 3
04/15/2014 02:34:50 PM - SPINE: Poller DEBUG: The path_php variable is /usr/bin/php
04/15/2014 02:34:50 PM - POLLER: Poller DEBUG: About to Spawn a Remote Process
04/15/2014 02:34:50 PM - POLLER: Poller WARNING: Poller Output Table not Empty. Issues Found: 6, Data Sources: mem_buffers(DS), mem_swap(DS), (DS), users(DS), proc(DS), proc(DS)
04/15/2014 02:34:50 PM - POLLER: Poller 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 NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '4281', Max Runtime '58', Poller Runs: '1'

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

wenhq 发表于 2014-04-17 10:34

cacti页面上有个turn on debug 看下那个。

action08 发表于 2014-04-25 10:07

先看看有没有数据,
页: [1]
查看完整版本: cacti好奇怪的问题