System environment
Monitoring host: Centos5.5 (32bit) nginx platform cacti0.87g net-snmp5.3.2 192.168.93.135
Monitored machine: Centos5.5 (32bit) net-snmp5.3.2 192.168.93.134
Installation reference for cacti:
Centos5.5 Complete Installation Cacti+spine
CentOS Quick Install cacti
Here is my two machine network card traffic diagram merging operation process, there is the wrong place to ask the prawn to point out:
First, create a new cdef (that is, a new calculation formula), mainly used to calculate the two machines flow graph combined data:
1, click "Management"--"Graph Management"--"cdefs" column
2. Click "Add" on the right side of "Cdef's" bar in the right window to add a new Cdef entry named: Turn all Data to Bits, the name can be as you like
3, then add three item, the function is to put the statistics out of the data 8, and then display:
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/143717740.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/143749904.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/143810178.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
Completed by:
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/143516439.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
Second, the combined flow chart:
1, create a blank diagram: Open "Management"--"Graph Management" column, click on the right "add" appears below the diagram, without selecting the template and host, directly create
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/144522619.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
Title write the name, the name will be displayed above the data graph,
Vertical Label writes an alias name that appears on the left side of the data graph
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/144643910.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
......
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/144749363.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
After the creation is complete, such as:
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/144945984.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
2. Add the network card traffic of the two machines into the diagram:
Click "Add" if you want to be aware of:
Graph item Type This option, first add to first area
cdef function This option, this is not the application we just created the algorithm
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/145439555.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
Then add the second machine: here to pay attention or just two places, the second time to add Graph item type to choose the stack, meaning is superimposed up
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/145707251.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
Why is there nothing in the picture when it's done? Because the color we chose when we added it was white, so we didn't see anything.
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/145852142.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
3. Aggregated traffic
Click "Add" again to add the summary traffic graph, this time we want to choose a color we like,cdef function There will also choose the algorithm we created before, such as:
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/150228853.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
After completion such as:
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/150456654.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
Now see the graphics, hehe ~ ~ ~
4, add the statistics below the graph:
Continue adding, Add Statistics graph item type is all application Gprint,cdef is the new algorithm we created
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/150936601.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/151104302.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
Insert hard Return means "line break", and if there are any statistics below, it will be displayed in the second row.
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/151130415.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
After completion such as:
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/151333271.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
So a simple flow merge diagram is done, and we can add this graph to the tree:
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/152558543.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
Then we can easily see the diagram we just added in the tree in graphs:
650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201108/152159289.jpg "width=" 650 "style=" Padding:0px;margin:0px;vertical-align:top;border:none; "/>
This article is from the "Nmshuishui blog" blog, make sure to keep this source http://nmshuishui.blog.51cto.com/1850554/1596047
Cacti Combined flow chart