====== luci-app-statistics - リアルタイム統計 ====== # opkg update && opkg install luci-app-statistics Downloading https://fw.gl-inet.com/releases/kmod-3.2/ar71xx/nand/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_core Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/sync_kmod-3.2/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_sync Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/base/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_base Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/gli_pub/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_gli_pub Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_packages Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/luci/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_luci Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/routing/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_routing Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/telephony/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_telephony Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/glinet/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_glinet Installing luci-app-statistics (git-18.196.56128-9112198-1) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/luci/luci-app-statistics_git-18.196.56128-9112198-1_all.ipk Installing collectd (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd_5.8.0-5_mips_24kc.ipk Installing librrd1 (1.0.50-2) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/librrd1_1.0.50-2_mips_24kc.ipk Installing rrdtool1 (1.0.50-2) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/rrdtool1_1.0.50-2_mips_24kc.ipk Installing collectd-mod-rrdtool (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-rrdtool_5.8.0-5_mips_24kc.ipk Installing collectd-mod-iwinfo (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-iwinfo_5.8.0-5_mips_24kc.ipk Installing collectd-mod-cpu (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-cpu_5.8.0-5_mips_24kc.ipk Installing collectd-mod-memory (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-memory_5.8.0-5_mips_24kc.ipk Installing collectd-mod-interface (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-interface_5.8.0-5_mips_24kc.ipk Installing collectd-mod-load (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-load_5.8.0-5_mips_24kc.ipk Installing collectd-mod-network (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-network_5.8.0-5_mips_24kc.ipk Configuring collectd. Configuring librrd1. Configuring rrdtool1. Configuring collectd-mod-rrdtool. Configuring collectd-mod-iwinfo. Configuring collectd-mod-cpu. Configuring collectd-mod-memory. Configuring collectd-mod-interface. Configuring collectd-mod-load. Configuring collectd-mod-network. Configuring luci-app-statistics. # opkg list | grep collectd-mod collectd-mod-apache - 5.8.0-5 - apache status input plugin collectd-mod-apcups - 5.8.0-5 - apcups status input plugin collectd-mod-ascent - 5.8.0-5 - ascent status input plugin collectd-mod-bind - 5.8.0-5 - BIND server/zone input plugin collectd-mod-chrony - 5.8.0-5 - chrony status input plugin collectd-mod-conntrack - 5.8.0-5 - connection tracking table size input plugin collectd-mod-contextswitch - 5.8.0-5 - context switch input plugin collectd-mod-cpu - 5.8.0-5 - CPU input plugin collectd-mod-csv - 5.8.0-5 - CSV output plugin collectd-mod-curl - 5.8.0-5 - cURL input plugin collectd-mod-df - 5.8.0-5 - disk space input plugin collectd-mod-disk - 5.8.0-5 - disk usage/timing input plugin collectd-mod-dns - 5.8.0-5 - DNS traffic input plugin collectd-mod-email - 5.8.0-5 - email output plugin collectd-mod-entropy - 5.8.0-5 - Entropy amount input plugin collectd-mod-exec - 5.8.0-5 - process exec input plugin collectd-mod-filecount - 5.8.0-5 - file count input plugin collectd-mod-fscache - 5.8.0-5 - file-system based caching framework input plugin collectd-mod-interface - 5.8.0-5 - network interfaces input plugin collectd-mod-iptables - 5.8.0-5 - iptables status input plugin collectd-mod-irq - 5.8.0-5 - interrupt usage input plugin collectd-mod-iwinfo - 5.8.0-5 - libiwinfo wireless statistics plugin collectd-mod-load - 5.8.0-5 - system load input plugin collectd-mod-logfile - 5.8.0-5 - log files output plugin collectd-mod-match-empty-counter - 5.8.0-5 - empty-counter match plugin collectd-mod-match-hashed - 5.8.0-5 - hashed match plugin collectd-mod-match-regex - 5.8.0-5 - regex match plugin collectd-mod-match-timediff - 5.8.0-5 - timediff match plugin collectd-mod-match-value - 5.8.0-5 - value match plugin collectd-mod-memory - 5.8.0-5 - physical memory usage input plugin collectd-mod-modbus - 5.8.0-5 - read variables through libmodbus plugin collectd-mod-mqtt - 5.8.0-5 - transmit data with MQTT plugin collectd-mod-mysql - 5.8.0-5 - MySQL status input plugin collectd-mod-netlink - 5.8.0-5 - netlink input plugin collectd-mod-network - 5.8.0-5 - network input/output plugin collectd-mod-nginx - 5.8.0-5 - nginx status input plugin collectd-mod-ntpd - 5.8.0-5 - NTP daemon status input plugin collectd-mod-nut - 5.8.0-5 - UPS monitoring input plugin collectd-mod-olsrd - 5.8.0-5 - OLSRd status input plugin collectd-mod-openvpn - 5.8.0-5 - OpenVPN traffic/compression input plugin collectd-mod-ping - 5.8.0-5 - ping status input plugin collectd-mod-postgresql - 5.8.0-5 - PostgreSQL status input plugin collectd-mod-powerdns - 5.8.0-5 - PowerDNS server status input plugin collectd-mod-processes - 5.8.0-5 - process status input plugin collectd-mod-protocols - 5.8.0-5 - network protocols input plugin collectd-mod-rrdtool - 5.8.0-5 - RRDtool output plugin collectd-mod-sensors - 5.8.0-5 - lm_sensors input plugin collectd-mod-snmp - 5.8.0-5 - SNMP input plugin collectd-mod-syslog - 5.8.0-5 - syslog output plugin collectd-mod-table - 5.8.0-5 - table-like structured file input plugin collectd-mod-tail - 5.8.0-5 - tail input plugin collectd-mod-tail-csv - 5.8.0-5 - tail CSV input plugin collectd-mod-tcpconns - 5.8.0-5 - TCP connection tracking input plugin collectd-mod-teamspeak2 - 5.8.0-5 - TeamSpeak2 input plugin collectd-mod-ted - 5.8.0-5 - The Energy Detective input plugin collectd-mod-thermal - 5.8.0-5 - system temperatures input plugin collectd-mod-unixsock - 5.8.0-5 - unix socket output plugin collectd-mod-uptime - 5.8.0-5 - uptime status input plugin collectd-mod-users - 5.8.0-5 - user logged in status input plugin collectd-mod-vmem - 5.8.0-5 - virtual memory usage input plugin collectd-mod-wireless - 5.8.0-5 - wireless status input plugin collectd-mod-write-graphite - 5.8.0-5 - Carbon/Graphite output plugin collectd-mod-write-http - 5.8.0-5 - HTTP POST output plugin # opkg install collectd-mod-cpu collectd-mod-interface collectd-mod-memory collectd-mod-ping collectd-mod-rrdtool collectd-mod-wireless Package collectd-mod-cpu (5.8.0-5) installed in root is up to date. Package collectd-mod-interface (5.8.0-5) installed in root is up to date. Package collectd-mod-memory (5.8.0-5) installed in root is up to date. Installing collectd-mod-ping (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-ping_5.8.0-5_mips_24kc.ipk Installing liboping (1.9.0-1) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/liboping_1.9.0-1_mips_24kc.ipk Package collectd-mod-rrdtool (5.8.0-5) installed in root is up to date. Installing collectd-mod-wireless (5.8.0-5) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/collectd-mod-wireless_5.8.0-5_mips_24kc.ipk Configuring liboping. Configuring collectd-mod-ping. Configuring collectd-mod-wireless. # service luci_statistics enable # service collectd enable # mkdir -p /mnt/sd128gb/tmp/rrd # chown nobody.nogroup /mnt/sd128gb/tmp/rrd -R # mount --bind /mnt/sd128gb/tmp/rrd /tmp/rrd ローカルスタートアップ スクリプトに **mount** 設定を記述しておく。(再起動時にも有効になるように...)\\ # vi /etc/rc.local ... killall uqmi traffic=`uci get glconfig.switch.enable 2>/dev/null` if [ "$traffic" == "1" ];then uci set tertf.general.cleartraffic='1' uci commit tertf fi mount --bind /mnt/sd128gb/tmp/rrd /tmp/rrd ===== 設定 ===== 細かい設定は **[Statistics] - [Setup]** で行いましょう。\\ ===== 参考文献 ===== [[https://openwrt.org/docs/guide-user/luci/luci_app_statistics|OpenWrt Project: luci-app-statistics]]\\