[SOLVED] rrdtool not creating new .rrd files

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

Moderators: Developers, Moderators

Post Reply
sgtrock
Posts: 9
Joined: Fri Feb 08, 2008 5:21 pm

[SOLVED] rrdtool not creating new .rrd files

Post by sgtrock »

The system is a current Gentoo Linux box. I'm using Apache 2 for my Webserver. Permissions on the rra and log subirectories are correct, as several graphs are updating correctly.

I'm seeing this issue for a several different graphs that I've experimented with. These are standard Cacti templates. A typical example is what I see with "ucd/net - CPU Usage." Two of the three .rrd files are getting created; nice and user. The system .rrd is not.

I've manually run the Data Source Debug output from all three. Two work, the third does not. The .rrd file is NOT created. This is true whether I do it as root or the cactiuser (apache in my case). The really frustrating part is that there is no error message generated by rrdtool.

The weird part is that I can't even create the file by dropping to a system console and typing 'touch rra/filename'. The same thing happens there. There was no error message generated, so I expected to see an empty file. Nope, nada. Again, this was the result whether I ran the command as root or as cactiuser. (This does work for the variables that rrdtool can create files for, though)

No error messages that look relevant in the Apache error log, either.

Does anyone have any idea what I should be looking for? Any further information that you might want?

Output from Data Source Debug for System:
/usr/bin/rrdtool create \
/var/www/localhost/htdocs/cacti/rra/llama_cpu_system_39.rrd \
--step 300 \
DS:cpu_system:COUNTER:600:0:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
----

I don't know why, but things started magically working after I re-ran the debug output as apache. I'll take it!
jerppu
Posts: 1
Joined: Mon Feb 11, 2008 6:58 am

Post by jerppu »

Could you describe what you did and what was the actual problem/solution.

My Cacti installation cant create rrd files under rra directory.
RRDTool Command:

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="at-xxxx_xxxx_xxx_xxx - Active Calls" \
--base=1000 \
--height=140 \
--width=555 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Calls" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/opt/tools/www/cacti/rra/at-xxxx_xxxx_xxx_xxx_72.rrd":Calls:MAX \
AREA:a#96E78A:"Active Users" \
LINE1:a#000000:"\n"

RRDTool Says:

ERROR: opening '/opt/tools/www/cacti/rra/at-xxxx_xxxx_xxx_xxx_72.rrd': No such file or directory
archon
Posts: 8
Joined: Tue Feb 12, 2008 4:20 pm

Post by archon »

I have the same problem. Intresting is the fact that when i type Cacti data source debug into linux console, RRD file is created and graph is working.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

In most cases, this is related to a failing "Downed Host Detection". Cacti always checks the target host before creating an rrd file
Reinhard
archon
Posts: 8
Joined: Tue Feb 12, 2008 4:20 pm

Post by archon »

Fixed
I set "Downed Device Detection" to "SNMP" and now it's OK (it was set to "Ping and SNMP")
Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest