Problems with Multiple Data Sources in one RRA

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

Moderators: Developers, Moderators

Post Reply
jamiebah
Posts: 15
Joined: Wed Aug 13, 2003 5:32 pm
Location: Litchfield, MN
Contact:

Problems with Multiple Data Sources in one RRA

Post by jamiebah »

I am trying to graph the battery temperature on my APC smartups, so I setup the ds template to have 3 datasources. -17C to 20C is called batt_temp_low, 20C to 26C is called batt_temp_normal, and 26C to 100C is called batt_temp_high. On the graphs, I use purple for the low, green for the normal, and red for the high.

The problem is that when I use the template, nothing gets graphed, as in the numbers on the graph start at 0, the temp should be around 24C. The database gets updated (I am assuming by the date on the file in the rra directory) but no data is displayed. However, if I setup everything manually, it works.

I have updated RRDtool to version to 1.0.41, have Cacti 0.8.2 installed from clean, not upgraded.

Is this a bug, or am I doing something wrong?
jamiebah
Posts: 15
Joined: Wed Aug 13, 2003 5:32 pm
Location: Litchfield, MN
Contact:

Update to my problem

Post by jamiebah »

I did some digging, the data is not being entered into the RRD eventhough cacti says that it is. Doing rrdtool info <database> shows all NaN for entries. Running cmd.php manually shows the same thing as tailing the logfile, it says that its updateing the rrd and it never does. Tried to manually update the RRD (copied and pasted the command from the logfile) and it still says NaN.

Tried to do this using a template, but it just won't work. If I make the DS by hand it will work, but I have several UPSs that I would like to monitor and don't want to type them all in by hand if I don't need to...

I just want to show different colors for different levels of battery temperature, an charge. Seems simple enough... I know that you can do it because I saw it on the school district page once upon a time...
B.T.W, just upgraded to 0.8.3a today and still have the same issue
icepick

hmmm

Post by icepick »

I'm having a simular problem, no one seems to know the reason... http://www.raxnet.net/board/viewtopic.php?t=2314

I've tried just about everything, guess I will just have to stick to a graph per value, meaning 3 x the work load, 3x the amout of graphs.
jamiebah
Posts: 15
Joined: Wed Aug 13, 2003 5:32 pm
Location: Litchfield, MN
Contact:

Yet more information

Post by jamiebah »

It seems that when cacti tries to update the info, it is using the wrong template. For example, if the data falls into the "normal" range of 18-26 degrees Celsius, it still tries to update with the high template.

The high DS is from 27-100 degrees celsius.
I THINK that this is the problem, but don't know enough about RRDtool to know for sure.

Thanks for the heads up icepick
jamiebah
Posts: 15
Joined: Wed Aug 13, 2003 5:32 pm
Location: Litchfield, MN
Contact:

This is what I want to do

Post by jamiebah »

http://www.bigspring.k12.pa.us/cacti/gr ... ource=true

Make it look like this but show temps insted of ping times...
jamiebah
Posts: 15
Joined: Wed Aug 13, 2003 5:32 pm
Location: Litchfield, MN
Contact:

Is there a tutorial

Post by jamiebah »

Rax, is there a tutorial somewhere on how to do this? You were able to do this with the school district,
http://www.bigspring.k12.pa.us/cacti/gr ... &tree_id=6
and others are too. I am sure that its simple, but obviously I have setup something wrong.
jamiebah
Posts: 15
Joined: Wed Aug 13, 2003 5:32 pm
Location: Litchfield, MN
Contact:

Post by jamiebah »

I figured out how to do it, needed to use the limit function in the cdef and use only one data source. Was able to do the temp conversions and all with CDEF, but I sure wish that this was in the FAQ cause there are lots of things that I want to do this with and it would have saved me lots of time... :D
Fred
Cacti User
Posts: 81
Joined: Fri Jan 03, 2003 11:43 am

Post by Fred »

jamiebah wrote:I figured out how to do it, needed to use the limit function in the cdef and use only one data source. Was able to do the temp conversions and all with CDEF, but I sure wish that this was in the FAQ cause there are lots of things that I want to do this with and it would have saved me lots of time... :D
Can I second this? I really have no idea how to make graphs like the 'ICMP latency' ones in cacti, but they're really nice looking, and I'd love to have them. A tutorial on this would be fantastic.
Guest

Post by Guest »

I'd agree with this - a Tutorial on this would be AWESOME. Or perhaps a FAQ section where people can contribute their solutions - this way I hope someone who knows how to do it - can write it up - and others can build upon it (using f.ex. a wiki).
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest