adding ability for luci_stats config to have multiple UPS's 2514/head
authorBranson Matheson <brmathes@cisco.com>
Tue, 5 Feb 2019 18:21:31 +0000 (13:21 -0500)
committerBranson Matheson <brmathes@cisco.com>
Tue, 5 Feb 2019 18:21:31 +0000 (13:21 -0500)
applications/luci-app-statistics/root/etc/config/luci_statistics
applications/luci-app-statistics/root/usr/bin/stat-genconfig

index 1e841fec8aa9bb4dff35e628ef04a5f1fa6c77e3..f84f67d1fcbd06c8d234b1a95780c94e03c11df4 100644 (file)
@@ -137,7 +137,7 @@ config statistics 'collectd_netlink'
 
 config statistics 'collectd_nut'
        option enable '0'
-       option UPS 'myupsname'
+       list UPS 'myupsname'
 
 config statistics 'collectd_olsrd'
        option enable '0'
index 7d1349b249939ce2cebde7c0363c6821ad6edc48..55cc6979e52d8006c62fcbc8f99c9d62968e1ab9 100755 (executable)
@@ -393,9 +393,9 @@ plugins = {
        network = config_network,
 
        nut = {
-               { "UPS" },
                { },
-               { }
+               { },
+               { "UPS" }
        },
 
        olsrd = {