From 0412c27fda805f6f5b1cac1e74664d9d0633f117 Mon Sep 17 00:00:00 2001 From: Maxim Storchak Date: Tue, 5 Jan 2021 22:39:10 +0200 Subject: [PATCH] collectd: enable swap plugin Signed-off-by: Maxim Storchak --- utils/collectd/Makefile | 3 ++- utils/collectd/files/collectd.uci | 8 ++++++++ utils/collectd/files/usr/share/collectd/plugin/swap.json | 9 +++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 utils/collectd/files/usr/share/collectd/plugin/swap.json diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index 040e58f5c0..705f543df4 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -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,)) diff --git a/utils/collectd/files/collectd.uci b/utils/collectd/files/collectd.uci index 685b3468b7..a716e93f0f 100644 --- a/utils/collectd/files/collectd.uci +++ b/utils/collectd/files/collectd.uci @@ -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' diff --git a/utils/collectd/files/usr/share/collectd/plugin/swap.json b/utils/collectd/files/usr/share/collectd/plugin/swap.json new file mode 100644 index 0000000000..88734af52f --- /dev/null +++ b/utils/collectd/files/usr/share/collectd/plugin/swap.json @@ -0,0 +1,9 @@ +{ + "bool": [ + "ReportBytes", + "ReportByDevice", + "ValuesAbsolute", + "ValuesPercentage", + "ReportIO" + ] +}