|
|
| Author |
Message |
johnzw
Joined: 16 Jul 2008 Posts: 10
|
Posted: Wed Jul 16, 2008 12:07 am Post subject: Spine 0.8.7a with cacti 0.8.7b problem |
|
|
I download spine 0.8.7a and install successful.
everything is good when cacti 0.8.7b use cmd.php to grasp snmp data.
However, when I changed the poller from cmd.php to spine, I got some messages in cacti log, as follows:
| Quote: |
07/16/2008 10:35:01 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
07/16/2008 10:30:00 AM - SYSTEM STATS: Time:299.3580 Method:spine Processes:1 Threads:5 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:0
07/16/2008 10:30:00 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
07/16/2008 10:25:00 AM - SYSTEM STATS: Time:298.3690 Method:spine Processes:1 Threads:1 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:0
07/16/2008 10:25:00 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
07/16/2008 10:20:00 AM - SYSTEM STATS: Time:299.3933 Method:spine Processes:1 Threads:5 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:0
07/16/2008 10:20:00 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
07/16/2008 10:15:00 AM - SYSTEM STATS: Time:298.3347 Method:spine Processes:1 Threads:5 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:0
07/16/2008 10:15:00 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
07/16/2008 10:10:00 AM - SYSTEM STATS: Time:299.3317 Method:spine Processes:1 Threads:5 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:0
|
cacti can't call RRDs to draw graph, and I searched poller.php, I found the following codes, maybe useful:
| Code: |
/* end the process if the runtime exceeds MAX_POLLER_RUNTIME */
if (($poller_start + MAX_POLLER_RUNTIME) < time()) {
cacti_log("poller_start =" . $poller_start , "Maximum runtime of ". MAX_POLLER_RUNTIME , " time" . time() , true, "POLLER");
rrd_close($rrdtool_pipe);
cacti_log("Maximum runtime of " . MAX_POLLER_RUNTIME . " seconds exceeded. Exiting.", true, "POLLER");
|
I add a debug cacti_log() line in the above code, and the log as follows:
| Quote: |
07/16/2008 11:20:00 AM - SYSTEM STATS: Time:299.3396 Method:spine Processes:1 Threads:5 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:0
07/16/2008 11:20:00 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
07/16/2008 11:20:00 AM - POLLER: Poller[0] poller_start =1216178101.27Maximum runtime of 298 time1216178400
07/16/2008 11:15:01 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
07/16/2008 11:15:00 AM - SYSTEM STATS: Time:298.3415 Method:spine Processes:1 Threads:5 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:0
07/16/2008 11:15:00 AM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
07/16/2008 11:15:00 AM - POLLER: Poller[0] poller_start =1216177801.75Maximum runtime of 298 time1216178100
07/16/2008 11:10:01 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
|
I don't know the mean of $poller_start and time(), anyone can help me to explain it ? or give me a solution about this problem ? thank you very much. |
|
| Back to top |
|
 |
johnzw
Joined: 16 Jul 2008 Posts: 10
|
Posted: Wed Jul 16, 2008 2:18 am Post subject: |
|
|
update
my mistake, I didn't setup spine.conf correctly, and now, I corrective it.
However, there still has problem.
| Quote: |
07/16/2008 02:50:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
07/16/2008 02:50:00 PM - SYSTEM STATS: Time:299.3446 Method:spine Processes:1 Threads:5 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:0
07/16/2008 02:50:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
|
/usr/local/spine/bin/spine -V 5 no error and warning, outcome is good.
php /usr/local/cacti/poller.php display as follows:
| Quote: |
07/16/2008 03:13:53 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '232', Max Runtime '298', Poller Runs: '1'
Waiting on 1/1 pollers.
07/16/2008 03:13:54 PM - SYSTEM STATS: Time:1.1943 Method:spine Processes:1 Threads:5 Hosts:11 HostsPerProcess:11 DataSources:127 RRDsProcessed:12
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
OK u:0.00 s:0.00 r:1.02
|
any ideal ? why spine can't call RRDs via PHP? |
|
| Back to top |
|
 |
johnzw
Joined: 16 Jul 2008 Posts: 10
|
Posted: Wed Jul 16, 2008 2:29 am Post subject: |
|
|
update.
my linux installed in Xen Server. Is this virtual-machine time problem ?
I know the time of virtual-machine has some problem, but I am not a expert. I running a ntp script on my virtual linux and sync with the ntp server (Xen system).
anyone can help me ? thank you. |
|
| Back to top |
|
 |
rtorti19
Joined: 07 May 2008 Posts: 48
|
Posted: Wed Jul 16, 2008 10:26 am Post subject: |
|
|
| Did you see the max runtimes show up right after you made a time change? also I think it you run the poller by hand outside of the regular polling cycle it will cause this error on the next poller run, but should be fine after that. |
|
| Back to top |
|
 |
grazog
Joined: 02 May 2008 Posts: 2
|
Posted: Thu Jul 17, 2008 2:54 am Post subject: |
|
|
| johnzw wrote: | update.
my linux installed in Xen Server. Is this virtual-machine time problem ?
I know the time of virtual-machine has some problem, but I am not a expert. I running a ntp script on my virtual linux and sync with the ntp server (Xen system).
anyone can help me ? thank you. |
Hello,
I installed cacti on a Linux virtual machine and encountered time issues even with ntp installed (time would shift around 30s in a 1m period).
The solution was to change the way the VM handle time in the grub.conf. |
|
| Back to top |
|
 |
johnzw
Joined: 16 Jul 2008 Posts: 10
|
Posted: Fri Jul 25, 2008 3:27 am Post subject: |
|
|
| hello grazog, I don't understand your mean, could you give me a example? how to modify grub.conf to corrective time. |
|
| Back to top |
|
 |
johnzw
Joined: 16 Jul 2008 Posts: 10
|
Posted: Fri Jul 25, 2008 3:32 am Post subject: |
|
|
| rtorti19 wrote: | | Did you see the max runtimes show up right after you made a time change? also I think it you run the poller by hand outside of the regular polling cycle it will cause this error on the next poller run, but should be fine after that. |
I didn't made a time change, and my poller interval is 5 min. and I saw some information in the internet which told me time() has some trouble in virtual system and might be cause some problems. |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Fri Jul 25, 2008 11:49 am Post subject: |
|
|
What happens when you run spine manually? You can run "./spine -V 5" for more information.
TheWitness |
|
| Back to top |
|
 |
msw1970 Cacti User
Joined: 09 Jan 2007 Posts: 153
|
Posted: Fri Aug 01, 2008 9:28 am Post subject: |
|
|
| TheWitness wrote: | What happens when you run spine manually? You can run "./spine -V 5" for more information.
TheWitness |
I'm having the same problem with spine.... If I change the poller within cacti to spine it exceeds the 300 seconds and the log reports that 0 rrds processed...
If I run spine manually as you described, it completes in 19 seconds!!
Any clues? |
|
| Back to top |
|
 |
grazog
Joined: 02 May 2008 Posts: 2
|
|
| Back to top |
|
 |
|