[solved] rrd parameter validation

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
rickmccl
Posts: 16
Joined: Wed Aug 03, 2005 11:29 am

[solved] rrd parameter validation

Post by rickmccl »

Hi, Windows, Cacti 0.8.7d, RRDtool 1.2.15. I just found out why I could not get graphs when adding a new device. RRD's were not being created, and there was no permissions error discovered with Filemon. I turned the cacti log up to debug and it still looked ok.

Code: Select all

05/12/2009 04:50:03 PM - POLLER: Poller[0] CACTI2RRD: c:/cacti/rrdtool.exe update C:\cacti\cacti\rra\external-switch_traffic_in_196.rrd --template traffic_out:traffic_in N:3898224573:4249671171  
05/12/2009 04:50:03 PM - POLLER: Poller[0] CACTI2RRD: c:/cacti/rrdtool.exe create C:/cacti/cacti/rra/external-switch_traffic_in_196.rrd --step 300 DS:traffic_in:COUNTER:600:0: 100000000 DS:traffic_out:COUNTER:600:0: 100000000 RRA:AVERAGE:0.5:1:500 RRA:AVERAGE:0.5:1:51840 RRA:AVERAGE:0.5:24:2160 RRA:AVERAGE:0.5:6:8736 RRA:AVERAGE:0.5:288:797 RRA:MIN:0.5:1:51840 RRA:MIN:0.5:24:2160 RRA:MIN:0.5:6:8736 RRA:MIN:0.5:288:797 RRA:MAX:0.5:1:500 RRA:MAX:0.5:1:51840 RRA:MAX:0.5:24:2160 RRA:MAX:0.5:6:8736 RRA:MAX:0.5:288:797 RRA:LAST:0.5:1:51840 RRA:LAST:0.5:24:2160 RRA:LAST:0.5:6:8736 RRA:LAST:0.5:288:797 
I get data from the device, I try to update the RRD, it doesn't list an error, but it doesn't create the RRD.

I ran the command on the command line, RRDTOOL.EXE etc etc copy/paste from the log file.

Code: Select all

ERROR: failed to parse data source 600:0:
It was then that I saw the space in the parameter.
DS:traffic_out:COUNTER:600:0: 100000000

I checked my data templates and found that "Interface - Traffic" had maximum value set to " 100000000" (note leading space)

I have imported too many templates into this system; I think one of them must have 'adjusted' this value. I removed the space and now two cycles later I have RRD and graph.

So, my suggestion is that perhaps Cacti can sanity check these parameters at some time either on import or before building the RRDTOOL command line.

Thanks for an excellent system, I do recommend it any chance I get.

Rick McClinton
User avatar
rickmccl
Posts: 16
Joined: Wed Aug 03, 2005 11:29 am

Ah, never mind

Post by rickmccl »

I see my issue was fixed already, in the 0.8.7d snmp_string_issue_with_rrdtool_creation.patch

thanks guys
Rick
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest