diff --git a/bundles/wireguard/metadata.py b/bundles/wireguard/metadata.py index b3580c5..5999e2d 100644 --- a/bundles/wireguard/metadata.py +++ b/bundles/wireguard/metadata.py @@ -87,6 +87,9 @@ def icinga2(metadata): services = {} for peer, config in metadata.get('wireguard/peers', {}).items(): + if config.get('exclude_from_monitoring', False): + continue + services[f'WIREGUARD CONNECTION {peer}'] = { 'command_on_monitored_host': config['pubkey'].format_into('sudo /usr/local/share/icinga/plugins/check_wireguard_connected wg0 {}'), }