@cryptotaxi247 / netdata-1 / commits / 51a16baf0

Add modules to charts.d.conf (#6120)

* Fix incorrect module name: energi I think this should be "energid" because that is the name of the module and currently setting it to "no" in the config file does not turn it off. * Update charts.d.conf Add apcupsd and libreswan to conf as default enabled. * Update apcupsd.chart.sh

Steve8291 committed May 27, 2019 at 06:50 UTC 51a16baf0828516e7e7563fa47f1b854a7a67ecd
2 files changed +4 -2
collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh
+2 -2
@@ -47,8 +47,8 @@ apcupsd_check() {
47 error "cannot get information for apcupsd server ${host} on ${apcupsd_sources[${host}]}."
48 failed=$((failed + 1))
49 else
50 - apcupsd_status = "$(apcupsd_get ${apcupsd_sources[${host}]} | awk '/^STATUS.*/{ print $3 }')"
51 - if [ ${apcupsd_status} != "ONLINE" ] && [ ${apcupsd_status} != "ONBATT" ]; then
50 + apcupsd_status=$(apcupsd_get ${apcupsd_sources[${host}]} | awk '/^STATUS.*/{ print $3 }')
51 + if [ "$apcupsd_status" != "ONLINE" ] && [ "$apcupsd_status" != "ONBATT" ]; then
52 error "APC UPS ${host} on ${apcupsd_sources[${host}]} is not online."
53 failed=$((failed + 1))
54 else
collectors/charts.d.plugin/charts.d.conf
+2
@@ -34,6 +34,8 @@
34
35 # BY DEFAULT ENABLED MODULES
36 # ap=yes
37 +# apcupsd=yes
38 +# libreswan=yes
39 # nut=yes
40 # opensips=yes
41