Skip to content
Snippets Groups Projects
Commit 314865ba authored by jabertwo's avatar jabertwo
Browse files

Icinga only monitor prod

parent 50d99568
No related branches found
No related tags found
No related merge requests found
{% for host in groups['all'] %} {% for host in groups['prod'] %}
{% if hostvars[host].alert is defined and hostvars[host].alert %} {% if hostvars[host].alert is defined and hostvars[host].alert %}
......
{% for host in groups['all'] %} {% for host in groups['prod'] %}
{% if hostvars[host].borgbackup_repos is defined %} {% if hostvars[host].borgbackup_repos is defined %}
{% for repo in hostvars[host].borgbackup_repos %} {% for repo in hostvars[host].borgbackup_repos %}
......
{% for host in groups['all'] %} {% for host in groups['prod'] %}
{% if hostvars[host].alert is defined and hostvars[host].alert %} {% if hostvars[host].alert is defined and hostvars[host].alert %}
{% if hostvars[host].alert.containers is defined %} {% if hostvars[host].alert.containers is defined %}
......
{% for host in groups['all'] %} {% for host in groups['prod'] %}
{% if hostvars[host].ext_ip4 is defined and hostvars[host].ext_ip6 is defined and hostvars[host].webserver_domains is defined %} {% if hostvars[host].ext_ip4 is defined and hostvars[host].ext_ip6 is defined and hostvars[host].webserver_domains is defined %}
{% for domain in hostvars[host].webserver_domains %} {% for domain in hostvars[host].webserver_domains %}
......
{% for host in groups['all'] %} {% for host in groups['prod'] %}
{% if hostvars[host].alert is defined and hostvars[host].alert %} {% if hostvars[host].alert is defined and hostvars[host].alert %}
apply Service "node-exporter" { apply Service "node-exporter" {
......
{% for host in groups['all'] %} {% for host in groups['prod'] %}
apply Service "ldap_ok" { apply Service "ldap_ok" {
......
{% for host in groups['all'] %} {% for host in groups['prod'] %}
{% if hostvars[host].alert is defined and hostvars[host].alert %} {% if hostvars[host].alert is defined and hostvars[host].alert %}
apply Service "node_metrics" { apply Service "node_metrics" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment