| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| docs:guide-user:services:statistical.data.overview [2018/03/03 20:30] – ↷ Page moved from docs:user-guide:services:statistical.data.overview to docs:guide-user:services:statistical.data.overview bobafetthotmail | docs:guide-user:perf_and_log:statistical.data.overview [2018/03/04 07:46] – ↷ Links adapted because of a move operation bobafetthotmail |
|---|
| ====== Statistical Data Overview ====== | ====== Statistical Data Overview ====== |
| The easy-way: simply install ''luci-app-statistics'' and configure: [[docs:user-guide:luci:luci_app_statistics|howto]].\\ | The easy-way: simply install ''luci-app-statistics'' and configure: [[docs:guide-user:luci:luci_app_statistics|howto]].\\ |
| However, if you are bored, knock yourself out: dig deeper - instructions are below. | However, if you are bored, knock yourself out: dig deeper - instructions are below. |
| |
| Executing some simple commands like ''iptables -nL -v -x -t filter'', ''tc -s qdisc show dev pppoe-dsl'' or ''tc filter show dev pppoe-dsl'' will already output statistical data. Simple. But there are tools which collect such (and much more) data and [[wp>Parsing|parse]] it for storage or for other programs which draw pictures from the parsed data: | Executing some simple commands like ''iptables -nL -v -x -t filter'', ''tc -s qdisc show dev pppoe-dsl'' or ''tc filter show dev pppoe-dsl'' will already output statistical data. Simple. But there are tools which collect such (and much more) data and [[wp>Parsing|parse]] it for storage or for other programs which draw pictures from the parsed data: |
| |
| * [[docs:user-guide:services:statistic.collectd]] is a daemon which monitors various system info through plugins and optionally outputs gathered data into *.rrd files (rrd is only one of several options, it can send over network or export *.csv files as well) | * [[docs:guide-user:perf_and_log:statistic.collectd]] is a daemon which monitors various system info through plugins and optionally outputs gathered data into *.rrd files (rrd is only one of several options, it can send over network or export *.csv files as well) |
| * [[docs:user-guide:services:statistic.rrdcollect]] is a very simple data collector daemon which lets you define rules and patterns to extract numerical data from commands (like an iptables listing) or files (like /sys or /proc) | * [[docs:guide-user:perf_and_log:statistic.rrdcollect]] is a very simple data collector daemon which lets you define rules and patterns to extract numerical data from commands (like an iptables listing) or files (like /sys or /proc) |
| * [[docs:user-guide:services:statistic.custom]] custom cronjobs which gather data and parse it and then call ''rrdupdate'' manually on existing *.rrd files | * [[docs:guide-user:perf_and_log:statistic.custom]] custom cronjobs which gather data and parse it and then call ''rrdupdate'' manually on existing *.rrd files |
| |
| * [[docs:user-guide:services:network_monitoring:bwmon]] FIXME milk this article for the related content, leave stuff for testing current bandwidth there, move the rest | * [[docs:guide-user:services:network_monitoring:bwmon]] FIXME milk this article for the related content, leave stuff for testing current bandwidth there, move the rest |
| |
| |
| ===== Generate charts from data ===== | ===== Generate charts from data ===== |
| Now from this statistical data we could make some tools create pretty pictures: | Now from this statistical data we could make some tools create pretty pictures: |
| * [[docs:user-guide:services:statistic.rrdtool]] //[[http://oss.oetiker.ch/rrdtool/]]// provides the means to create, update, dump, examine and render *.rrd files | * [[docs:guide-user:perf_and_log:statistic.rrdtool]] //[[http://oss.oetiker.ch/rrdtool/]]// provides the means to create, update, dump, examine and render *.rrd files |
| * [[doc:howto:charts.mrtg]] //[[http://oss.oetiker.ch/mrtg/]]// is written in Perl, use rrdTool, which is written in C | * [[doc:howto:charts.mrtg]] //[[http://oss.oetiker.ch/mrtg/]]// is written in Perl, use rrdTool, which is written in C |
| * to create for bodacious pie charts like e.g. gargoyle [[http://www.gargoyle-router.com/wiki/lib/exe/detail.php?id=screenshots&media=screenshots:05_qosdist.jpg|Gargoyle]] you could utilize JavaScript, AJAX, etc. | * to create for bodacious pie charts like e.g. gargoyle [[http://www.gargoyle-router.com/wiki/lib/exe/detail.php?id=screenshots&media=screenshots:05_qosdist.jpg|Gargoyle]] you could utilize JavaScript, AJAX, etc. |
| |
| ===== Serve Pictures ===== | ===== Serve Pictures ===== |
| * [[docs:user-guide:services:statistics.chart.public]] if you're happy with the charts and with LuCI but just want to make the charts public (no authentication) | * [[docs:guide-user:services:statistics.chart.public]] if you're happy with the charts and with LuCI but just want to make the charts public (no authentication) |
| * [[docs:user-guide:services:http.overview]] pick a webserver, install and configure it | * [[docs:guide-user:services:http.overview]] pick a webserver, install and configure it |
| * [[doc:howto:chart.http]] make rrdTool place the PNG-files in a directory, then make ? tinker a html-page which the webserver can serve | * [[doc:howto:chart.http]] make rrdTool place the PNG-files in a directory, then make ? tinker a html-page which the webserver can serve |