summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-09 16:07:01 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-09 16:07:01 +0200
commit0e5797c291d29587d5ea5beebe6430cb041903bd (patch)
tree1e7d6a833d983f27de0b0f0b426ca070825ed301 /src/DabMux.cpp
parentebc799479b15f420702bdfc43f1e6f71160c5977 (diff)
downloaddabmux-0e5797c291d29587d5ea5beebe6430cb041903bd.tar.gz
dabmux-0e5797c291d29587d5ea5beebe6430cb041903bd.tar.bz2
dabmux-0e5797c291d29587d5ea5beebe6430cb041903bd.zip
Add input state monitoring, change munin graphs
StatsServer now determines the input states. Also, the underruns and overruns are counters in munin now, they are not reset anymore.
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index c090738..e698e89 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -1896,6 +1896,13 @@ int main(int argc, char *argv[])
etiLog.level(warn) << "Detected Remote Control fault, restarting it";
rc->restart();
}
+
+ /* Same for statistics server */
+ if (global_stats && fc->FCT == 249 && global_stats->fault_detected()) {
+ etiLog.level(warn) <<
+ "Detected Statistics Server fault, restarting it";
+ global_stats->restart();
+ }
}
EXIT: