[CentOS] Problem with Cacti and CentOS 4.4

Thu Feb 22 01:06:02 UTC 2007
Matthew Martz <mdmartz at gflug.net>

I just for the first time attempted to install Cacti from the RPMForge
repo on CentOS 4.4.

And I have to say that it hasn't gone very well at all.  I have installed
Cacti on Fedora a good 20 times with absolutely no problem.

Basically the default rrds/graphs for localhost are generated but no other
rrds/graphs are generated.

When I look at the poller cache or snmp cache I see all the data.  When I
turn on Graph Debugging I get the following:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="DCN2948-1 - Traffic - Fa10" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/www/cacti/rra/dcn29481_traffic_in_19.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/dcn29481_traffic_in_19.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

ERROR: opening '/var/www/cacti/rra/dcn29481_traffic_in_19.rrd': No such
file or directory


When I turn on debug I get the following in the logs (I have added logging
for poller.php):

poller.log

Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
... (Repeat of above)
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
02/21/2007 12:09:16 PM - POLLER: Poller[0] Maximum runtime of 292 seconds
exceeded. Exiting.
02/21/2007 12:09:16 PM - SYSTEM STATS: Time:293.1932 Method:cmd.php
Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:114
RRDsProcessed:5


cacti.log

02/21/2007 12:09:14 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select
poller_id,end_time from poller_time where poller_id = 0"
02/21/2007 12:09:14 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select 
poller_output.output,  poller_output.time,  poller_output.local_data_id, 
poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from
(poller_output,poller_item)  where
(poller_output.local_data_id=poller_item.local_data_id and
poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000"
02/21/2007 12:09:15 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select
poller_id,end_time from poller_time where poller_id = 0"
02/21/2007 12:09:15 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select 
poller_output.output,  poller_output.time,  poller_output.local_data_id, 
poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from
(poller_output,poller_item)  where
(poller_output.local_data_id=poller_item.local_data_id and
poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000"
... (Repeat of above)
02/21/2007 12:09:16 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select
poller_id,end_time from poller_time where poller_id = 0"
02/21/2007 12:09:16 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select 
poller_output.output,  poller_output.time,  poller_output.local_data_id, 
poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from
(poller_output,poller_item)  where
(poller_output.local_data_id=poller_item.local_data_id and
poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000"
02/21/2007 12:09:16 PM - POLLER: Poller[0] Maximum runtime of 292 seconds
exceeded. Exiting.
02/21/2007 12:09:16 PM - SYSTEM STATS: Time:293.1932 Method:cmd.php
Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:114
RRDsProcessed:5
02/21/2007 12:09:16 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into
settings (name,value) values ('stats_poller','Time:293.1932 Method:cmd.php
Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:114
RRDsProcessed:5')"
02/21/2007 12:09:16 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select
count(*) from poller_command"

It doesn't appear to do anything at all.  I have also tried installing
using the tgz from the cacti.net website with no success.  I think the
problem is being caused by one of the depenedencies, probably php.  The
bigest difference between the CentOS install and Fedora in reference to
Cacti is the version of php.  Centos as you know uses php4 and Fedora uses
php5.

And yes I have followed the documentation that resides on the CentOS wiki
as well as the docs on the Cacti website.

I have also tried running the poller as root with no success.

Any help would be greatly appreciated.


-- 
Matthew Martz
CentOS Mirror Admin
mdmartz at gflug.net