Moar ideas

This commit is contained in:
Alexandre Aubin 2019-08-22 12:42:25 +02:00
parent e0fa87cb36
commit 356f2b9ec1
3 changed files with 6 additions and 0 deletions

View file

@ -21,6 +21,8 @@ class BaseSystemDiagnoser(Diagnoser):
status="INFO",
summary=("diagnosis_basesystem_kernel", {"kernel_version": kernel_version}))
# FIXME / TODO : add virt/vm technology using systemd-detect-virt and/or machine arch
# Debian release
debian_version = read_file("/etc/debian_version").strip()
yield dict(meta={"test": "host"},

View file

@ -84,6 +84,8 @@ class IPDiagnoser(Diagnoser):
summary=("diagnosis_ip_connected_ipv6", {}) if ipv6
else ("diagnosis_ip_no_ipv6", {}))
# TODO / FIXME : add some attempt to detect ISP (using whois ?) ?
def can_ping_outside(self, protocol=4):
assert protocol in [4, 6], "Invalid protocol version, it should be either 4 or 6 and was '%s'" % repr(protocol)

View file

@ -33,6 +33,8 @@ class DNSRecordsDiagnoser(Diagnoser):
# FIXME : somewhere, should implement a check for reverse DNS ...
# FIXME / TODO : somewhere, could also implement a check for domain expiring soon
def check_domain(self, domain, is_main_domain):
expected_configuration = _build_dns_conf(domain)