second commit

This commit is contained in:
pvincent
2024-02-21 23:32:34 +04:00
parent 9a4551ca3a
commit 7cdc45397d
82 changed files with 7172 additions and 6 deletions
+7
View File
@@ -0,0 +1,7 @@
{% for container in expanded.monitored.containers -%}
check program {{ container }}.running
with path "/root/lxc-is-running {{ container }}"
depends on bridge
if status != 0 then alert
{% endfor -%}
+6
View File
@@ -0,0 +1,6 @@
{% for host in expanded.monitored.hosts -%}
check host {{ host.container }}.{{ host.port }} with address {{ host.container }}.lxd
depends on {{ host.container }}.running
if failed port {{ host.port }} protocol http for 2 cycles then alert
{% endfor -%}