get rid of check_rbl
This commit is contained in:
parent
9d5d80457f
commit
b42e39ed0a
3 changed files with 0 additions and 669 deletions
|
@ -44,30 +44,6 @@ else:
|
|||
})
|
||||
|
||||
|
||||
# FIXME find a working, non-shitty check for that
|
||||
#@metadata_reactor.provides(
|
||||
# 'icinga2_api/postfix/services',
|
||||
#)
|
||||
def fill_icinga_spam_blocklist_check_with_hostname(metadata):
|
||||
checks = {}
|
||||
|
||||
for _, ips in repo.libs.tools.resolve_identifier(repo, node.name).items():
|
||||
for ip in ips:
|
||||
if not ip.is_private:
|
||||
checks[f'SPAM BLOCKLIST {ip}'] = {
|
||||
'check_command': 'check_rbl',
|
||||
'vars.ip': str(ip),
|
||||
}
|
||||
|
||||
return {
|
||||
'icinga2_api': {
|
||||
'postfix': {
|
||||
'services': checks,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'letsencrypt/domains',
|
||||
'letsencrypt/reload_after',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue