Commit graph

430 commits

Author SHA1 Message Date
Alexandre Aubin
3b0bd2e8f2
Merge pull request #923 from YunoHost/misc-enh-diagnosis
[enh] Misc improvements for diagnosis
2020-04-19 05:34:27 +02:00
Alexandre Aubin
39f0aa3ef3 Improve wording 2020-04-19 05:07:22 +02:00
Alexandre Aubin
7c758b72c9
Merge branch 'misc-enh-diagnosis' into enh-diagnosis-mail 2020-04-19 04:06:44 +02:00
ljf
e6f0091f59 [fix] Rename ipv6 mail settings + desc 2020-04-19 03:45:59 +02:00
ljf
ed75108142 [fix] Cache duration 2020-04-19 02:32:15 +02:00
ljf
4686673bb5 [enh] Be able to disable ipv6 for smtp 2020-04-19 02:30:23 +02:00
Alexandre Aubin
97ab8c91f8 Fix the fix for stupid 'search' stuff in resolvconf ... + let's in fact ignore it if it does exists in /etc/resolv.conf >.> 2020-04-19 02:03:35 +02:00
Alexandre Aubin
3cb47a226f More flexible warning about swap size... Move it to 512 MiB 'cause 256 MiB really aint much I think 2020-04-19 01:43:27 +02:00
Alexandre Aubin
8aced5b4ce Let's cache mail diagnosis with a duration similar to other checks... 2020-04-19 01:30:22 +02:00
ljf
55957d77b0 [fix] Key queue_to_big 2020-04-19 00:58:10 +02:00
ljf
3c174389b6 [enh] Add some details 2020-04-19 00:58:10 +02:00
Alexandre Aubin
7818eb3946 Better handling of failure to use the remote-diagnosis 2020-04-19 00:26:33 +02:00
ljf
0014fe2903 [fix] Order of mail checks and mail queue 2020-04-18 20:40:18 +02:00
ljf
b1124b7080 [fix] Maildiagnoser typo 2020-04-18 19:06:45 +02:00
ljf
a17adc274c [wip] Small refactoring for mail diagnoser 2020-04-18 17:08:47 +02:00
ljf
da6ae405dd [fix] Missing pending number args 2020-04-18 17:08:46 +02:00
ljf
027a0ed73c [wip] Add rDNS and mailqueue check 2020-04-18 17:08:46 +02:00
ljf
5b0698e798 [fix] Bad call to dict 2020-04-18 17:08:46 +02:00
ljf
0b7984adf1 [enh] Improve DNSBL check 2020-04-18 17:08:46 +02:00
ljf
bb162662c6 [enh] Use named var in i18n 2020-04-18 17:08:46 +02:00
ljf
d8feb1b72a [enh] Add RBL check 2020-04-18 17:08:46 +02:00
Alexandre Aubin
db347115fc In fact we can't have a hard dependency on dnsrecords here, otherwise no check are performed until the dnsrecords have no important issue ... 2020-04-18 03:24:31 +02:00
Alexandre Aubin
749ca54a34 More sensible cache_duration for diagnosis categories 2020-04-18 02:53:15 +02:00
Alexandre Aubin
61ef67252e Don't contact ip6.yunohost if we can know right away that there's no IPv6 at all on the system 2020-04-17 19:38:46 +02:00
Alexandre Aubin
7061c4c3fe
Improve systemd settings for slapd (#933) 2020-04-17 14:40:53 +02:00
Alexandre Aubin
2c26961314 Fix bad copy pasta for string key 2020-04-17 03:20:40 +02:00
Alexandre Aubin
4306db7cf1 Be more flexible about SPF record: just 'a mx -all' is enough, no need to specify IP. (also fix TXT record validation in diagnosis) 2020-04-17 03:20:40 +02:00
Alexandre Aubin
dd7b42d3e8 Add ipv6 check for ports 2020-04-17 03:20:40 +02:00
Alexandre Aubin
be0da3b9dc Only report an INFO is domain ain't accessible in IPv6 and there's in fact no AAAA record set yet 2020-04-17 03:20:40 +02:00
Alexandre Aubin
4e64e2ccfd Save a per-record result for DNS diagnosis and report missing AAAA as warning only 2020-04-17 03:20:40 +02:00
Alexandre Aubin
e8730ad92b Correctly handle cases where domain works in IPv4 but not IPv6 or viceversa 2020-04-17 03:20:40 +02:00
Alexandre Aubin
7f3cc33487 Add a static method to call remote diagnosis and supports ipv4-only or ipv6-only check 2020-04-17 03:20:40 +02:00
Alexandre Aubin
a85c15dd0b Update data/hooks/diagnosis/50-systemresources.py
Co-Authored-By: Kayou <pierre@kayou.io>
2020-04-17 03:20:40 +02:00
Alexandre Aubin
4787f0ce04 Rework diagnosis of system resources 2020-04-17 03:20:40 +02:00
Alexandre Aubin
416968bb28 Improve regenconf diagnosis 2020-04-17 03:20:40 +02:00
Alexandre Aubin
92d9d49a05 Fix resolvconf check 2020-04-17 03:20:40 +02:00
Alexandre Aubin
bfe3f415ca Report bad XMPP DNS records as warning for now 2020-04-17 03:20:40 +02:00
Alexandre Aubin
16b2340441 Uhoh typo again 2020-04-17 03:20:40 +02:00
Alexandre Aubin
093ccd8020 Make sure that there's no AAAA records when no ipv6 2020-04-17 03:20:40 +02:00
Alexandre Aubin
ae82fe3693 Improve the way we check DNS records to avoid false negative on TXT or MX 2020-04-17 03:20:40 +02:00
Alexandre Aubin
d16dab1c44 Uhoh typo 2020-04-17 03:20:40 +02:00
Alexandre Aubin
42293fcce3 Attempt to detect hairpinning 2020-04-17 03:20:40 +02:00
Alexandre Aubin
2f0a95645a Hmpf boring resolvconf shit 2020-04-17 03:20:40 +02:00
Alexandre Aubin
f9dd634ebe Detect if nginx conf does not include well-known diagnosis location 2020-04-17 03:20:40 +02:00
Alexandre Aubin
8cb2640872 Fix usage of systemd-detect-virt on baremetal 2020-04-17 03:20:40 +02:00
Alexandre Aubin
7c3cce6bf9 Try to diagnose and add details about global and local IPs 2020-04-17 03:20:40 +02:00
Alexandre Aubin
3cff370c62 Add some bits of magic to simplify the way we yield test items 2020-04-17 03:20:40 +02:00
Alexandre Aubin
f0c0f63bb4 Let's use dict for details data, much better for semantic when defining strings etc... 2020-04-17 03:20:40 +02:00
Alexandre Aubin
8e83f8aa29 Add a 'yunohost diagnosis get' to get one specific raw info 2020-04-17 03:20:40 +02:00
Kayou
887304919e
Merge pull request #917 from YunoHost/fix-acme-challenge-snippet
Get rid of domain-specific acme-challenge snippet, use a single snippet included in every conf
2020-04-09 21:07:50 +02:00