Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[HOWTO] Graph displaying average of several other hosts
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
apex333



Joined: 09 Jul 2005
Posts: 9
Location: Chicago

PostPosted: Fri Jul 29, 2005 11:25 am    Post subject: Reply with quote

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



cpu avg.jpeg
 Description:
 Filesize:  141.51 KB
 Viewed:  6629 Time(s)

cpu avg.jpeg


Back to top
jas0420
Cacti User


Joined: 13 Jan 2005
Posts: 91
Location: College Station, TX - USA

PostPosted: Fri Jul 29, 2005 4:59 pm    Post subject: Reply with quote

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).



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
Back to top
steff1977



Joined: 13 Oct 2005
Posts: 13

PostPosted: Thu Oct 13, 2005 10:24 am    Post subject: Reply with quote

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
Back to top
kbartoletta
Cacti User


Joined: 04 Oct 2005
Posts: 97
Location: suwanee, ga

PostPosted: Thu Oct 27, 2005 8:40 pm    Post subject: Reply with quote

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.
Back to top
abadaba
Cacti User


Joined: 23 Nov 2005
Posts: 52

PostPosted: Thu Nov 24, 2005 7:01 pm    Post subject: Reply with quote

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,/
Back to top
abadaba
Cacti User


Joined: 23 Nov 2005
Posts: 52

PostPosted: Wed Nov 30, 2005 10:01 am    Post subject: Reply with quote

anyone?
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Wed Nov 30, 2005 4:54 pm    Post subject: Reply with quote

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
Back to top
surf_joe



Joined: 09 Feb 2006
Posts: 11

PostPosted: Mon Nov 27, 2006 2:06 am    Post subject: a bit more tricky Reply with quote

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:

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 ?
Back to top
nicodobrazil



Joined: 29 Nov 2006
Posts: 5

PostPosted: Tue Dec 19, 2006 11:22 am    Post subject: Reply with quote

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

thanks for your help

-Nico-
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Tue Dec 19, 2006 2:08 pm    Post subject: Reply with quote

nicodobrazil wrote:
...different computer in X-coordinate...
Not possible with rrdtool and so nogo with cacti. rrdtool supports time series data only
Reinhard
Back to top
joec22



Joined: 03 Oct 2005
Posts: 4

PostPosted: Wed Feb 21, 2007 12:00 pm    Post subject: Reply with quote

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.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12604
Location: Muenster, Germany

PostPosted: Thu Feb 22, 2007 3:33 pm    Post subject: Reply with quote

Please have a look at my Aggregate Plugin posted to the "Plugins Announcement" Forums. It may solve your problem
Reinhard
Back to top
fssilva



Joined: 12 Apr 2007
Posts: 2

PostPosted: Mon Apr 16, 2007 6:32 am    Post subject: Solved? Reply with quote

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
Back to top
justinchudgar



Joined: 19 Oct 2006
Posts: 9
Location: Weed, Siskiyou County, CA, USA

PostPosted: Sun Nov 04, 2007 6:21 pm    Post subject: Thank you VERY much. Reply with quote

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.
Back to top
Struz



Joined: 13 Feb 2007
Posts: 1

PostPosted: Wed Aug 20, 2008 8:12 pm    Post subject: Reply with quote

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?



cacti.jpg
 Description:
 Filesize:  92.92 KB
 Viewed:  1246 Time(s)

cacti.jpg


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group