[solved] Data Source Debug problem

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

Moderators: Developers, Moderators

Post Reply
Bram
Posts: 7
Joined: Wed Oct 17, 2007 6:56 am

[solved] Data Source Debug problem

Post by Bram »

Hi,

I've upgraded from 0.8.7c to 0.8.7e.
Followed procedure, everything went smooth, no cuts in the graphs even.

Compiled the new spine, that one is used, everything ok.

However when trying to add new data sources, the data files don't get created.

Nothing in the logs.

Where can I start looking?

Something which I think is weird for example is this:

Code: Select all

Data Source Debug
/usr/bin/rrdtool create \
/var/www/html/cacti-0.8.7e/rra/blah_traffic_output_6304.rrd \
--step 300  \
DS:traffic_input:COUNTER:600:0:rrd_maximum     1000 \
DS:traffic_output:COUNTER:600:0:rrd_maximum     1000 \
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:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN: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 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
You see the last line is ending with a \ which indicates the next line should be joined to the current line.
However there's no next line.

When I execute this from the command line I get the following:

Code: Select all

[root@cacti ~]# /usr/bin/rrdtool create \
> /var/www/html/cacti-0.8.7e/rra/blah_traffic_output_6304.rrd \
> --step 300  \
> DS:traffic_input:COUNTER:600:0:rrd_maximum     1000 \
> DS:traffic_output:COUNTER:600:0:rrd_maximum     1000 \
> 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:MIN:0.5:1:600 \
> RRA:MIN:0.5:6:700 \
> RRA:MIN:0.5:24:775 \
> RRA:MIN: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 \
> RRA:LAST:0.5:1:600 \
> RRA:LAST:0.5:6:700 \
> RRA:LAST:0.5:24:775 \
> RRA:LAST:0.5:288:797 \
> 
ERROR: min must be less than max in DS definition
Can anyone point me in the right direction?


Thanks,
Bram
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) actually the weirdness is the word "rrd_maximum" in that create statement which isn't valid, IIRC. When cacti queried the device for its snmp interface info, it should've pulled the interface speed and set that in the Data Source. What's in the Maximum Value field for this problem data source?

2) Have you installed all the patches for 0.8.7e?
Bram
Posts: 7
Joined: Wed Oct 17, 2007 6:56 am

Post by Bram »

BSOD2600,
BSOD2600 wrote:1) actually the weirdness is the word "rrd_maximum" in that create statement which isn't valid, IIRC. When cacti queried the device for its snmp interface info, it should've pulled the interface speed and set that in the Data Source. What's in the Maximum Value field for this problem data source?

2) Have you installed all the patches for 0.8.7e?
I've solved it by removing the host that I was trying to get data for and adding it again, probably removing the bad maximum value.

In the past (and one of the reasons why I upgraded to this version) we were having problems discovering interfaces on a device.
It was adding "= " before all interface names and therefor coulnd't poll them properly resulting empty or non-existing data files.


Which patches are you talking about? I've just updated to the latest tar on the site and moved my templates in place.

What else is there?

Doesn't the latest version contain de latest patches? :)

Bram
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Bram wrote:Which patches are you talking about? I've just updated to the latest tar on the site and moved my templates in place.
http://www.cacti.net/download_patches.php
Bram
Posts: 7
Joined: Wed Oct 17, 2007 6:56 am

Post by Bram »

BSOD2600 wrote:
Bram wrote:Which patches are you talking about? I've just updated to the latest tar on the site and moved my templates in place.
http://www.cacti.net/download_patches.php

cool :)

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests