summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/root
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2020-04-21 19:46:48 +0300
committerGitHub <noreply@github.com>2020-04-21 19:46:48 +0300
commit6e3e8c8d19e8216245c9242d13509a34d5a809f1 (patch)
tree682dcb8114f7299544a627c5858822f1c9253cfa /applications/luci-app-statistics/root
parent398b19832c9db866870baf3833d09bb00838e45b (diff)
parent7eb63dfc275888b361c09bcec6d050a64a520520 (diff)
Merge pull request #3935 from tobiaswaldvogel/luci_app_statistics_add_syslog
luci-app-statistics: add syslog plugin
Diffstat (limited to 'applications/luci-app-statistics/root')
-rw-r--r--applications/luci-app-statistics/root/etc/config/luci_statistics5
-rw-r--r--applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/syslog.json9
2 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/root/etc/config/luci_statistics b/applications/luci-app-statistics/root/etc/config/luci_statistics
index d97087d190..c2f27c2a51 100644
--- a/applications/luci-app-statistics/root/etc/config/luci_statistics
+++ b/applications/luci-app-statistics/root/etc/config/luci_statistics
@@ -42,6 +42,11 @@ config statistics 'collectd_logfile'
config statistics 'collectd_network'
option enable '0'
+config statistics 'collectd_syslog'
+ option enable '0'
+ option LogLevel 'warning'
+ option NotifyLevel 'WARNING'
+
config statistics 'collectd_unixsock'
option enable '0'
option SocketFile '/var/run/collectd/query.sock'
diff --git a/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/syslog.json b/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/syslog.json
new file mode 100644
index 0000000000..27bec71369
--- /dev/null
+++ b/applications/luci-app-statistics/root/usr/share/luci/statistics/plugins/syslog.json
@@ -0,0 +1,9 @@
+{
+ "title": "Syslog",
+ "category": "output",
+ "legend": [
+ ["LogLevel","NotifyLevel"],
+ [],
+ []
+ ]
+}