graphing multiple oid's and combinging from several machines

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

Moderators: Developers, Moderators

tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

Maybe I did this differently than most do. I copied the "SNMP - Generic OID Template - Data Template" for each oid. Then I created a graph template that graphs the 3 items. Then I went to "new graphs" selected 1 server, went to "create" drop down box, selected the "graph template" that I just created, and then hit create. I repeated this process for all 10 servers. So now I have 10 graphs graphing 3 data points.
If this is correct, then I dont follow how to go about it the way you are telling me. If I create another graph template, how can I apply that to all 10 servers?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

tomasperez wrote:Maybe I did this differently than most do. I copied the "SNMP - Generic OID Template - Data Template" for each oid. Then I created a graph template that graphs the 3 items. Then I went to "new graphs" selected 1 server, went to "create" drop down box, selected the "graph template" that I just created, and then hit create. I repeated this process for all 10 servers. So now I have 10 graphs graphing 3 data points.
Good, up to now.
If this is correct, then I dont follow how to go about it the way you are telling me. If I create another graph template, how can I apply that to all 10 servers?
You won't. As this is kind of an "Overview Graph", including data from multiple servers, you won't associate this one to a single host.
To create a Graph using the new Graph Overview Template, goto Graph Management and Add. Select the new Graph Template and Create.
Reinhard
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

I dont understand how you are telling cacti to read the rrd's into this template.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The rrd's are linked to each data source. So by giving the data sources, you'll get the DEF statements
Reinhard
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

Ok, steps I did:
1. Graph management ---> add
2. Under graph item templates, selected each oid and under cdef, selected "total all data sources".
3. Did that for each oid I wanted to graph.


Now the question is, how do I graph this template? From every other template I've used, I applied the template to a specific server.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

tomasperez wrote:Ok, steps I did:
1. Graph management ---> add
2. Under graph item templates, selected each oid and under cdef, selected "total all data sources".
3. Did that for each oid I wanted to graph.


Now the question is, how do I graph this template? From every other template I've used, I applied the template to a specific server.
In fact, you've now created a Graph, not a Graph Template. So nothing is left to do, except for placing this Graph on some Graph Tree, if you like
Reinhard
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

Ok, I took your advice, and went to graph management, new, added all the sources and stacked them to produce a nice graph. Now I want to do a "total", however I get segfault after I add it. This is how I added:
Under graph items>>>>add
Host = any
Data Template = any
Data Source = None
Color = black
Graph item type = line 1
Consolidation function = Total all data sources
Value = blank
Gprint type = Normal
Insert hard return = blank


Here is debug info:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Product - Incoming Msgs (Product view)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="# of Messages/5 mins" \
--slope-mode \
DEF:a="/usr/local/www/apache22/data/cacti/rra/Product01_snmp_oid_2197.rrd":snmp_oid:LAST \
DEF:b="/usr/local/www/apache22/data/cacti/rra/Product02_snmp_oid_2236.rrd":snmp_oid:LAST \
DEF:c="/usr/local/www/apache22/data/cacti/rra/Product03_snmp_oid_2233.rrd":snmp_oid:LAST \
DEF:d="/usr/local/www/apache22/data/cacti/rra/Product04_snmp_oid_2230.rrd":snmp_oid:LAST \
DEF:e="/usr/local/www/apache22/data/cacti/rra/Product05_snmp_oid_2227.rrd":snmp_oid:LAST \
DEF:f="/usr/local/www/apache22/data/cacti/rra/Product06_snmp_oid_2224.rrd":snmp_oid:LAST \
DEF:g="/usr/local/www/apache22/data/cacti/rra/Product07_snmp_oid_2221.rrd":snmp_oid:LAST \
DEF:h="/usr/local/www/apache22/data/cacti/rra/Product08_snmp_oid_2218.rrd":snmp_oid:LAST \
DEF:i="/usr/local/www/apache22/data/cacti/rra/Product09_snmp_oid_2215.rrd":snmp_oid:LAST \
DEF:j="/usr/local/www/apache22/data/cacti/rra/Product10_snmp_oid_2212.rrd":snmp_oid:LAST \
DEF:ba="/usr/local/www/apache22/data/cacti/rra/Product11_snmp_oid_2209.rrd":snmp_oid:LAST \
DEF:bb="/usr/local/www/apache22/data/cacti/rra/Product12_snmp_oid_2206.rrd":snmp_oid:LAST \
DEF:bc="/usr/local/www/apache22/data/cacti/rra/Product13_snmp_oid_2203.rrd":snmp_oid:LAST \
DEF:bd="/usr/local/www/apache22/data/cacti/rra/Product14_snmp_oid_2200.rrd":snmp_oid:LAST \
CDEF:cdefa=a,300,* \
CDEF:cdefb=b,300,* \
CDEF:cdefc=c,300,* \
CDEF:cdefd=d,300,* \
CDEF:cdefe=e,300,* \
CDEF:cdeff=f,300,* \
CDEF:cdefg=g,300,* \
CDEF:cdefh=h,300,* \
CDEF:cdefi=i,300,* \
CDEF:cdefj=j,300,* \
CDEF:cdefba=ba,300,* \
CDEF:cdefbb=bb,300,* \
CDEF:cdefbc=bc,300,* \
CDEF:cdefbd=bd,300,* \
CDEF:cdefbe= \
AREA:cdefa#FF897C:"" \
AREA:cdefb#FFF200:"":STACK \
AREA:cdefc#FFC3C0:"":STACK \
AREA:cdefd#FF00FF:"":STACK \
AREA:cdefe#F5F800:"":STACK \
AREA:cdeff#FF5576:"":STACK \
AREA:cdefg#FF0000:"":STACK \
AREA:cdefh#DE0056:"":STACK \
AREA:cdefi#FF5700:"":STACK \
AREA:cdefj#CAF100:"":STACK \
AREA:cdefba:"":STACK \
AREA:cdefbb#8F005C:"":STACK \
AREA:cdefbc#E8CDEF:"":STACK \
AREA:cdefbd#8D00BA:"":STACK \
LINE1:cdefbe#000000:""

RRDTool Says:

Segmentation fault (core dumped)


Any ideas why the "total" is causing seg fault? As soon as i delete that total item, graph is perfect.
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

Anyone have an idea on why this is causing segfault? Should I be doing something differently to get the total?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

tomasperez wrote: CDEF:cdefbe= \
RRDTool Says:

Segmentation fault (core dumped)


Any ideas why the "total" is causing seg fault? As soon as i delete that total item, graph is perfect.
The cdefbe DEF is wrong. Please check your graph items again. BTB, rrdtool shouldn't segfault. Please post this error to the rrdtool mailing list (see: http://www.rrdtool.org)
Reinhard
Last edited by gandalf on Tue Apr 25, 2006 11:35 am, edited 1 time in total.
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

I checked the data sources and your instructions, still a bit confused. I added all the data sources, and that graphs fine. I tried adding "legend" and total all data sources, still get seg fault. For the legend, if I select a data source, it doesnt seg fault anymore, but also doesnt create accurate total data.

In graph management, I select the product view graph, under graph items, I click add, set host as any, set data template as any, data source as none, color is none, graph item = legend, cdef function = total all data sources, gprint type = exact numbers, and then hit create. Then seg fault happens. I have tried setting the data template to the template I used for each host, still no go. Are the steps I'm taking correct?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

tomasperez wrote:I checked the data sources and your instructions, still a bit confused. I added all the data sources, and that graphs fine. I tried adding "legend" and total all data sources, still get seg fault. For the legend, if I select a data source, it doesnt seg fault anymore, but also doesnt create accurate total data.

In graph management, I select the product view graph, under graph items, I click add, set host as any, set data template as any, data source as none, color is none, graph item = legend, cdef function = total all data sources, gprint type = exact numbers, ...
Please post a screenshot of this before createing
Reinhard
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

Ok, here is screenshot before I hit create.
Attachments
Cacti total that causes segfault
Cacti total that causes segfault
cacti-total.JPG (166.63 KiB) Viewed 2183 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

tomasperez wrote: AREA:cdefa#FF897C:"" \
AREA:cdefb#FFF200:"":STACK \
AREA:cdefc#FFC3C0:"":STACK \
AREA:cdefd#FF00FF:"":STACK \
AREA:cdefe#F5F800:"":STACK \
AREA:cdeff#FF5576:"":STACK \
AREA:cdefg#FF0000:"":STACK \
AREA:cdefh#DE0056:"":STACK \
AREA:cdefi#FF5700:"":STACK \
AREA:cdefj#CAF100:"":STACK \
AREA:cdefba:"":STACK \
AREA:cdefbb#8F005C:"":STACK \
AREA:cdefbc#E8CDEF:"":STACK \
AREA:cdefbd#8D00BA:"":STACK \
LINE1:cdefbe#000000:""
I only just noticed, that the above is not correct. The first data source should be an AREA, the following one should be STACKS
Reinhard

PS: Please have a look at http://forums.cacti.net/viewtopic.php?t=5703, this may help
tomasperez
Posts: 37
Joined: Tue Apr 11, 2006 11:10 am

Post by tomasperez »

I'm not sure why it doesnt say area, however it is set to area, and the others are set to stack. For whatever reason, the debug output is not showing it.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So please try re-creating this using the topic linked above (this is a more detailed instruction compared to mine)
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests