RRD file problem

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

Moderators: Developers, Moderators

Post Reply
Armando
Posts: 2
Joined: Wed Jul 05, 2006 5:41 pm
Location: Mexico City

RRD file problem

Post by Armando »

Hi

I have the following error when I try to create a Graph
RRDTool Command:

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Router Tenancingo - Traffic - Se0.1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/www/html/cacti/rra/router_tenancingo_traffic_in_42.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/router_tenancingo_traffic_in_42.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

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

I saw the instructions in a past post and I follow it. I check the rra permission and the owner is my cacti user and it has the permission ok

I detect some particular think. Whe I run the following command inside the cacti directory

shell>php poller.php
the rrd file of my divices are created and the box of the graphic apears in the graph manager but I don't have any data.

If I set up a new device I get the error of the top.

Some one can help me with this issue , please???

Thank you
t40my
Posts: 1
Joined: Sun Jul 09, 2006 10:03 pm
Location: Indonesia
Contact:

RRD file problem

Post by t40my »

Today, I just find what's problem..
Actually, you should reconfigure connection between php and mysql

Example: dpkg-reconfigure php4-mysql
you should choose YES,in every question. And then,try it again

Thx :wink:
Armando
Posts: 2
Joined: Wed Jul 05, 2006 5:41 pm
Location: Mexico City

I resolve IT!!!

Post by Armando »

Thank you for the comments

I found that my problem was the PHP PATH in the crontab file, I only copy the script of the Manual but I havce another PATH in my computer to the PHP file.

This resolve my problem and now I can see my traffic graphics.

I hope this help someone.

Thank you

Armando Gonzalez
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest