.rrd files are not created for a new graph template

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

Moderators: Developers, Moderators

Post Reply
berbondac
Posts: 10
Joined: Thu Feb 25, 2010 8:21 am

.rrd files are not created for a new graph template

Post by berbondac »

Hello,

I am sort-of new to cacti, meaning i have inherited 2 cacti servers.
I have encountered a problem with both servers when i create a graph template and try to show a graph with it.
On server 1 i have encountered this problem from the start, every graph i have tried to generate was just not showing.
On server 2 i have successfully created several graph templates and generated the graphs with it, but after a while i couldn't anymore. Any graph i generate with an old template is ok, but any other graph i use with a new template does not work anymore.

The version i have on both servers is: Version 0.8.7d, and the linux distribution is CentOS release 5.2 (Final)

The troubleshooting process went like this:
When i ran debug mode for the graph that does not work i get:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title=" Cisco 6509 Toronto - Traffic - Gi8/1 " \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/cisco_6509_toronto_traffic_in_420.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/cisco_6509_toronto_traffic_in_420.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s" \
COMMENT:"Maximum\:" \
COMMENT:" \n" \
HRULE:0#FF0000FF:"95th Percentile" \
COMMENT:"(0 mbit in+out)"
RRDTool Says:

ERROR: opening '/var/www/html/cacti/rra/cisco_6509_toronto_traffic_in_420.rrd': No such file or directory


I have looked into System Utilities - > View Poller Cache to see if the rrd file is listed there and it is. tried doing a Rebuild Poller Cache just in case, but still same.

(in the poller cash i have:
Cisco 6509 Toronto - Traffic - Gi8/1 SNMP Version: 2, Community: xxx, OID: .1.3.6.1.2.1.31.1.1.1.6.101
RRD: /var/www/html/cacti/rra/cisco_6509_toronto_traffic_in_420.rrd
Cisco 6509 Toronto - Traffic - Gi8/1 SNMP Version: 2, Community: xxx, OID: .1.3.6.1.2.1.31.1.1.1.6.101
RRD: /var/www/html/cacti/rra/cisco_6509_toronto_traffic_in_420.rrd
)

Looked into Technical Support to see if there is anything out of the ordinary... nothing unusual there
Ran debug mode for the graphs data source:
Data Source Debug

/usr/bin/rrdtool create \
/var/www/html/cacti/rra/cisco_6509_toronto_traffic_in_420.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0: 1000000000 \
DS:traffic_out:COUNTER:600:0: 1000000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:1:2500 \
RRA:AVERAGE:0.5:1:11520 \
RRA:AVERAGE:0.5:1:115200 \

When i ran the commands manually i get the following error:
[root@monitor-to ~]# /usr/bin/rrdtool create \
> /var/www/html/cacti/rra/cisco_6509_toronto_traffic_in_420.rrd \
> --step 300 \
> DS:traffic_in:COUNTER:600:0: 1000000000 \
> DS:traffic_out:COUNTER:600:0: 1000000000 \
> RRA:AVERAGE:0.5:1:600 \
> RRA:AVERAGE:0.5:1:2500 \
> RRA:AVERAGE:0.5:1:11520 \
> RRA:AVERAGE:0.5:1:115200 \
>
ERROR: failed to parse data source 600:0:

The line in crontab for it is:
*/5 * * * * php -q /var/www/html/cacti/poller.php > /dev/null 2>&1

I am just stuck right now on this...
Please help me with this issue.

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

Post by gandalf »

There's a whitespace in the DS parameter that breaks the rrdtool command. This has already been fixed. A workaround would be not to us |query_ifSpeed| as the upper rrd limit but a fxed value or "0" (no limit)
R.
berbondac
Posts: 10
Joined: Thu Feb 25, 2010 8:21 am

Post by berbondac »

Hello,

Thank you for your help. That was the problem and after some adjustments the issue is no more.

(This is for the ones that encounter the same problem and are at the same knowledge level as i am)

I changed the data template i use for that graph from Data Templates.
For both traffic_in and traffic_out i checked the Maximum Value and then i could modify the value in Data Sources, or another way i used was to just delete the value from the Maximum Value in Data Templates (traffic_in and traffic_out).... (This is for the ones that encounter the same problem and are at the same knowledge level as i am)

Thank you once again for your help
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests