From 356570a4ca1f2ec5c23163fcf98eb199db1ddc6e Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Tue, 23 Jul 2024 15:33:54 +0200 Subject: [PATCH] ansible-inventories/arocom#3229 Add port 25 to monitoring --- playbooks/templates/heartbeat.yml.jinja2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/templates/heartbeat.yml.jinja2 b/playbooks/templates/heartbeat.yml.jinja2 index fb7caf4..87ac4a9 100644 --- a/playbooks/templates/heartbeat.yml.jinja2 +++ b/playbooks/templates/heartbeat.yml.jinja2 @@ -2,6 +2,13 @@ {% if lookup("env","ANSIBLE_COMPANY") != 'local' %} {% for host in groups.all %} +- type: port25 + schedule: '*/5 * * * * * *' + tags: + - '{{ lookup("env","ANSIBLE_COMPANY") }}' + name: 'Blocked port 25 on {{ host }}' + hosts: + - {{ hostvars[host]['static_ipv4'] }} {% if hostvars[host]['icmp_monitoring']|default(true) %} - type: icmp schedule: '*/5 * * * * * *' -- GitLab