Rdd files are not created by Cacti Web interface

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

Moderators: Developers, Moderators

Post Reply
skareb
Posts: 6
Joined: Mon Jul 04, 2011 10:58 am

Rdd files are not created by Cacti Web interface

Post by skareb »

Hello,

I 'm new Cacti user and have already set up some useful graph. I'm expericing some issues to configure new graphs.
This is my config:
Cacti version: 0.8.7.g
OS Ubuntu Server 7.2
RDDTool 1.4
Pooler: cmd.php

When I create a "Data source" with the standart data Template "Interface - Traffic", I see no errors on the Data Source Debug. For some devices, the Rdd is created and for other not. It seems to be an apache or mysql issue...

I've already googled + checked on the Cacti documentation if there is an easy way to fix it. Furthermore, logs (poller, cacti, snmp) didn't reveal me helpful informations.
I will be happy to receive some good suggestions to help me to investigate.

Thank you in advance !
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Rdd files are not created by Cacti Web interface

Post by gandalf »

Please see 2nd link of my sig as a first step
R.
skareb
Posts: 6
Joined: Mon Jul 04, 2011 10:58 am

Re: Rdd files are not created by Cacti Web interface

Post by skareb »

Thank you for your reply.

1. Cacti considerer the devices as up and I can retrieve snmp data from my devices with the command snmpget.
2. The cmd.php runs every 5 minutes.
3. The Rdd commands are in the poller cache, I tried to rebuild the poller cache without any success.
4. I have set up the poller log as Developer debug level. When I check the the poller log, I can see for each missing rdd:
- /usr/bin/rrdtool update /var/lib/cacti/rra/*****.rdd
- /usr/bin/rrdtool create /var/lib/cacti/rra/*****.rdd
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Rdd files are not created by Cacti Web interface

Post by gandalf »

Fine. Then, please run that "create" command from command line to find out, if this is a valid command. In case of failure, please post the whole command (it's a multi-line command)
R.
skareb
Posts: 6
Joined: Mon Jul 04, 2011 10:58 am

Re: Rdd files are not created by Cacti Web interface

Post by skareb »

I have launched the create commande below with the root account:

Code: Select all

/usr/bin/rrdtool create \
/var/lib/cacti/rra/switch_76.rrd \
--step 300  \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
DS:traffic_in:COUNTER:600:0:1000000000 \
RRA:AVERAGE:0.5:1: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:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Below the output:

Code: Select all

ERROR: you must define at least one Round Robin Archive
The directory /var/lib/cacti/rra/ exists !
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Rdd files are not created by Cacti Web interface

Post by gandalf »

That's a very strange create command. In holds the traffic data sources multiple times! Is this what you expected when creating the data template?
R.
skareb
Posts: 6
Joined: Mon Jul 04, 2011 10:58 am

Re: Rdd files are not created by Cacti Web interface

Post by skareb »

I have reinstalled Cacti from scratch on a Debian, but I still have the same issue...
Nevertheless, the graphs were ok for the 10th first devices I have added in Cacti.

This is not an homemade template, I use the data template "Interface Traffic".
I do not understand why the web interface generate wrong Rdd command...
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests