diff --git a/app/overview.py b/app/overview.py index 1c7c7319..5f17ff19 100644 --- a/app/overview.py +++ b/app/overview.py @@ -31,7 +31,7 @@ try: api, stderr = funct.subprocess_execute(cmd) cmd = "ps ax |grep grafana|grep -v grep|wc -l" grafana, stderr = funct.subprocess_execute(cmd) - cmd = "ps ax |grep prometheus |grep -v grep|wc -l" + cmd = "ps ax |grep 'prometheus ' |grep -v grep|wc -l" prometheus, stderr = funct.subprocess_execute(cmd) except: role = '' diff --git a/app/templates/ovw.html b/app/templates/ovw.html index 506382d0..cd390267 100644 --- a/app/templates/ovw.html +++ b/app/templates/ovw.html @@ -74,9 +74,9 @@ - - + + + + +
+ Tools status - +
@@ -122,12 +122,12 @@ {% endif %}
{% if metrics_worker|int() >= 1 %} - + {% else %} - + {% endif %} {% if role <= 1 %} @@ -139,9 +139,9 @@ {% if checker_worker|int() >= 1 %} - + {% else %} - + {% endif %} {% if role <= 1 %} @@ -162,6 +162,24 @@
+ {% if grafana|int() >= 1 %} + + {% else %} + + {% endif %} + Grafana + + {% if prometheus|int() >= 1 %} + + {% else %} + + {% endif %} + Prometheus +
{% if role <= 1 %}