summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-08-19 18:15:21 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-08-19 18:15:21 -0400
commit10f4417b4abeba3e9fc5cd6cb335dd34fa2701dc (patch)
treea2377d91cef28f3d06b252faaa0f2a0e8c515f79
parent314b0af75c06b9f2b36332d481c3b9e75b514c7c (diff)
shorten the polling interval from 10s to 1s
-rwxr-xr-xsystemd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/systemd.py b/systemd.py
index 219bb16..5a22e3c 100755
--- a/systemd.py
+++ b/systemd.py
@@ -59,8 +59,8 @@ else:
def _config(conf):
pass
def _read():
+ collectd.info("---- dump() ----")
for (key, val) in iteritems(read()):
- collectd.info("---- dump() ----")
collectd.Values(
plugin='systemd',
type='count',
@@ -70,4 +70,4 @@ else:
)
collectd.register_config(_config)
collectd.register_init(init)
- collectd.register_read(_read)
+ collectd.register_read(_read, 1)