Browse Source

collectd: enable swap plugin

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
lilik-openwrt-22.03
Maxim Storchak 4 years ago
committed by Hannu Nyman
parent
commit
0412c27fda
3 changed files with 19 additions and 1 deletions
  1. +2
    -1
      utils/collectd/Makefile
  2. +8
    -0
      utils/collectd/files/collectd.uci
  3. +9
    -0
      utils/collectd/files/usr/share/collectd/plugin/swap.json

+ 2
- 1
utils/collectd/Makefile View File

@ -104,7 +104,6 @@ COLLECTD_PLUGINS_DISABLED:= \
smart \
snmp_agent \
statsd \
swap \
synproxy \
sysevent \
tape \
@ -186,6 +185,7 @@ COLLECTD_PLUGINS_SELECTED:= \
sensors \
snmp \
snmp6 \
swap \
syslog \
table \
tail \
@ -452,6 +452,7 @@ $(eval $(call BuildPlugin,rrdtool,RRDtool output,rrdtool,+PACKAGE_collectd-mod-r
$(eval $(call BuildPlugin,sensors,lm_sensors input,sensors,+PACKAGE_collectd-mod-sensors:libsensors))
$(eval $(call BuildPlugin,snmp,SNMP input,snmp,+PACKAGE_collectd-mod-snmp:libnetsnmp))
$(eval $(call BuildPlugin,snmp6,snmp6 input,snmp6,))
$(eval $(call BuildPlugin,swap,swap input,swap,))
$(eval $(call BuildPlugin,syslog,syslog output,syslog,))
$(eval $(call BuildPlugin,tail,tail input,tail,))
$(eval $(call BuildPlugin,tail-csv,tail CSV input,tail_csv,))


+ 8
- 0
utils/collectd/files/collectd.uci View File

@ -178,6 +178,14 @@ config globals 'globals'
#config plugin 'sensors'
# option enable '0'
#config plugin 'swap'
# option enable '0'
# option ReportByDevice '1'
# option ValuesAbsolute '1'
# option ValuesPercentage '0'
# option ReportIO '1'
# option ReportBytes '1'
#config plugin 'tcpconns'
# option enable '0'
# list ListeningPort '0'


+ 9
- 0
utils/collectd/files/usr/share/collectd/plugin/swap.json View File

@ -0,0 +1,9 @@
{
"bool": [
"ReportBytes",
"ReportByDevice",
"ValuesAbsolute",
"ValuesPercentage",
"ReportIO"
]
}

Loading…
Cancel
Save