Duplicated Data Sources in Cacti 0.8.6f

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

Moderators: Developers, Moderators

Post Reply
wonka
Posts: 4
Joined: Thu Jul 28, 2005 1:53 pm

Duplicated Data Sources in Cacti 0.8.6f

Post by wonka »

Hi everyone,

Here´s the scenario:

Fedora Core 3
PHP 4.3.9
cacti 0.8.6f

After creating a new graph I got the poller.php error

07/28/2005 01:31:52 PM - POLLER: Poller[0] CACTI2RRD: /bin/rrdtool create /var/www/html/admin/cacti/rra/localhost_bytes_22.rrd --step 300 DS:bytes:ABSOLUTE:600:0:U DS:bytes:ABSOLUTE:600:0:U 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
ERROR: Duplicate DS name: bytes

07/28/2005 01:31:52 PM - POLLER: Poller[0] CACTI2RRD: /bin/rrdtool update /var/www/html/admin/cacti/rra/localhost_bytes_22.rrd --template bytes N:102266
ERROR: opening '/var/www/html/admin/cacti/rra/localhost_bytes_22.rrd': No such file or directory

:-? Ok. After searching a while, found a suggestion that this could be caused by a duplicated entry when creating the rrd file. So tried manually creating the rrd file, removing the duplicated DS:bytes:ABSOLUTE:

/bin/rrdtool create /var/www/html/admin/cacti/rra/localhost_bytes_22.rrd --step 300 DS:bytes:ABSOLUTE:600:0:U 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

And after that, poller.php returned no errors and the graph was created.

QUESTIONS:

1. Why this duplicated entry appeared? Is this a bug still unsolved?
2. Is there a way to resolve this without manually creating the rrd file each time?
3. In Graph Template section I see a duplicated Data Source on the Graph item fields. How can I remove this duplicated entries? Why I get duplicated entries?

Thanks for any comments
wonka
Posts: 4
Joined: Thu Jul 28, 2005 1:53 pm

Update

Post by wonka »

Update:

After checking a while I found that the Custom Data area in the Data template I´m using, had two tabs, like this:

| 1 bytes X | 2 bytes X |

I deleted one clicking on the X and now it seems to be working fine. But still the question remains, now with the form:

"Why did the custom data duplicated if I didn´t duplicate it?".

Thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's a validation issue that was supposed to be fixed in 0.8.6f. Thanks for the note.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests