No information for my graph

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

Moderators: Developers, Moderators

Post Reply
Sven
Posts: 6
Joined: Fri Sep 27, 2002 12:47 am
Location: Paderborn / Germany
Contact:

No information for my graph

Post by Sven »

Hi all,

first of all: congratulations for this software ! really good.

But now my problem. I think it is an small parameter but which one :oops: ?

I use the cacti version 0.6.8a and ucd-snmp-4.2.5 with RedHat 7.3. I wrote an small Perl script. This script gives me the temperature from an RMS System. In my log i have the information: "AM - CMD: /usr/local/rrdtool-1.0.39/bin/rrdtool update /usr/local/apache/htdocs/cacti/rra/rmstemperatur.rrd --template rmstemperatur N:29". Ok: It looks very good and it works.

Then i created an standard "Data Source" with this information:
/usr/local/rrdtool-1.0.39/bin/rrdtool create \
/usr/local/apache/htdocs/cacti/rra/rmstemperatur.rrd \
--step 300 \
DS:rmstemperatur:GAUGE:600:0:50 \
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 \

after this i created the graph. i get the graph but the data line is always 0 ! In the Graph Item i use the new Data Source !

What i don't understand is: for what is the "base value" ? I have for the temperature only small data. In the "Data Source" i use the type "GAUGE". I think, this is ok. And: WHY I HAVE ONLY A 0 LINE ?

Ok guys. We are an ISP and i want to use this software but i need this temperature information. Thanks for any Help, Sven
Microsoft is to software what McDonalds is to gourmet cooking !
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

The base value just affects how rrdtool scales/labels the data. It should be fine left at '1000' for this purpose.

About the missing data. You are obviously getting information back from your script going by the log entry you pasted here. You may want to check that the user 'cmd.php' runs as has write access to the 'rra/' directory and all of the files inside it.

If you are getting a blank graph with no data, the rrd file must have initially generated ok. If nothing else, I recommend running the following command as the user 'cmd.php' runs as:

Code: Select all

/usr/local/rrdtool-1.0.39/bin/rrdtool update /usr/local/apache/htdocs/cacti/rra/rmstemperatur.rrd --template rmstemperatur N:29
If the command suceeds, you will see no output. Otherwise, you will see an error.

-Ian
Sven
Posts: 6
Joined: Fri Sep 27, 2002 12:47 am
Location: Paderborn / Germany
Contact:

Post by Sven »

Ok, thanks for the help.

I found the Problem: the first time i created the data source i used "counter". i changed it to "gauge", but i saw nothing. after "../bin/rrdtool info rmstemperatur.rrd" i saw that the file was not changed :evil: ! After an rm of that file and 5 minutes later it worked :-? !

Sven
Microsoft is to software what McDonalds is to gourmet cooking !
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Awesome. Glad you got it working :D

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests