diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-31 04:15:29 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-01-31 04:15:29 +0100 |
commit | 4556623911d2c5834541c7ed1eb36975c23a1da4 (patch) | |
tree | 4f106cf7ff37d93162a13226c3d72bfe6b0996b6 | |
parent | 067edf249a99e23454df848f1a5bf2a9903357f9 (diff) | |
download | dabmod-4556623911d2c5834541c7ed1eb36975c23a1da4.tar.gz dabmod-4556623911d2c5834541c7ed1eb36975c23a1da4.tar.bz2 dabmod-4556623911d2c5834541c7ed1eb36975c23a1da4.zip |
Fix omission in munin script
-rwxr-xr-x | doc/stats_dabmod_munin.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/stats_dabmod_munin.py b/doc/stats_dabmod_munin.py index d3b52ed..f0cf12c 100755 --- a/doc/stats_dabmod_munin.py +++ b/doc/stats_dabmod_munin.py @@ -2,6 +2,9 @@ # # present statistics from ODR-DabMod's # RC interface to munin +# +# Copy this file to /etc/munin/plugins/dabmod +# to use it, and make sure it's executable (chmod +x) import sys import json @@ -272,6 +275,8 @@ if len(sys.argv) == 1: # Plotting FCT is not useful because it overflows in 6s, and the poll # interval is usually 5min + tist_timestamp = get_rc_value("tist", "timestamp", sock) + re_tist_timestamp = re.compile(r"(\d+\.\d+)\ for\ frame\ FCT\ (\d+)", re.X) munin_values += "multigraph tist_timestamp\n" munin_values += handle_re("timestamp.value", re_tist_timestamp, tist_timestamp, 1) |