NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Trace

data/Dockerfiles/unbound/healthcheck.sh

Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.

healthcheck.sh on main
Author Date Commit Line Code
DerLinkman almost 3 years ago eb3be80

[Unbound] Added Healthcheck (nslookup)

Full commit hash
eb3be80286b1fe80c64f407cb5ac692767955abc
Author
DerLinkman <[email protected]>
Date
almost 3 years ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
same change eb3be80

[Unbound] Added Healthcheck (nslookup)

Full commit hash
eb3be80286b1fe80c64f407cb5ac692767955abc
Author
DerLinkman <[email protected]>
Date
almost 3 years ago
Selected line
2
Open commit View diff
2
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
3
STATUS_FILE="/tmp/healthcheck_status"
Open commit View diff
3 STATUS_FILE="/tmp/healthcheck_status"
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
4
RUNS=0
Open commit View diff
4 RUNS=0
Hailer, Christian over 2 years ago 02a55ce

Fix unbound healthcheck.sh to log all messages to logfile

Full commit hash
02a55ce9db2e15e444cbc53413d5dc99da8a68ab
Author
Hailer, Christian <[email protected]>
Date
over 2 years ago
Selected line
5
Open commit View diff
5
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
6
# Declare log function for logfile to stdout
Open commit View diff
6 # Declare log function for logfile to stdout
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
7
function log_to_stdout() {
Open commit View diff
7 function log_to_stdout() {
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
8
echo "$(date +"%Y-%m-%d %H:%M:%S"): $1"
Open commit View diff
8 echo "$(date +"%Y-%m-%d %H:%M:%S"): $1"
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
9
}
Open commit View diff
9 }
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
10
Open commit View diff
10
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
11
# General Ping function to check general pingability
Open commit View diff
11 # General Ping function to check general pingability
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
12
function check_ping() {
Open commit View diff
12 function check_ping() {
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
13
declare -a ipstoping=("1.1.1.1" "8.8.8.8" "9.9.9.9")
Open commit View diff
13 declare -a ipstoping=("1.1.1.1" "8.8.8.8" "9.9.9.9")
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
14
local fail_tolerance=1
Open commit View diff
14 local fail_tolerance=1
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
15
local failures=0
Open commit View diff
15 local failures=0
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
16
Open commit View diff
16
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
17
for ip in "${ipstoping[@]}" ; do
Open commit View diff
17 for ip in "${ipstoping[@]}" ; do
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
18
    success=false
Open commit View diff
18 success=false
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
19
    for ((i=1; i<=3; i++)); do
Open commit View diff
19 for ((i=1; i<=3; i++)); do
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
20
        ping -q -c 3 -w 5 "$ip" > /dev/null
Open commit View diff
20 ping -q -c 3 -w 5 "$ip" > /dev/null
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
21
        if [ $? -eq 0 ]; then
Open commit View diff
21 if [ $? -eq 0 ]; then
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
22
            success=true
Open commit View diff
22 success=true
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
23
            break
Open commit View diff
23 break
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
24
        else
Open commit View diff
24 else
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
25
            log_to_stdout "Healthcheck: Failed to ping $ip on attempt $i. Trying again..."
Open commit View diff
25 log_to_stdout "Healthcheck: Failed to ping $ip on attempt $i. Trying again..."
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
26
        fi
Open commit View diff
26 fi
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
27
    done
Open commit View diff
27 done
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
28
    
Open commit View diff
28
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
29
    if [ "$success" = false ]; then
Open commit View diff
29 if [ "$success" = false ]; then
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
30
        log_to_stdout "Healthcheck: Couldn't ping $ip after 3 attempts. Marking this IP as failed."
Open commit View diff
30 log_to_stdout "Healthcheck: Couldn't ping $ip after 3 attempts. Marking this IP as failed."
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
31
        ((failures++))
Open commit View diff
31 ((failures++))
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
32
    fi
Open commit View diff
32 fi
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
33
done
Open commit View diff
33 done
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
34
Open commit View diff
34
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
35
if [ $failures -gt $fail_tolerance ]; then
Open commit View diff
35 if [ $failures -gt $fail_tolerance ]; then
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
36
    log_to_stdout "Healthcheck: Too many ping failures ($fail_tolerance failures allowed, you got $failures failures), marking Healthcheck as unhealthy..."
Open commit View diff
36 log_to_stdout "Healthcheck: Too many ping failures ($fail_tolerance failures allowed, you got $failures failures), marking Healthcheck as unhealthy..."
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
37
    return 1
Open commit View diff
37 return 1
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
38
fi
Open commit View diff
38 fi
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
39
Open commit View diff
39
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
40
return 0
Open commit View diff
40 return 0
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
41
Open commit View diff
41
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
42
}
Open commit View diff
42 }
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
43
Open commit View diff
43
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
44
# General DNS Resolve Check against Unbound Resolver himself
Open commit View diff
44 # General DNS Resolve Check against Unbound Resolver himself
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
45
function check_dns() {
Open commit View diff
45 function check_dns() {
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
46
declare -a domains=("fuzzy.mailcow.email" "github.com" "hub.docker.com")
Open commit View diff
46 declare -a domains=("fuzzy.mailcow.email" "github.com" "hub.docker.com")
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
47
local fail_tolerance=1
Open commit View diff
47 local fail_tolerance=1
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
48
local failures=0
Open commit View diff
48 local failures=0
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
49
Open commit View diff
49
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
50
for domain in "${domains[@]}" ; do
Open commit View diff
50 for domain in "${domains[@]}" ; do
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
51
    success=false
Open commit View diff
51 success=false
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
52
    for ((i=1; i<=3; i++)); do
Open commit View diff
52 for ((i=1; i<=3; i++)); do
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
53
        dig_output=$(dig +short +timeout=2 +tries=1 "$domain" @127.0.0.1 2>/dev/null)
Open commit View diff
53 dig_output=$(dig +short +timeout=2 +tries=1 "$domain" @127.0.0.1 2>/dev/null)
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
54
        dig_rc=$?
Open commit View diff
54 dig_rc=$?
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
55
Open commit View diff
55
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
56
        if [ $dig_rc -ne 0 ] || [ -z "$dig_output" ]; then
Open commit View diff
56 if [ $dig_rc -ne 0 ] || [ -z "$dig_output" ]; then
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
57
            log_to_stdout "Healthcheck: DNS Resolution Failed on attempt $i for $domain! Trying again..."
Open commit View diff
57 log_to_stdout "Healthcheck: DNS Resolution Failed on attempt $i for $domain! Trying again..."
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
58
        else
Open commit View diff
58 else
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
59
            success=true
Open commit View diff
59 success=true
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
60
            break
Open commit View diff
60 break
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
61
        fi
Open commit View diff
61 fi
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
62
    done
Open commit View diff
62 done
same change b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
63
    
Open commit View diff
63
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
64
    if [ "$success" = false ]; then
Open commit View diff
64 if [ "$success" = false ]; then
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
65
        log_to_stdout "Healthcheck: DNS Resolution not possible after 3 attempts for $domain... Gave up!"
Open commit View diff
65 log_to_stdout "Healthcheck: DNS Resolution not possible after 3 attempts for $domain... Gave up!"
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
66
        ((failures++))
Open commit View diff
66 ((failures++))
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
67
    fi
Open commit View diff
67 fi
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
68
done
Open commit View diff
68 done
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
69
Open commit View diff
69
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
70
if [ $failures -gt $fail_tolerance ]; then
Open commit View diff
70 if [ $failures -gt $fail_tolerance ]; then
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
71
    log_to_stdout "Healthcheck: Too many DNS failures ($fail_tolerance failures allowed, you got $failures failures), marking Healthcheck as unhealthy..."
Open commit View diff
71 log_to_stdout "Healthcheck: Too many DNS failures ($fail_tolerance failures allowed, you got $failures failures), marking Healthcheck as unhealthy..."
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
72
    return 1
Open commit View diff
72 return 1
KagurazakaNyaa over 2 years ago ed493f9

Allow user skip unbound healthcheck

Full commit hash
ed493f9c3a63d94ef10b149829fe3a752c3532e3
Author
KagurazakaNyaa <[email protected]>
Date
over 2 years ago
Selected line
73
fi
Open commit View diff
73 fi
same change ed493f9

Allow user skip unbound healthcheck

Full commit hash
ed493f9c3a63d94ef10b149829fe3a752c3532e3
Author
KagurazakaNyaa <[email protected]>
Date
over 2 years ago
Selected line
74
Open commit View diff
74
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
75
return 0
Open commit View diff
75 return 0
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
76
}
Open commit View diff
76 }
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
77
Open commit View diff
77
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
78
while true; do
Open commit View diff
78 while true; do
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
79
Open commit View diff
79
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
80
    if [[ ${SKIP_UNBOUND_HEALTHCHECK} == "y" ]]; then
Open commit View diff
80 if [[ ${SKIP_UNBOUND_HEALTHCHECK} == "y" ]]; then
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
81
    log_to_stdout "Healthcheck: ALL CHECKS WERE SKIPPED! Unbound is healthy!"
Open commit View diff
81 log_to_stdout "Healthcheck: ALL CHECKS WERE SKIPPED! Unbound is healthy!"
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
82
    echo "0" > $STATUS_FILE
Open commit View diff
82 echo "0" > $STATUS_FILE
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
83
    sleep 365d
Open commit View diff
83 sleep 365d
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
84
    fi
Open commit View diff
84 fi
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
85
Open commit View diff
85
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
86
    # run checks, if check is not returning 0 (return value if check is ok), healthcheck will exit with 1 (marked in docker as unhealthy)
Open commit View diff
86 # run checks, if check is not returning 0 (return value if check is ok), healthcheck will exit with 1 (marked in docker as unhealthy)
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
87
    check_ping
Open commit View diff
87 check_ping
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
88
    PING_STATUS=$?
Open commit View diff
88 PING_STATUS=$?
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
89
Open commit View diff
89
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
90
    check_dns
Open commit View diff
90 check_dns
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
91
    DNS_STATUS=$?
Open commit View diff
91 DNS_STATUS=$?
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
92
Open commit View diff
92
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
93
    if [ $PING_STATUS -ne 0 ] || [ $DNS_STATUS -ne 0 ]; then
Open commit View diff
93 if [ $PING_STATUS -ne 0 ] || [ $DNS_STATUS -ne 0 ]; then
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
94
        echo "1" > $STATUS_FILE
Open commit View diff
94 echo "1" > $STATUS_FILE
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
95
Open commit View diff
95
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
96
    else
Open commit View diff
96 else
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
97
        echo "0" > $STATUS_FILE
Open commit View diff
97 echo "0" > $STATUS_FILE
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
98
    fi
Open commit View diff
98 fi
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
99
Open commit View diff
99
same change b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
100
    sleep 30
Open commit View diff
100 sleep 30
DerLinkman over 2 years ago b29dc37

unbound: rewrote healthcheck to be more detailed

Full commit hash
b29dc3799114089471253d31295a290c239b8488
Author
DerLinkman <[email protected]>
Date
over 2 years ago
Selected line
101
Open commit View diff
101
Niklas Meyer almost 2 years ago b26ccc2

unbound: fix healthcheck logging + added fail tolerance to checks (#6004)

Full commit hash
b26ccc2019921aa399d801a5241dbdf21b8350c0
Author
Niklas Meyer <[email protected]>
Date
almost 2 years ago
Selected line
102
done
Open commit View diff
102 done