Template contains more DS definitions than RRD

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

Moderators: Developers, Moderators

Post Reply
jmroth
Cacti User
Posts: 60
Joined: Sun Jan 20, 2002 7:00 pm

Post by jmroth »

What does that mean?
The problem is that my graphs are staying blank.

rrdtool Data Source Configuration
/usr/bin/sudo mrtg-bw-ip 212.24.195.16
rrdtool update iip_bw_16.rrd --template iip_bw_16:iip_bw_16 N:149763197:872129433

Best regards
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Two things don't look right here:

rrdtool update iip_bw_16.rrd --template iip_bw_16:iip_bw_16 N:149763197:872129433

By looking at this I am assuming that your script is outputting two values into the .rrd file. If not, check your 'Update RRA' checkbox under 'Data Input'.

The other problem is that both of those outputs have the same name. You must give a unique name for each output (per script). You may also have to delete the .rrd files for each data source making use of this script if you make this change.

-Ian
jmroth
Cacti User
Posts: 60
Joined: Sun Jan 20, 2002 7:00 pm

Post by jmroth »

It does indeed output 2 values.
I believe you mean the value just after --template is wrong. But how do I change it!?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Go into 'Data Input', and select the script that is having problems.

Make sure each field defined under 'Current Data Input Source Fields' has a unique 'Data Name'.

That should do the trick.

-Ian
jmroth
Cacti User
Posts: 60
Joined: Sun Jan 20, 2002 7:00 pm

Post by jmroth »

Hmm.. but it is
I've uploaded a screenshot:
http://people.iip.lu/jmroth/cacti1.jpg
Any idea?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Just trying to track down the possible cause here... Go to 'Data Sources' and click on one of the sub-data sources using this script. Check the 'Output Field' drop down box, do all of the values look correct there too? I mean, do they correspond with the output values that you defined for that script?

-Ian
jmroth
Cacti User
Posts: 60
Joined: Sun Jan 20, 2002 7:00 pm

Post by jmroth »

Never mind,
I just recreated the affected data sources and updated the corresponding graphs and now it's working just fine.
Thanks again for all the valuable support
jmr
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests