Cacti not creating .rrds - 0.8.7b

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
alduin
Posts: 2
Joined: Thu Apr 10, 2008 5:17 pm

Cacti not creating .rrds - 0.8.7b

Post by alduin »

My cacti installation was recently upgraded to 0.8.7b but this problem was occurring prior to that, on 0.8.6j. I'm running cacti and spine (both from source) on Ubuntu 6.06.

When I create a new device from a device template and add graphs to it ("In/Out Bits" and "In/Out Errors/Discarded Packets"), the devices and graphs are created without a problem.

The next time the poller runs, however, the .rrd files aren't created. Going to the "Data Sources" page shows all of them in the list, and there's no error message reported in the debug output for any of them. In fact, I can take the rrdtool create line that is provided in the debug output and use that as my poller user to create the .rrd file without a problem. For example:

Code: Select all

Data Source Debug

/usr/bin/rrdtool create \
/var/www/cacti.desales.edu/htdocs/rra/56_16_-_campus_ministry_traffic_in_5188.rrd \
--step 300  \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:1440:3985 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:1440:3985 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:1440:3985 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:1440:3985 \
That works, and creates the .rrd file in the right place with the right permissions. When spine runs on the next poll, however, the data source isn't updated. A tcpdump shows that the SNMP queries are being done to the device in question, but the .rrd just isn't created.

Debug logging shows that the poller is trying to create and update the rrd file:

Code: Select all

04/10/2008 06:30:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/cacti.desales.edu/htdocs/rra/56_16_-_campus_ministry_traffic_in_5188.rrd   --step 300   DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:1440:3985  RRA:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN:0.5:1440:3985  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:1440:3985  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:1440:3985

04/10/2008 06:30:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti.desales.edu/htdocs/rra/56_16_-_campus_ministry_traffic_in_5188.rrd --template traffic_in:traffic_out N:2553209490:98811999
I have other data sources that are updating just fine, and I've checked to make sure I don't have the duplicate data source issue. I'm pretty much at the end of my rope here. What could cause behavior like this?
alduin
Posts: 2
Joined: Thu Apr 10, 2008 5:17 pm

Update

Post by alduin »

Just to rule out a problem with my distro's rrdtool install, I built and installed rrdtool from source and pointed cacti at the new binary. No change.
myfreeke
Cacti User
Posts: 82
Joined: Tue Dec 04, 2007 10:24 pm

Post by myfreeke »

I install cacti 0.8.7b have same problem

[root@Router cacti]# php poller.php
04/11/2008 01:36:15 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '5938', Max Runtime '298', Poller Runs: '1'
04/11/2008 01:36:15 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 5938 seconds have passed since the last poll!
04/11/2008 01:36:15 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/php/bin/php, ARGS: -q /var/InfiNET/htdocs/cacti/cmd.php 0 2]
sh: /usr/local/php/bin/test: No such file or directory
Waiting on 1/1 pollers.
sh: /usr/local/php/bin/rrdtool: No such file or directory
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests