ERROR: Duplicate DS name: traffic_i

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

Moderators: Developers, Moderators

Post Reply
smogmaster
Posts: 1
Joined: Sun Apr 18, 2004 11:05 am
Location: Austria
Contact:

ERROR: Duplicate DS name: traffic_i

Post by smogmaster »

Hy,

i added an snmp host with snmp interface query, added the interface traffic template and startet the polling script and got this :

snmp: 127.0.0.1:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 1867987517
ERROR: Duplicate DS name: traffic_in
snmp: 127.0.0.1:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 1543354264
ERROR: Duplicate DS name: traffic_in
update /var/www/html/cacti/rra/localhost_traffic_in_37.rrd --template traffic_in:traffic_out N:1867987517:1543354264
ERROR: opening '/var/www/html/cacti/rra/localhost_traffic_in_37.rrd': No such file or directory
time: 1

is this a snmp problem or a configure mistake ??

thanxs a lot for helping
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

This looks to be a configuration issue. Click on "Data Sources" and select a "Traffic" data source. In the "Supplemental Data Template Data" box, there should be two headings that start with "Data Source Item Fields". Can you tell me what it says inside of brackets for both of these?

-Ian
imthemp3king
Posts: 27
Joined: Fri Jul 30, 2004 2:38 pm

Post by imthemp3king »

I am experiencing this issue as well and I check where you specified and this is what I have:

But when running php in a terminal, I get ERROR: Duplicate DS Name: traffic_out, twice. It then proceeds to give me an error stating that it can't open the .rrd file because there is no such file
Attachments
untitled2.png
untitled2.png (8.49 KiB) Viewed 3365 times
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Would you happen to be using the Debian package of Cacti?

-Ian
imthemp3king
Posts: 27
Joined: Fri Jul 30, 2004 2:38 pm

Post by imthemp3king »

I don't think I am. I believe I dl'd the cacti RPM from your site. Should I go find one specific to RH9?

Update 8:43AM, I dbl checked and the RPM came from a RPM repository(DAG RPM Repository)

http://dag.wieers.com/packages/cacti/
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

It shouldn't matter where you are getting your RPM. I asked about Debian specifically because a large number of Debian users seem to be experiencing this issue. If you take a look at bug#231 here:

http://bugs.cacti.net/bug_view_page.php?bug_id=0000231

This user is experiencing this same problem. In their case it looked like a certain configuration mistake was causing the problem. However I verified their steps (albeit incorrect) and it did not cause the said issue for me (only an extra broken graph).

Did you following a similar set of steps to create your traffic graph as the user that reported this bug? If so, perhaps we can find a pattern here...

Thanks for the help.

-Ian
imthemp3king
Posts: 27
Joined: Fri Jul 30, 2004 2:38 pm

Post by imthemp3king »

It appears as though there may have been a bug with the RPM. I am using Redhat 9 and used the cacti RPM from the DAG@Linux Repository. I used RPM to remove the package and dropped the database from MySQL. I then extracted the .tar from your site to the /var/www directory and renamed it cacti. I created a system user for cacti. I then followed the instructions for importing the default database and creating the mysql cacti user. Deleted the default localhost device and recreated it using SNMP and viola, I had my traffic statistics. Thank you very much for the reply and I hope I was able to assist in helping you resolve this issue
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest