Spine 0.8.7a with cacti 0.8.7b problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
johnzw
Posts: 10
Joined: Wed Jul 16, 2008 12:05 am

Spine 0.8.7a with cacti 0.8.7b problem

Post by johnzw »

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:
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: Select all

 /* 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:
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.
johnzw
Posts: 10
Joined: Wed Jul 16, 2008 12:05 am

Post by johnzw »

update

my mistake, I didn't setup spine.conf correctly, and now, I corrective it.
However, there still has problem.
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:
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?
johnzw
Posts: 10
Joined: Wed Jul 16, 2008 12:05 am

Post by johnzw »

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.
rtorti19
Posts: 48
Joined: Wed May 07, 2008 1:20 pm

Post by rtorti19 »

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.
grazog
Posts: 13
Joined: Fri May 02, 2008 3:11 am

Post by grazog »

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.
johnzw
Posts: 10
Joined: Wed Jul 16, 2008 12:05 am

Post by johnzw »

hello grazog, I don't understand your mean, could you give me a example? how to modify grub.conf to corrective time.
johnzw
Posts: 10
Joined: Wed Jul 16, 2008 12:05 am

Post by johnzw »

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What happens when you run spine manually? You can run "./spine -V 5" for more information.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Post by msw1970 »

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?
grazog
Posts: 13
Joined: Fri May 02, 2008 3:11 am

Post by grazog »

Hello,
sorry for the delay i didn't saw your message.

Here is a link to the grub modification and an explanation of the time problem on VM :

http://www.adrianbradshaw.co.uk/secretw ... -Time-Sync

Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests