Skip to content
Snippets Groups Projects
Commit cfc55c20 authored by void's avatar void
Browse files

exclude access switch from notifications

parent d0c7d318
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ apply Notification "matrix" to Host { ...@@ -6,7 +6,7 @@ apply Notification "matrix" to Host {
interval = 4h interval = 4h
assign where host.address assign where host.address && host.vars.enable_nofitications != false
} }
...@@ -17,6 +17,6 @@ apply Notification "matrix" to Service { ...@@ -17,6 +17,6 @@ apply Notification "matrix" to Service {
interval = 4h interval = 4h
assign where service.name assign where service.name && service.vars.enable_nofitications != false
} }
apply Service "homematic-exporter" {
import "generic-service"
check_command = "http"
enable_perfdata = false
vars.http_address = "{{ hostvars['ogg'].int_ip4 }}"
vars.http_port = 8010
vars.http_uri = "/metrics"
groups = [ "exporter", "homematic" ]
assign where host.name == "ogg"
}
{% for device in homematic.devices_heizung %}
apply Service "{{ device.name }}_homematic_lowbat" {
import "generic-service"
check_command = "check_metric_value"
enable_perfdata = true
vars.metric_url = "http://{{ hostvars['ogg'].int_ip4 }}:8010/metrics"
vars.metric_name = "homematic_lowbat"
vars.metric_labelname = "device"
vars.metric_labelvalue = "{{ device.id }}:0"
vars.metric_operator = "gt"
vars.metric_warn = "0"
vars.metric_crit = "0"
assign where host.name == "ogg"
}
{% endfor %}
\ No newline at end of file
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