applications/luci-statistics: Saner defaults for processes to monitor and add helptext
This commit is contained in:
parent
44a18906e5
commit
da9929e2cb
3 changed files with 5 additions and 3 deletions
applications/luci-statistics
luasrc
root/etc/config
|
@ -28,8 +28,9 @@ enable = s:option( Flag, "enable", translate("Enable this plugin") )
|
||||||
enable.default = 0
|
enable.default = 0
|
||||||
|
|
||||||
-- collectd_processes.processes (Process)
|
-- collectd_processes.processes (Process)
|
||||||
processes = s:option( Value, "Processes", translate("Monitor processes") )
|
processes = s:option( Value, "Processes", translate("Monitor processes"),
|
||||||
processes.default = "olsrd bmxd httpd dnsmasq dropbear tinc"
|
translate("Processes to monitor seperated by space") )
|
||||||
processes:depends( "enable", 1 )
|
processes:depends( "enable", 1 )
|
||||||
|
processes.default = "uhttpd dropbear dnsmasq"
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
|
@ -16,7 +16,7 @@ function rrdargs( graph, host, plugin, plugin_instance, dtype )
|
||||||
return {
|
return {
|
||||||
title = "%H: Memory usage",
|
title = "%H: Memory usage",
|
||||||
vlabel = "MB",
|
vlabel = "MB",
|
||||||
number_format = "%5.1lf%%",
|
number_format = "%5.1lf%s",
|
||||||
data = {
|
data = {
|
||||||
instances = {
|
instances = {
|
||||||
memory = { "free", "buffered", "cached", "used" }
|
memory = { "free", "buffered", "cached", "used" }
|
||||||
|
|
|
@ -96,6 +96,7 @@ config 'statistics' 'collectd_network'
|
||||||
|
|
||||||
config 'statistics' 'collectd_processes'
|
config 'statistics' 'collectd_processes'
|
||||||
option 'enable' '1'
|
option 'enable' '1'
|
||||||
|
option 'Processes' 'uhttpd dnsmasq dropbear'
|
||||||
|
|
||||||
config 'statistics' 'collectd_tcpconns'
|
config 'statistics' 'collectd_tcpconns'
|
||||||
option 'enable' '1'
|
option 'enable' '1'
|
||||||
|
|
Loading…
Reference in a new issue