Cacti is a very good flow monitoring software, using rrdtool mapping, can accurately and systematically display the flow chart. There is a need to summarize the inbound and outbound traffic for all servers on the line and export the updated data every 5 minutes.
First, cacti precision setting
1, modify the RRDtool storage size
Console-management->data Sources->rras
Modify template parameters, such as hourly (1 minute average)
Consolidation functions set to: Max, Min, average, and last
X-files factor modified to: 0.5
Steps set to: 1 ( draw once every 1 minutes )
Rows is set to: (The number of data records saved in the TimeSpan period is minutes)
TimeSpan set to: 3600 ( time span )
The recommended template parameters are as follows:
Hourly (1minute Average |
Daily (5minute Average |
Weekly (5minute Average |
Monly (5minute Average |
Yearly (1hour Average |
1 |
5 |
5 |
5 |
60 |
60 |
288 |
2016 |
8928 |
8760 |
3600 |
86400 |
604800 |
2678400 |
33053184 |
2. Modify the Data index
Console-management->templates->data Templates
(1) Add the 5 rrd templates just created in associated RRA ' s
(2. Set Step to 60 (draw once every 60 seconds)
(3, set the heartbeat to 120 (120 is the time-out)
3. Modify Crontab Task
*/5 * * * */usr/bin/php/var/www/cacti/poller.php >/dev/null 2>&1
Revision changed to
*/1 * * * */usr/bin/php/var/www/cacti/poller.php >/dev/null 2>&1
4, rows default storage data Maximum value is 10000, to store more than 10000 rows of data, you need to modify the parameters in the lib/rrd.php file MaxRows
Refer to the following:
/* Basic Export options */
$xport _opts =
"--start= $xport _start". Rrd_nl.
"--end= $xport _end". Rrd_nl.
"--maxrows=100000". RRD_NL;
$xport _defs = "";
Second, the use of plug-in aggregate combined traffic summary
can also be manually added, reference blog: http://lihuipeng.blog.51cto.com/3064864/638895, but I do it is problematic, inbound and outbound data, no time for fine-tuning.
1, install the plug-in
View official documents, Http://docs.cacti.net/plugin:aggregate, download and unzip to plugin, then on the page Console-configuration-->plugin Management can be installed.
2. How to use
console-management->graph Management, select the monitoring host you want to add to the rollup
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/29/wkiol1aksmkikgwvaabkh4vp90y507.png "height=" 244 "/> 650" this.width= 650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0 px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2b/wkiom1akskcse81kaaba0kaja7i984.png "height="/> 650) this.width= 650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0 px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/29/wkiol1aksmxt7l5waaake92vkhy141.png "height=" 244 "/>,continue can be seen. 650) this.width=650; "Title=" IMage "Style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px; padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m01/79/2b/wkiom1akskly2edfaabe_otxqde148.png "height="/> 650) this.width=650; "Title=" image " Style= "border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0 px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/79/ 29/wkiol1aksmezoxk9aabks1yun7g331.png "height="/> 650) this.width=650; "title=" image "style=" border-top : 0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px; border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/79/29/ Wkiol1aksmibptkbaabk6hiyhno705.png "height="/>
Note: Logs can be monitored in real time during operation
Cacti Configuring traffic summarization