[HOWTO] Graph displaying average of several other hosts

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

apex333
Posts: 9
Joined: Sat Jul 09, 2005 7:46 pm
Location: Chicago

Post by apex333 »

I think I have an issue with the template...
Apparently, once I check my hosts in graph management, and save the graph, it plots and displays the graph OK. I selected, Web1, 2, 3, 4, 5, 6, 7, 8.
However, if I go back to edit my data sources for each host, they end up duplicated, out of sequence, etc. (see attached) Web1, 1, 3, 4, 5, 1, 7, 8.

could this be a bug or is it template mis-configuration? Although I double checked my configuration, crosslinking, etc. and it looks legitimate.

Thanks
Richard
Attachments
cpu avg.jpeg
cpu avg.jpeg (141.51 KiB) Viewed 35300 times
Signed;
jas0420
Cacti User
Posts: 91
Joined: Thu Jan 13, 2005 3:58 pm
Location: College Station, TX - USA

Post by jas0420 »

Hey Richard, I've been having something similar happen. Maybe I gave you some bad advice in there somewhere...... If so, I'm afraid I don't know where though because I've been unable to correct it.

Here's what's been happening with me... I will go in and create a new graph using a template that I made. I will notice that some of them have identical "traffic_in" and "traffic_out" rates. I go in and look at the graph details and will find both of the data sources set to "traffic_out". I will change the top one to "traffic_in" like it should be, save the graph, immediately go right back into the same graph details and find both of them now set to "traffic_in"! (see blue arrows below) Driving me CRAZY!!!!!!! But........ After I do that, my "traffic_in" and "traffic_out" do start reporting different rates down in the legend like they should be (see red arrows below).

Image

Occasionally, if I then go back in and change the one that should be "traffic_out" to "traffic_out", I save it, go right back into the details, and it has changed both of them to "traffic_out". If it doesn't do that, it usually leaves them both at "traffic_in". But as mentioned, as far as I can tell the numbers it is actually graphing and GPRINTing are accurate. I pulled my hair out on it for a few days and finally threw in the towel.

Maybe someone can tell us where I went wrong and proceeded to steer you wrong....

Jason
steff1977
Posts: 13
Joined: Thu Oct 13, 2005 7:34 am

Post by steff1977 »

I just get an red X

And debug mod says

ERROR: invalid rpn expression in: a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,8,/

Any ideas. look the the guide twice and cant seam to find anything i did wrong
kbartoletta
Cacti User
Posts: 146
Joined: Tue Oct 04, 2005 4:20 pm
Location: suwanee, ga
Contact:

Post by kbartoletta »

I am trying to following these same general instructions to create 2 graphs for the three different interfaces that are leaving our facility. I want 1 graphs to be a combined Outbound traffic graph and the other to be combined Inbound traffic graph. These three interfaces are all on separate deviced. I have everything set up as outlined above but I get getting the following message ...

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF

when view the graph in graph management. This has something to do with the CF type being set to LAST. All my other graphs are set to Average and if I set this one to Average then it shows a graph but does not show the numbers that I am looking for.

How do I create a datasouce with this CF type and what exactly is meant by the following CF types - AVERAGE, MIN, MAX, LAST

thanks in advance.
abadaba
Cacti User
Posts: 52
Joined: Wed Nov 23, 2005 10:43 pm

Post by abadaba »

This is all i get...And ive followed the directions too the T! Twice 4 times ive ent over the instructions..And ive did it correctly... = \

ERROR: invalid rpn expression in: a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,8,/
abadaba
Cacti User
Posts: 52
Joined: Wed Nov 23, 2005 10:43 pm

Post by abadaba »

anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

abadaba wrote:This is all i get...And ive followed the directions too the T! Twice 4 times ive ent over the instructions..And ive did it correctly... = \

ERROR: invalid rpn expression in: a,b,+,c,+,d,+,e,+,f,+,g,+,h,+,8,/
Please post the whole rrdtool graph statement. Goto the Graph and click the wrench next to it to get the whole
Reinhard
surf_joe
Posts: 11
Joined: Thu Feb 09, 2006 8:42 am
Contact:

a bit more tricky

Post by surf_joe »

I am summing Nx16 of machines (16,32,64and now I need 128).
I am using the CDEF to calculate the sum and ignor the 0 (in case the machine is dead)

Code: Select all

cdef=TIME,1136070000,GT,a,a,UN,0,a,IF,IF,b,UN,0,b,IF,+,c,UN,0,c,IF,+,d,UN,0,d,IF,+,e,UN,0,e,IF,+ .... (etc')
I want to make it as simple as using the ALL_DATA_SOURCES premade CDEF that is able to automaticaly calcualte how much DS you have in your graph, because it is simpaly getting to be too long to create such aCDEF and to handle it.

Any Ideas ?
nicodobrazil
Posts: 5
Joined: Wed Nov 29, 2006 5:41 am

Post by nicodobrazil »

Hi

I don't know if it's possible under cacti but i would like to graph several host on the same graph but in not in function of the time. In fact I want my different computer in X-coordinate and the uptime in Y-coordinate.

i can easily have the uptime but I don't manage to represent it as I want.
if anybody has idea, you're welcome :wink:

thanks for your help

-Nico-
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

nicodobrazil wrote:...different computer in X-coordinate...
Not possible with rrdtool and so nogo with cacti. rrdtool supports time series data only
Reinhard
joec22
Posts: 5
Joined: Mon Oct 03, 2005 12:15 pm

Post by joec22 »

Thanks for these great instructions. I tried to adapt these to taking an aggregate utilization of inbound and outbound b/sec for different servers. Basically I'm interested in the strain on the switch they are connected to. Your instructions talk about using "LAST" for the CF Type. But when I do that, I get the error that has been posted several times here: "the RRD does not contain an RRA matching the chosen CF" When I select AVERAGE instead for the CF Type, rrdtool works.

My question is do you think I'm seeing appropriate data with the AVERAGE CF, and also how do you utilize gprint for current, average, and max if rrdtool doesn't like the "LAST" CF Type?

Thanks.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please have a look at my Aggregate Plugin posted to the "Plugins Announcement" Forums. It may solve your problem
Reinhard
fssilva
Posts: 2
Joined: Thu Apr 12, 2007 3:30 pm

Solved?

Post by fssilva »

Hi alvaro, did you solved it? im with the same problem! Could you help me?

Regards,
Fabio
alvaro wrote:Hello All,

I have tried, but RRD returns this:

"ERROR: RPN stack underflow"

Someone can help me ?

Thanks,

Alvaro
justinchudgar
Posts: 9
Joined: Thu Oct 19, 2006 7:59 pm
Location: Weed, Siskiyou County, CA, USA
Contact:

Thank you VERY much.

Post by justinchudgar »

jas0420 wrote:I'll bite since nobody has answered you yet...

To your first question, yes this is possible. Just 44 simple steps. ;)

...

Hope this helped,
Jason
This was one of the most useful posts I have come across in quite a while. Your instructions are clear, accurate and extendible to other needs than the exact topic you wrote about. I'm very grateful and impressed.
Struz
Posts: 3
Joined: Tue Feb 13, 2007 10:52 pm

Post by Struz »

Apologies for bumping an old post, I've ran through the detailed instructions and when I get to the stage of creating the graph (number 44) I get no selection of data sources on my graph items and an RRDTool error, see attached image for details.

Any ideas?
Attachments
cacti.jpg
cacti.jpg (92.92 KiB) Viewed 29922 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests