Data Source Debug

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

Moderators: Developers, Moderators

Post Reply
dpoulsen
Posts: 17
Joined: Fri Aug 26, 2005 10:46 am

Data Source Debug

Post by dpoulsen »

Hi,

I wrote a script to grab traffic statistics off of some of our wireless gear and followed the guide here: http://forums.cacti.net/about11288.html

I'm having a problem where only the first item the script returns is getting graphed and I am not quite sure why.

Data Source Debug reveals this:
Data Source Debug

/usr/bin/rrdtool create \
/var/www/cacti-0.8.6h/rra/jcmc_to_8_erie_trango_5830.rrd \
--step 300 \
DS:trango_5830_ethIn:COUNTER:600:0:U \
DS:trango_5830_ethOut:COUNTER:600:0:100 \
DS:trango_5830_rfOut:COUNTER:600:0:100 \
DS:trango_5830_rfIn:COUNTER:600:0:100 \
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 \


What does the 'U' signify versus the '100'? If I run the script from the command line it returns:

EthIn:2008036958 EthOut:473822604 RfIn:476149140 RfOut:1975176576

Poller.php with DEBUG enabled yields:
01/27/2006 05:00:41 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6h/rra/jcmc_to_8_erie_trango_5830.rrd --template trango_5830_ethIn:trango_5830_ethOut:trango_5830_rfIn:trango_5830_rfOut 1138399240:3138381991:533758373:666430048:3904528968
OK u:0.01 s:0.00 r:0.02
OK u:0.01 s:0.00 r:0.02
OK u:0.01 s:0.00 r:0.02


Does any of this mean anything that could point to a solution? What other information could be useful for me to post here?

Thank you for your help.

Dan
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Data Source Debug

Post by gandalf »

dpoulsen wrote:I'm having a problem where only the first item the script returns is getting graphed and I am not quite sure why.
Please send a screenshot of your Data Input Method. Basically, you'll have to define each Output field seperately (just like the rtt in the example you referenced); e.g. ethIn, ethOut, rfOut, rfIn
/usr/bin/rrdtool create \
/var/www/cacti-0.8.6h/rra/jcmc_to_8_erie_trango_5830.rrd \
--step 300 \
DS:trango_5830_ethIn:COUNTER:600:0:U \
DS:trango_5830_ethOut:COUNTER:600:0:100 \
DS:trango_5830_rfOut:COUNTER:600:0:100 \
DS:trango_5830_rfIn:COUNTER:600:0:100 \
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 \

What does the 'U' signify versus the '100'?
Two hints: U denotes Unknown or no maximum boundary defined. This is the default for the [first] ds only. 100 is the default for subsequents ds'. And I bet that's not the maximum value you want to configure for each of them. As my example holds for one output field only, this was not mentioned.
EthIn:2008036958 EthOut:473822604 RfIn:476149140 RfOut:1975176576

Poller.php with DEBUG enabled yields:
01/27/2006 05:00:41 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6h/rra/jcmc_to_8_erie_trango_5830.rrd --template trango_5830_ethIn:trango_5830_ethOut:trango_5830_rfIn:trango_5830_rfOut 1138399240:3138381991:533758373:666430048:3904528968
Ah, I see that you already have defined all Output Fields. But the readings seem to exceed the maximum value boundary mentioned above, do they?
Reinhard
dpoulsen
Posts: 17
Joined: Fri Aug 26, 2005 10:46 am

Post by dpoulsen »

Ahhhhh! The problem was in fact the maximum value boundry. Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests