I've recently been trying to get spine working as a replacement for the standard cmd.php on an AIX environment with Cacti.
I have managed to compile the latest version of spine 0.8.7g, to run with 0.8.7e of Cacti.
Spine itself seems to work fine and is able to poll devices significantly faster than cmd.php does, however it seems that the majority of the time, poller.php exits before spine has completed... The strange thing is that it doesnt look like it crashes, as it outputs the "SYSTEM STATS" line in the cacti.log file. This then means that the results table doesnt get cleared out, and not all RRDs get updated.
Here's an example of spine continuing after poller, just after I have switched from using cmd.php. As you can see the number of RRDs updated is less than with cmd.php, and if I leave spine running for several iterations, the number of processes RRDs continues to decrease.
RRDsProcessed declining:
Code: Select all
05/17/2011 01:59:43 PM - SYSTEM STATS: Time:23.4199 Method:spine Processes:20 Threads:10 Hosts:71 HostsPerProcess:4 DataSources:3993 RRDsProcessed:1742
05/17/2011 02:04:45 PM - SYSTEM STATS: Time:25.9708 Method:spine Processes:20 Threads:10 Hosts:71 HostsPerProcess:4 DataSources:3993 RRDsProcessed:1779
05/17/2011 02:09:35 PM - SYSTEM STATS: Time:16.7437 Method:spine Processes:20 Threads:10 Hosts:71 HostsPerProcess:4 DataSources:3993 RRDsProcessed:1314
Code: Select all
05/17/2011 10:24:26 AM - SPINE: Poller[0] Host[190] TH[1] DS[3570] SNMP: v1: XXXXXXXXXXXXXX, dsname: memXXee, oid: 1.3.6.1.4.1.6848.2.3.2.1.3.13, value: 46784
05/17/2011 10:24:26 AM - SPINE: Poller[0] Host[190] TH[1] DS[3570] SNMP: v1: XXXXXXXXXXXXXX, dsname: swapXXee, oid: 1.3.6.1.4.1.6848.2.3.3.1.3.13, value: 1003896
05/17/2011 10:24:30 AM - SYSTEM STATS: Time:10.5139 Method:spine Processes:10 Threads:25 Hosts:73 HostsPerProcess:8 DataSources:4055 RRDsProcessed:1630
05/17/2011 10:24:32 AM - SPINE: Poller[0] Host[189] TH[1] DS[3331] SNMP: v1: XXXXXXXXXXXXXX, dsname: cpuLoXX, oid: 1.3.6.1.4.1.6848.2.3.1.4.1, value: 900
05/17/2011 10:24:32 AM - SPINE: Poller[0] Host[189] TH[1] DS[3332] SNMP: v1: XXXXXXXXXXXXXX, dsname: cpuLoXX, oid: 1.3.6.1.4.1.6848.2.3.1.4.2, value: 900
05/17/2011 10:24:32 AM - SPINE: Poller[0] Host[189] TH[1] DS[3333] SNMP: v1: XXXXXXXXXXXXXX, dsname: cpuLoXX, oid: 1.3.6.1.4.1.6848.2.3.1.4.5, value: 101
05/17/2011 10:24:32 AM - SPINE: Poller[0] Host[189] TH[1] DS[3334] SNMP: v1: XXXXXXXXXXXXXX, dsname: cpuLoXX, oid: 1.3.6.1.4.1.6848.2.3.1.4.6, value: 100
05/17/2011 10:24:32 AM - SPINE: Poller[0] Host[189] TH[1] DS[3335] SNMP: v1: XXXXXXXXXXXXXX, dsname: cpuLoXX, oid: 1.3.6.1.4.1.6848.2.3.1.4.7, value: 0
05/17/2011 10:24:32 AM - SPINE: Poller[0] Host[189] TH[1] DS[3336] SNMP: v1: XXXXXXXXXXXXXX, dsname: cpuLoXX, oid: 1.3.6.1.4.1.6848.2.3.1.4.13, value: 2
05/17/2011 10:24:32 AM - SPINE: Poller[0] Host[189] TH[1] DS[3337] SNMP: v1: XXXXXXXXXXXXXX, dsname: cpuLoXX, oid: 1.3.6.1.4.1.6848.2.3.1.4.14, value: 0
Thanks
Adam