graphing multiple oid's and combinging from several machines
Moderators: Developers, Moderators
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
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?
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?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Good, up to now.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.
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.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?
To create a Graph using the new Graph Overview Template, goto Graph Management and Add. Select the new Graph Template and Create.
Reinhard
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
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.
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.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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 liketomasperez 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.
Reinhard
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
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.
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.
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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)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.
Reinhard
Last edited by gandalf on Tue Apr 25, 2006 11:35 am, edited 1 time in total.
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
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?
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?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please post a screenshot of this before createingtomasperez 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, ...
Reinhard
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
I only just noticed, that the above is not correct. The first data source should be an AREA, the following one should be STACKStomasperez 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:""
Reinhard
PS: Please have a look at http://forums.cacti.net/viewtopic.php?t=5703, this may help
-
- Posts: 37
- Joined: Tue Apr 11, 2006 11:10 am
Who is online
Users browsing this forum: No registered users and 2 guests