From 4f1b6bb06fff59478e99bf2068d4d592422a73df Mon Sep 17 00:00:00 2001 From: Sheppy Date: Thu, 29 Dec 2022 12:53:09 +0100 Subject: [PATCH] fix: dn checks --- group_vars/vpn.yaml | 5 +++-- roles/monitoring-master/files/services_passive.conf | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/group_vars/vpn.yaml b/group_vars/vpn.yaml index 5076089..9bd769d 100644 --- a/group_vars/vpn.yaml +++ b/group_vars/vpn.yaml @@ -1,4 +1,5 @@ --- checks : - - { user : nobody, name : wireguard_rudi, cmd : ""} - - { user : nobody, name : wireguard_hase, cmd : ""} + - { user : nobody, name : wireguard-darknet-rudi, cmd : "/usr/lib/nagios/plugins/check_ping -H fe80::2%wg_rudi_darknet -w300,10% -c 1000,20%"} + - { user : nobody, name : wireguard-darknet-hase, cmd : "/usr/lib/nagios/plugins/check_ping -H fe80::2%wg_hase_darknet -w300,10% -c 1000,20%"} + - { user : nobody, name : darknet-reachable, cmd : "/usr/lib/nagios/plugins/check_ping -H 10.100.100.100 -w300,10% -c 1000,20%"} diff --git a/roles/monitoring-master/files/services_passive.conf b/roles/monitoring-master/files/services_passive.conf index 9d6990b..c3be1e4 100644 --- a/roles/monitoring-master/files/services_passive.conf +++ b/roles/monitoring-master/files/services_passive.conf @@ -33,17 +33,17 @@ apply Service "irc" { assign where host.name == "irc" } -apply Service "darknet-rudi" { +apply Service "wireguard-darknet-rudi" { import "remote_passive" assign where host.name == "vpn" } -apply Service "darknet-hase" { +apply Service "wireguard-darknet-hase" { import "remote_passive" assign where host.name == "vpn" } -apply Service "darknet-routes" { +apply Service "darknet-reachable" { import "remote_passive" assign where host.name == "vpn" }