From de1115dcc4d3226806a6a1c813a98d030a33261b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 18 Nov 2018 17:45:13 +0100 Subject: Add temperature to munin --- doc/stats_dabmod_munin.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'doc/stats_dabmod_munin.py') diff --git a/doc/stats_dabmod_munin.py b/doc/stats_dabmod_munin.py index 2f88d5d..2c79c48 100755 --- a/doc/stats_dabmod_munin.py +++ b/doc/stats_dabmod_munin.py @@ -144,6 +144,8 @@ frames.min 0""" # One GAUGE multigraph # sdr gpsdo_num_sv +# and one for device sensors +# sdr temp config_all += """ multigraph sdr_gpsdo_sv_holdover graph_title Number of GNSS SVs used and holdover state @@ -160,7 +162,19 @@ num_sv.max 20 holdover.info Holdover holdover.label Holdover holdover.min 0 -holdover.max 1""" +holdover.max 1 + +multigraph sdr_sensors +graph_title SDR Sensors +graph_order temp +graph_vlabel SDR Sensors +graph_category dabmod +graph_info This graph shows the device temperature in Celsius + +temp.info Device temperature in Celsius +temp.label Celsius +temp.min 0 +temp.max 100""" ctx = zmq.Context() @@ -316,6 +330,13 @@ if len(sys.argv) == 1: except: munin_values += "holdover.value U\n" + munin_values += "multigraph sdr_sensors\n" + try: + sdr_temp = get_rc_value("sdr", "temp", sock) + munin_values += "temp.value {}\n".format(sdr_temp) + except: + munin_values += "temp.value U\n" + munin_values += "multigraph sdr_frames\n" sdr_frames = get_rc_value("sdr", "frames", sock) munin_values += handle_re("frames", re_int_value, sdr_frames) -- cgit v1.2.3