second commit
This commit is contained in:
@@ -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 -%}
|
||||
@@ -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 -%}
|
||||
Reference in New Issue
Block a user