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/watchdog/watchdog.sh

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

watchdog.sh on main
Author Date Commit Line Code
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
2
Open commit View diff
2
maxi322 11 months ago 5e66ffa

watchdog: use dig instead of check_dns (#6685)

Full commit hash
5e66ffa36604e8c41bb23c7606ad951ed888b6b4
Author
maxi322 <[email protected]>
Date
11 months ago
Selected line
3
if [ "${DEV_MODE}" != "n" ]; then
Open commit View diff
3 if [ "${DEV_MODE}" != "n" ]; then
same change 5e66ffa

watchdog: use dig instead of check_dns (#6685)

Full commit hash
5e66ffa36604e8c41bb23c7606ad951ed888b6b4
Author
maxi322 <[email protected]>
Date
11 months ago
Selected line
4
  echo -e "\e[31mEnabled Debug Mode\e[0m"
Open commit View diff
4 echo -e "\e[31mEnabled Debug Mode\e[0m"
same change 5e66ffa

watchdog: use dig instead of check_dns (#6685)

Full commit hash
5e66ffa36604e8c41bb23c7606ad951ed888b6b4
Author
maxi322 <[email protected]>
Date
11 months ago
Selected line
5
  set -x
Open commit View diff
5 set -x
same change 5e66ffa

watchdog: use dig instead of check_dns (#6685)

Full commit hash
5e66ffa36604e8c41bb23c7606ad951ed888b6b4
Author
maxi322 <[email protected]>
Date
11 months ago
Selected line
6
fi
Open commit View diff
6 fi
same change 5e66ffa

watchdog: use dig instead of check_dns (#6685)

Full commit hash
5e66ffa36604e8c41bb23c7606ad951ed888b6b4
Author
maxi322 <[email protected]>
Date
11 months ago
Selected line
7
Open commit View diff
7
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
8
trap "exit" INT TERM
Open commit View diff
8 trap "exit" INT TERM
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
9
trap "kill 0" EXIT
Open commit View diff
9 trap "kill 0" EXIT
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
10
Open commit View diff
10
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
11
# Prepare
Open commit View diff
11 # Prepare
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
12
BACKGROUND_TASKS=()
Open commit View diff
12 BACKGROUND_TASKS=()
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
13
echo "Waiting for containers to settle..."
Open commit View diff
13 echo "Waiting for containers to settle..."
Peter over 4 years ago 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
14
for i in {30..1}; do
Open commit View diff
14 for i in {30..1}; do
same change 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
15
  echo "${i}"
Open commit View diff
15 echo "${i}"
same change 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
16
  sleep 1
Open commit View diff
16 sleep 1
same change 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
17
done
Open commit View diff
17 done
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
18
Open commit View diff
18
andryyy almost 9 years ago 68d7fa1

[Watchdog] Skip when use_watchdog=n

Full commit hash
68d7fa150432ce23cbf00230a07584e95a543dcd
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
19
if [[ "${USE_WATCHDOG}" =~ ^([nN][oO]|[nN])+$ ]]; then
Open commit View diff
19 if [[ "${USE_WATCHDOG}" =~ ^([nN][oO]|[nN])+$ ]]; then
andryyy almost 9 years ago c59d03f

[Watchdog] Skip when use_watchdog=n

Full commit hash
c59d03fcb3d9966cc601198ff9fc612c3180a95c
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
20
  echo -e "$(date) - USE_WATCHDOG=n, skipping watchdog..."
Open commit View diff
20 echo -e "$(date) - USE_WATCHDOG=n, skipping watchdog..."
andryyy almost 9 years ago 68d7fa1

[Watchdog] Skip when use_watchdog=n

Full commit hash
68d7fa150432ce23cbf00230a07584e95a543dcd
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
21
  sleep 365d
Open commit View diff
21 sleep 365d
same change 68d7fa1

[Watchdog] Skip when use_watchdog=n

Full commit hash
68d7fa150432ce23cbf00230a07584e95a543dcd
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
22
  exec $(readlink -f "$0")
Open commit View diff
22 exec $(readlink -f "$0")
same change 68d7fa1

[Watchdog] Skip when use_watchdog=n

Full commit hash
68d7fa150432ce23cbf00230a07584e95a543dcd
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
23
fi
Open commit View diff
23 fi
same change 68d7fa1

[Watchdog] Skip when use_watchdog=n

Full commit hash
68d7fa150432ce23cbf00230a07584e95a543dcd
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
24
Open commit View diff
24
Peter over 4 years ago 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
25
if [[ "${WATCHDOG_VERBOSE}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
25 if [[ "${WATCHDOG_VERBOSE}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
26
  SMTP_VERBOSE="--verbose"
Open commit View diff
26 SMTP_VERBOSE="--verbose"
FreddleSpl0it over 2 years ago 218ba69

[Watchdog] add curl verbose & use | as sed delimiter

Full commit hash
218ba6950187c2648769e8eeef0c3529023cecd7
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
27
  CURL_VERBOSE="--verbose"
Open commit View diff
27 CURL_VERBOSE="--verbose"
Peter over 4 years ago 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
28
  set -xv
Open commit View diff
28 set -xv
same change 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
29
else
Open commit View diff
29 else
same change 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
30
  SMTP_VERBOSE=""
Open commit View diff
30 SMTP_VERBOSE=""
FreddleSpl0it over 2 years ago 218ba69

[Watchdog] add curl verbose & use | as sed delimiter

Full commit hash
218ba6950187c2648769e8eeef0c3529023cecd7
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
31
  CURL_VERBOSE=""
Open commit View diff
31 CURL_VERBOSE=""
Peter over 4 years ago 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
32
  exec 2>/dev/null
Open commit View diff
32 exec 2>/dev/null
same change 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
33
fi
Open commit View diff
33 fi
same change 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
34
Open commit View diff
34
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
35
# Checks pipe their corresponding container name in this pipe
Open commit View diff
35 # Checks pipe their corresponding container name in this pipe
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
36
if [[ ! -p /tmp/com_pipe ]]; then
Open commit View diff
36 if [[ ! -p /tmp/com_pipe ]]; then
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
37
  mkfifo /tmp/com_pipe
Open commit View diff
37 mkfifo /tmp/com_pipe
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
38
fi
Open commit View diff
38 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
39
Open commit View diff
39
andryyy almost 7 years ago 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
40
# Wait for containers
Open commit View diff
40 # Wait for containers
FreddleSpl0it 4 months ago 2e17633

[Watchdog] Fix Nagios MariaDB client SSL compatibility with Alpine 3.23

Full commit hash
2e176339baa8461bfdfd171c2918b47b4d2d4306
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
41
while ! mariadb-admin status --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent; do
Open commit View diff
41 while ! mariadb-admin status --skip-ssl --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent; do
andryyy almost 7 years ago 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
42
  echo "Waiting for SQL..."
Open commit View diff
42 echo "Waiting for SQL..."
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
43
  sleep 2
Open commit View diff
43 sleep 2
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
44
done
Open commit View diff
44 done
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
45
Open commit View diff
45
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
46
# Do not attempt to write to slave
Open commit View diff
46 # Do not attempt to write to slave
same change 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
47
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
Open commit View diff
47 if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
48
  REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT} -a ${REDISPASS} --no-auth-warning"
Open commit View diff
48 REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT} -a ${REDISPASS} --no-auth-warning"
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
49
else
Open commit View diff
49 else
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
50
  REDIS_CMDLINE="redis-cli -h redis -p 6379 -a ${REDISPASS} --no-auth-warning"
Open commit View diff
50 REDIS_CMDLINE="redis-cli -h redis -p 6379 -a ${REDISPASS} --no-auth-warning"
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
51
fi
Open commit View diff
51 fi
same change 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
52
Open commit View diff
52
andryyy over 6 years ago e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
53
until [[ $(${REDIS_CMDLINE} PING) == "PONG" ]]; do
Open commit View diff
53 until [[ $(${REDIS_CMDLINE} PING) == "PONG" ]]; do
same change e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
54
  echo "Waiting for Redis..."
Open commit View diff
54 echo "Waiting for Redis..."
same change e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
55
  sleep 2
Open commit View diff
55 sleep 2
same change e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
56
done
Open commit View diff
56 done
same change e28a176

[ACME, Watchdog] Improve waiting for Redis

Full commit hash
e28a1766391183151464b2ba12482443dae2cf59
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
57
Open commit View diff
57
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
58
${REDIS_CMDLINE} DEL F2B_RES > /dev/null
Open commit View diff
58 ${REDIS_CMDLINE} DEL F2B_RES > /dev/null
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
59
Open commit View diff
59
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
60
# Common functions
Open commit View diff
60 # Common functions
andryyy over 6 years ago 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
61
get_ipv6(){
Open commit View diff
61 get_ipv6(){
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
62
  local IPV6=
Open commit View diff
62 local IPV6=
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
63
  local IPV6_SRCS=
Open commit View diff
63 local IPV6_SRCS=
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
64
  local TRY=
Open commit View diff
64 local TRY=
andryyy over 5 years ago d3c0e2f

Temp remove ip6.korves.net

Full commit hash
d3c0e2fc11102806a0737f0c468d494c7f35059c
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
65
  IPV6_SRCS[0]="ip6.mailcow.email"
Open commit View diff
65 IPV6_SRCS[0]="ip6.mailcow.email"
andryyy over 5 years ago e9b554b

[Web] Add nevondo.com ip check source, thank you!

Full commit hash
e9b554b09cdf9bdb499cbb2e4b4bf28e9df4aa9f
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
66
  IPV6_SRCS[1]="ip6.nevondo.com"
Open commit View diff
66 IPV6_SRCS[1]="ip6.nevondo.com"
andryyy over 6 years ago 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
67
  until [[ ! -z ${IPV6} ]] || [[ ${TRY} -ge 10 ]]; do
Open commit View diff
67 until [[ ! -z ${IPV6} ]] || [[ ${TRY} -ge 10 ]]; do
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
68
    IPV6=$(curl --connect-timeout 3 -m 10 -L6s ${IPV6_SRCS[$RANDOM % ${#IPV6_SRCS[@]} ]} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$")
Open commit View diff
68 IPV6=$(curl --connect-timeout 3 -m 10 -L6s ${IPV6_SRCS[$RANDOM % ${#IPV6_SRCS[@]} ]} | grep "^\([0-9a-fA-F]\{0,4\}:\)\{1,7\}[0-9a-fA-F]\{0,4\}$")
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
69
    [[ ! -z ${TRY} ]] && sleep 1
Open commit View diff
69 [[ ! -z ${TRY} ]] && sleep 1
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
70
    TRY=$((TRY+1))
Open commit View diff
70 TRY=$((TRY+1))
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
71
  done
Open commit View diff
71 done
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
72
  echo ${IPV6}
Open commit View diff
72 echo ${IPV6}
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
73
}
Open commit View diff
73 }
same change 9998a9e

[Watchdog] smtp-cli 3.10 (yay) and a new check for IPv6 configuration problems

Full commit hash
9998a9ef28a426300607de34534101935201f6fa
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
74
Open commit View diff
74
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
75
array_diff() {
Open commit View diff
75 array_diff() {
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
76
  # https://stackoverflow.com/questions/2312762, Alex Offshore
Open commit View diff
76 # https://stackoverflow.com/questions/2312762, Alex Offshore
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
77
  eval local ARR1=\(\"\${$2[@]}\"\)
Open commit View diff
77 eval local ARR1=\(\"\${$2[@]}\"\)
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
78
  eval local ARR2=\(\"\${$3[@]}\"\)
Open commit View diff
78 eval local ARR2=\(\"\${$3[@]}\"\)
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
79
  local IFS=$'\n'
Open commit View diff
79 local IFS=$'\n'
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
80
  mapfile -t $1 < <(comm -23 <(echo "${ARR1[*]}" | sort) <(echo "${ARR2[*]}" | sort))
Open commit View diff
80 mapfile -t $1 < <(comm -23 <(echo "${ARR1[*]}" | sort) <(echo "${ARR2[*]}" | sort))
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
81
}
Open commit View diff
81 }
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
82
Open commit View diff
82
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
83
progress() {
Open commit View diff
83 progress() {
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
84
  SERVICE=${1}
Open commit View diff
84 SERVICE=${1}
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
85
  TOTAL=${2}
Open commit View diff
85 TOTAL=${2}
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
86
  CURRENT=${3}
Open commit View diff
86 CURRENT=${3}
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
87
  DIFF=${4}
Open commit View diff
87 DIFF=${4}
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
88
  [[ -z ${DIFF} ]] && DIFF=0
Open commit View diff
88 [[ -z ${DIFF} ]] && DIFF=0
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
89
  [[ -z ${TOTAL} || -z ${CURRENT} ]] && return
Open commit View diff
89 [[ -z ${TOTAL} || -z ${CURRENT} ]] && return
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
90
  [[ ${CURRENT} -gt ${TOTAL} ]] && return
Open commit View diff
90 [[ ${CURRENT} -gt ${TOTAL} ]] && return
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
91
  [[ ${CURRENT} -lt 0 ]] && CURRENT=0
Open commit View diff
91 [[ ${CURRENT} -lt 0 ]] && CURRENT=0
andryyy almost 9 years ago f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
92
  PERCENT=$(( 200 * ${CURRENT} / ${TOTAL} % 2 + 100 * ${CURRENT} / ${TOTAL} ))
Open commit View diff
92 PERCENT=$(( 200 * ${CURRENT} / ${TOTAL} % 2 + 100 * ${CURRENT} / ${TOTAL} ))
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
93
  ${REDIS_CMDLINE} LPUSH WATCHDOG_LOG "{\"time\":\"$(date +%s)\",\"service\":\"${SERVICE}\",\"lvl\":\"${PERCENT}\",\"hpnow\":\"${CURRENT}\",\"hptotal\":\"${TOTAL}\",\"hpdiff\":\"${DIFF}\"}" > /dev/null
Open commit View diff
93 ${REDIS_CMDLINE} LPUSH WATCHDOG_LOG "{\"time\":\"$(date +%s)\",\"service\":\"${SERVICE}\",\"lvl\":\"${PERCENT}\",\"hpnow\":\"${CURRENT}\",\"hptotal\":\"${TOTAL}\",\"hpdiff\":\"${DIFF}\"}" > /dev/null
andre.peters over 8 years ago 2519738

Various changes...

Full commit hash
25197380946162b35b052c325af52bcc2708d69c
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
94
  log_msg "${SERVICE} health level: ${PERCENT}% (${CURRENT}/${TOTAL}), health trend: ${DIFF}" no_redis
Open commit View diff
94 log_msg "${SERVICE} health level: ${PERCENT}% (${CURRENT}/${TOTAL}), health trend: ${DIFF}" no_redis
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
95
  # Return 10 to indicate a dead service
Open commit View diff
95 # Return 10 to indicate a dead service
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
96
  [ ${CURRENT} -le 0 ] && return 10
Open commit View diff
96 [ ${CURRENT} -le 0 ] && return 10
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
97
}
Open commit View diff
97 }
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
98
Open commit View diff
98
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
99
log_msg() {
Open commit View diff
99 log_msg() {
andre.peters over 8 years ago 2519738

Various changes...

Full commit hash
25197380946162b35b052c325af52bcc2708d69c
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
100
  if [[ ${2} != "no_redis" ]]; then
Open commit View diff
100 if [[ ${2} != "no_redis" ]]; then
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
101
    ${REDIS_CMDLINE} LPUSH WATCHDOG_LOG "{\"time\":\"$(date +%s)\",\"message\":\"$(printf '%s' "${1}" | \
Open commit View diff
101 ${REDIS_CMDLINE} LPUSH WATCHDOG_LOG "{\"time\":\"$(date +%s)\",\"message\":\"$(printf '%s' "${1}" | \
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
102
      tr '\r\n%&;$"_[]{}-' ' ')\"}" > /dev/null
Open commit View diff
102 tr '\r\n%&;$"_[]{}-' ' ')\"}" > /dev/null
andre.peters over 8 years ago 2519738

Various changes...

Full commit hash
25197380946162b35b052c325af52bcc2708d69c
Author
andre.peters <[email protected]>
Date
over 8 years ago
Selected line
103
  fi
Open commit View diff
103 fi
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
104
  echo $(date) $(printf '%s\n' "${1}")
Open commit View diff
104 echo $(date) $(printf '%s\n' "${1}")
same change 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
105
}
Open commit View diff
105 }
same change 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
106
Open commit View diff
106
Felix Kleinekathöfer over 3 years ago 5897b97

Renamed mail notification method for watchdog to be more general

Full commit hash
5897b97065cea3b40fc432450ca89dcf7f8f7611
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
107
function notify_error() {
Open commit View diff
107 function notify_error() {
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
108
  # Check if one of the notification options is enabled
Open commit View diff
108 # Check if one of the notification options is enabled
same change 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
109
  [[ -z ${WATCHDOG_NOTIFY_EMAIL} ]] && [[ -z ${WATCHDOG_NOTIFY_WEBHOOK} ]] && return 0
Open commit View diff
109 [[ -z ${WATCHDOG_NOTIFY_EMAIL} ]] && [[ -z ${WATCHDOG_NOTIFY_WEBHOOK} ]] && return 0
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
110
  THROTTLE=
Open commit View diff
110 THROTTLE=
andryyy almost 9 years ago fc18d15

[Compose, DockerAPI, Web, Watchdog] Watchdog may send notification mails (todo: docs), DockerAPI via Flesk for limited access

Full commit hash
fc18d153cdc5d93f254b43a572d190d360ca7a01
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
111
  [[ -z ${1} ]] && return 1
Open commit View diff
111 [[ -z ${1} ]] && return 1
andryyy about 6 years ago 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
112
  # If exists, body will be the content of "/tmp/${1}", even if ${2} is set
Open commit View diff
112 # If exists, body will be the content of "/tmp/${1}", even if ${2} is set
andryyy over 7 years ago c9cf347

[Update] Remove obsolete parameters

Full commit hash
c9cf3476a0366ed0f119d0965d504c0496ce8547
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
113
  [[ -z ${2} ]] && BODY="Service was restarted on $(date), please check your mailcow installation." || BODY="$(date) - ${2}"
Open commit View diff
113 [[ -z ${2} ]] && BODY="Service was restarted on $(date), please check your mailcow installation." || BODY="$(date) - ${2}"
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
114
  # If exists, mail will be throttled by argument in seconds
Open commit View diff
114 # If exists, mail will be throttled by argument in seconds
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
115
  [[ ! -z ${3} ]] && THROTTLE=${3}
Open commit View diff
115 [[ ! -z ${3} ]] && THROTTLE=${3}
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
116
  if [[ ! -z ${THROTTLE} ]]; then
Open commit View diff
116 if [[ ! -z ${THROTTLE} ]]; then
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
117
    TTL_LEFT="$(${REDIS_CMDLINE} TTL THROTTLE_${1} 2> /dev/null)"
Open commit View diff
117 TTL_LEFT="$(${REDIS_CMDLINE} TTL THROTTLE_${1} 2> /dev/null)"
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
118
    if [[ "${TTL_LEFT}" == "-2" ]]; then
Open commit View diff
118 if [[ "${TTL_LEFT}" == "-2" ]]; then
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
119
      # Delay key not found, setting a delay key now
Open commit View diff
119 # Delay key not found, setting a delay key now
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
120
      ${REDIS_CMDLINE} SET THROTTLE_${1} 1 EX ${THROTTLE}
Open commit View diff
120 ${REDIS_CMDLINE} SET THROTTLE_${1} 1 EX ${THROTTLE}
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
121
    else
Open commit View diff
121 else
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
122
      log_msg "Not sending notification email now, blocked for ${TTL_LEFT} seconds..."
Open commit View diff
122 log_msg "Not sending notification email now, blocked for ${TTL_LEFT} seconds..."
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
123
      return 1
Open commit View diff
123 return 1
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
124
    fi
Open commit View diff
124 fi
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
125
  fi
Open commit View diff
125 fi
andryyy over 7 years ago c9cf347

[Update] Remove obsolete parameters

Full commit hash
c9cf3476a0366ed0f119d0965d504c0496ce8547
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
126
  WATCHDOG_NOTIFY_EMAIL=$(echo "${WATCHDOG_NOTIFY_EMAIL}" | sed 's/"//;s|"$||')
Open commit View diff
126 WATCHDOG_NOTIFY_EMAIL=$(echo "${WATCHDOG_NOTIFY_EMAIL}" | sed 's/"//;s|"$||')
andryyy about 7 years ago 0d7681d

[Watchdog] Fix broken mail with more than one rcpt in some cases

Full commit hash
0d7681d0a5fabea512b186029d5678dcecb1a952
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
127
  # Some exceptions for subject and body formats
Open commit View diff
127 # Some exceptions for subject and body formats
andryyy about 7 years ago 7145c38

[Watchdog] Minor text changes and send whois report of banned IP

Full commit hash
7145c380b0bcd60741ca4c6ef93503f0e1f4c56d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
128
  if [[ ${1} == "fail2ban" ]]; then
Open commit View diff
128 if [[ ${1} == "fail2ban" ]]; then
andryyy about 7 years ago 0d7681d

[Watchdog] Fix broken mail with more than one rcpt in some cases

Full commit hash
0d7681d0a5fabea512b186029d5678dcecb1a952
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
129
    SUBJECT="${BODY}"
Open commit View diff
129 SUBJECT="${BODY}"
same change 0d7681d

[Watchdog] Fix broken mail with more than one rcpt in some cases

Full commit hash
0d7681d0a5fabea512b186029d5678dcecb1a952
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
130
    BODY="Please see netfilter-mailcow for more details and triggered rules."
Open commit View diff
130 BODY="Please see netfilter-mailcow for more details and triggered rules."
same change 0d7681d

[Watchdog] Fix broken mail with more than one rcpt in some cases

Full commit hash
0d7681d0a5fabea512b186029d5678dcecb1a952
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
131
  else
Open commit View diff
131 else
Valentin Brandner over 5 years ago 3255c08

[Update, Config] Add subject for watchdog emails (#4027)

Full commit hash
3255c08813b2ce6c30b03898d45b522ad8f75622
Author
Valentin Brandner <[email protected]>
Date
over 5 years ago
Selected line
132
    SUBJECT="${WATCHDOG_SUBJECT}: ${1}"
Open commit View diff
132 SUBJECT="${WATCHDOG_SUBJECT}: ${1}"
andryyy about 7 years ago 0d7681d

[Watchdog] Fix broken mail with more than one rcpt in some cases

Full commit hash
0d7681d0a5fabea512b186029d5678dcecb1a952
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
133
  fi
Open commit View diff
133 fi
Felix Kleinekathöfer over 3 years ago fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
134
Open commit View diff
134
Felix Kleinekathöfer over 3 years ago 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
135
  # Send mail notification if enabled
Open commit View diff
135 # Send mail notification if enabled
Felix Kleinekathöfer over 3 years ago fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
136
  if [[ ! -z ${WATCHDOG_NOTIFY_EMAIL} ]]; then
Open commit View diff
136 if [[ ! -z ${WATCHDOG_NOTIFY_EMAIL} ]]; then
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
137
    IFS=',' read -r -a MAIL_RCPTS <<< "${WATCHDOG_NOTIFY_EMAIL}"
Open commit View diff
137 IFS=',' read -r -a MAIL_RCPTS <<< "${WATCHDOG_NOTIFY_EMAIL}"
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
138
    for rcpt in "${MAIL_RCPTS[@]}"; do
Open commit View diff
138 for rcpt in "${MAIL_RCPTS[@]}"; do
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
139
      RCPT_DOMAIN=
Open commit View diff
139 RCPT_DOMAIN=
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
140
      RCPT_MX=
Open commit View diff
140 RCPT_MX=
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
141
      RCPT_DOMAIN=$(echo ${rcpt} | awk -F @ {'print $NF'})
Open commit View diff
141 RCPT_DOMAIN=$(echo ${rcpt} | awk -F @ {'print $NF'})
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
142
      CHECK_FOR_VALID_MX=$(dig +short ${RCPT_DOMAIN} mx)
Open commit View diff
142 CHECK_FOR_VALID_MX=$(dig +short ${RCPT_DOMAIN} mx)
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
143
      if [[ -z ${CHECK_FOR_VALID_MX} ]]; then
Open commit View diff
143 if [[ -z ${CHECK_FOR_VALID_MX} ]]; then
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
144
        log_msg "Cannot determine MX for ${rcpt}, skipping email notification..."
Open commit View diff
144 log_msg "Cannot determine MX for ${rcpt}, skipping email notification..."
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
145
        return 1
Open commit View diff
145 return 1
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
146
      fi
Open commit View diff
146 fi
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
147
      [ -f "/tmp/${1}" ] && BODY="/tmp/${1}"
Open commit View diff
147 [ -f "/tmp/${1}" ] && BODY="/tmp/${1}"
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
148
      timeout 10s ./smtp-cli --missing-modules-ok \
Open commit View diff
148 timeout 10s ./smtp-cli --missing-modules-ok \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
149
        "${SMTP_VERBOSE}" \
Open commit View diff
149 "${SMTP_VERBOSE}" \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
150
        --charset=UTF-8 \
Open commit View diff
150 --charset=UTF-8 \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
151
        --subject="${SUBJECT}" \
Open commit View diff
151 --subject="${SUBJECT}" \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
152
        --body-plain="${BODY}" \
Open commit View diff
152 --body-plain="${BODY}" \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
153
        --add-header="X-Priority: 1" \
Open commit View diff
153 --add-header="X-Priority: 1" \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
154
        --to=${rcpt} \
Open commit View diff
154 --to=${rcpt} \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
155
        --from="watchdog@${MAILCOW_HOSTNAME}" \
Open commit View diff
155 --from="watchdog@${MAILCOW_HOSTNAME}" \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
156
        --hello-host=${MAILCOW_HOSTNAME} \
Open commit View diff
156 --hello-host=${MAILCOW_HOSTNAME} \
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
157
        --ipv4
Open commit View diff
157 --ipv4
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
158
      if [[ $? -eq 1 ]]; then # exit code 1 is fine
Open commit View diff
158 if [[ $? -eq 1 ]]; then # exit code 1 is fine
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
159
        log_msg "Sent notification email to ${rcpt}"
Open commit View diff
159 log_msg "Sent notification email to ${rcpt}"
Peter over 4 years ago 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
160
      else
Open commit View diff
160 else
Felix Kleinekathöfer over 3 years ago fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
161
        if [[ "${SMTP_VERBOSE}" == "" ]]; then
Open commit View diff
161 if [[ "${SMTP_VERBOSE}" == "" ]]; then
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
162
          log_msg "Error while sending notification email to ${rcpt}. You can enable verbose logging by setting 'WATCHDOG_VERBOSE=y' in mailcow.conf."
Open commit View diff
162 log_msg "Error while sending notification email to ${rcpt}. You can enable verbose logging by setting 'WATCHDOG_VERBOSE=y' in mailcow.conf."
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
163
        else
Open commit View diff
163 else
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
164
          log_msg "Error while sending notification email to ${rcpt}."
Open commit View diff
164 log_msg "Error while sending notification email to ${rcpt}."
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
165
        fi
Open commit View diff
165 fi
Peter over 4 years ago 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
166
      fi
Open commit View diff
166 fi
Felix Kleinekathöfer over 3 years ago fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
167
    done
Open commit View diff
167 done
same change fe8131f

Only sent mail if enabled

Full commit hash
fe8131f7430ec3d2b97793587bcbf88bd058a67a
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
168
  fi
Open commit View diff
168 fi
Felix Kleinekathöfer over 3 years ago 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
169
Open commit View diff
169
same change 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
170
  # Send webhook notification if enabled
Open commit View diff
170 # Send webhook notification if enabled
same change 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
171
  if [[ ! -z ${WATCHDOG_NOTIFY_WEBHOOK} ]]; then
Open commit View diff
171 if [[ ! -z ${WATCHDOG_NOTIFY_WEBHOOK} ]]; then
same change 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
172
    if [[ -z ${WATCHDOG_NOTIFY_WEBHOOK_BODY} ]]; then
Open commit View diff
172 if [[ -z ${WATCHDOG_NOTIFY_WEBHOOK_BODY} ]]; then
same change 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
173
      log_msg "No webhook body set, skipping webhook notification..."
Open commit View diff
173 log_msg "No webhook body set, skipping webhook notification..."
same change 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
174
      return 1
Open commit View diff
174 return 1
Peter over 4 years ago 6bf70cf

[Watchdog] Add Watchdog verbose logging (#4299)

Full commit hash
6bf70cf84621be2926f1550cfc71bfbe4ef08c5f
Author
Peter <[email protected]>
Date
over 4 years ago
Selected line
175
    fi
Open commit View diff
175 fi
Felix Kleinekathöfer over 3 years ago 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
176
Open commit View diff
176
Marcel Schuster over 2 years ago 914a820

Watchdog: escape subject and body for webhooks

Full commit hash
914a8204d44be05d552ea8a9ad80ed365a749648
Author
Marcel Schuster <[email protected]>
Date
over 2 years ago
Selected line
177
    # Escape subject and body (https://stackoverflow.com/a/2705678)
Open commit View diff
177 # Escape subject and body (https://stackoverflow.com/a/2705678)
same change 914a820

Watchdog: escape subject and body for webhooks

Full commit hash
914a8204d44be05d552ea8a9ad80ed365a749648
Author
Marcel Schuster <[email protected]>
Date
over 2 years ago
Selected line
178
    ESCAPED_SUBJECT=$(echo ${SUBJECT} | sed -e 's/[\/&]/\\&/g')
Open commit View diff
178 ESCAPED_SUBJECT=$(echo ${SUBJECT} | sed -e 's/[\/&]/\\&/g')
same change 914a820

Watchdog: escape subject and body for webhooks

Full commit hash
914a8204d44be05d552ea8a9ad80ed365a749648
Author
Marcel Schuster <[email protected]>
Date
over 2 years ago
Selected line
179
    ESCAPED_BODY=$(echo ${BODY} | sed -e 's/[\/&]/\\&/g')
Open commit View diff
179 ESCAPED_BODY=$(echo ${BODY} | sed -e 's/[\/&]/\\&/g')
same change 914a820

Watchdog: escape subject and body for webhooks

Full commit hash
914a8204d44be05d552ea8a9ad80ed365a749648
Author
Marcel Schuster <[email protected]>
Date
over 2 years ago
Selected line
180
Open commit View diff
180
Felix Kleinekathöfer over 3 years ago b6b399a

Fixed POST to webhook

Full commit hash
b6b399a590dc3da14ac51d976ed59d54be530ad1
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
181
    # Replace subject and body placeholders
Open commit View diff
181 # Replace subject and body placeholders
Marcel Schuster over 2 years ago 914a820

Watchdog: escape subject and body for webhooks

Full commit hash
914a8204d44be05d552ea8a9ad80ed365a749648
Author
Marcel Schuster <[email protected]>
Date
over 2 years ago
Selected line
182
    WEBHOOK_BODY=$(echo ${WATCHDOG_NOTIFY_WEBHOOK_BODY} | sed -e "s/\$SUBJECT\|\${SUBJECT}/$ESCAPED_SUBJECT/g" -e "s/\$BODY\|\${BODY}/$ESCAPED_BODY/g")
Open commit View diff
182 WEBHOOK_BODY=$(echo ${WATCHDOG_NOTIFY_WEBHOOK_BODY} | sed -e "s/\$SUBJECT\|\${SUBJECT}/$ESCAPED_SUBJECT/g" -e "s/\$BODY\|\${BODY}/$ESCAPED_BODY/g")
same change 914a820

Watchdog: escape subject and body for webhooks

Full commit hash
914a8204d44be05d552ea8a9ad80ed365a749648
Author
Marcel Schuster <[email protected]>
Date
over 2 years ago
Selected line
183
Open commit View diff
183
Felix Kleinekathöfer over 3 years ago b6b399a

Fixed POST to webhook

Full commit hash
b6b399a590dc3da14ac51d976ed59d54be530ad1
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
184
    # POST to webhook
Open commit View diff
184 # POST to webhook
FreddleSpl0it over 2 years ago 218ba69

[Watchdog] add curl verbose & use | as sed delimiter

Full commit hash
218ba6950187c2648769e8eeef0c3529023cecd7
Author
FreddleSpl0it <[email protected]>
Date
over 2 years ago
Selected line
185
    curl -X POST -H "Content-Type: application/json" ${CURL_VERBOSE} -d "${WEBHOOK_BODY}" ${WATCHDOG_NOTIFY_WEBHOOK}
Open commit View diff
185 curl -X POST -H "Content-Type: application/json" ${CURL_VERBOSE} -d "${WEBHOOK_BODY}" ${WATCHDOG_NOTIFY_WEBHOOK}
Felix Kleinekathöfer over 3 years ago 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
186
Open commit View diff
186
Felix Kleinekathöfer over 3 years ago b6b399a

Fixed POST to webhook

Full commit hash
b6b399a590dc3da14ac51d976ed59d54be530ad1
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
187
    log_msg "Sent notification using webhook"
Open commit View diff
187 log_msg "Sent notification using webhook"
Felix Kleinekathöfer over 3 years ago 3e69304

Send webhook

Full commit hash
3e69304f0f9c22abd8b777d66c8a1099a3d2ef12
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
188
  fi
Open commit View diff
188 fi
andryyy almost 9 years ago fc18d15

[Compose, DockerAPI, Web, Watchdog] Watchdog may send notification mails (todo: docs), DockerAPI via Flesk for limited access

Full commit hash
fc18d153cdc5d93f254b43a572d190d360ca7a01
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
189
}
Open commit View diff
189 }
same change fc18d15

[Compose, DockerAPI, Web, Watchdog] Watchdog may send notification mails (todo: docs), DockerAPI via Flesk for limited access

Full commit hash
fc18d153cdc5d93f254b43a572d190d360ca7a01
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
190
Open commit View diff
190
andryyy almost 9 years ago df5c79c

Fixes for watchdog!

Full commit hash
df5c79c3f11007f00fa0f3f35bf1a8515de78bdc
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
191
get_container_ip() {
Open commit View diff
191 get_container_ip() {
same change df5c79c

Fixes for watchdog!

Full commit hash
df5c79c3f11007f00fa0f3f35bf1a8515de78bdc
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
192
  # ${1} is container
Open commit View diff
192 # ${1} is container
André about 8 years ago a38424d

[Watchdog] Find exact matches for service names, shuffle scaled services, check if ip is in mailcow network

Full commit hash
a38424d3adf3496bdd94b841a815a02eb4c520f3
Author
André <[email protected]>
Date
about 8 years ago
Selected line
193
  CONTAINER_ID=()
Open commit View diff
193 CONTAINER_ID=()
André almost 8 years ago c9554ca

[Compose] Update watchdog image

Full commit hash
c9554ca02291e64e56a786217de8d4b34b25544d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
194
  CONTAINER_IPS=()
Open commit View diff
194 CONTAINER_IPS=()
andryyy almost 9 years ago df5c79c

Fixes for watchdog!

Full commit hash
df5c79c3f11007f00fa0f3f35bf1a8515de78bdc
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
195
  CONTAINER_IP=
Open commit View diff
195 CONTAINER_IP=
andryyy almost 9 years ago f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
196
  LOOP_C=1
Open commit View diff
196 LOOP_C=1
same change f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
197
  until [[ ${CONTAINER_IP} =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]] || [[ ${LOOP_C} -gt 5 ]]; do
Open commit View diff
197 until [[ ${CONTAINER_IP} =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]] || [[ ${LOOP_C} -gt 5 ]]; do
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
198
    if [ ${IP_BY_DOCKER_API} -eq 0 ]; then
Open commit View diff
198 if [ ${IP_BY_DOCKER_API} -eq 0 ]; then
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
199
      CONTAINER_IP=$(dig a "${1}" +short)
Open commit View diff
199 CONTAINER_IP=$(dig a "${1}" +short)
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
200
    else
Open commit View diff
200 else
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
201
      sleep 0.5
Open commit View diff
201 sleep 0.5
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
202
      # get long container id for exact match
Open commit View diff
202 # get long container id for exact match
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
203
      CONTAINER_ID=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring == \"${1}\") | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id"))
Open commit View diff
203 CONTAINER_ID=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring == \"${1}\") | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id"))
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
204
      # returned id can have multiple elements (if scaled), shuffle for random test
Open commit View diff
204 # returned id can have multiple elements (if scaled), shuffle for random test
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
205
      CONTAINER_ID=($(printf "%s\n" "${CONTAINER_ID[@]}" | shuf))
Open commit View diff
205 CONTAINER_ID=($(printf "%s\n" "${CONTAINER_ID[@]}" | shuf))
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
206
      if [[ ! -z ${CONTAINER_ID} ]]; then
Open commit View diff
206 if [[ ! -z ${CONTAINER_ID} ]]; then
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
207
        for matched_container in "${CONTAINER_ID[@]}"; do
Open commit View diff
207 for matched_container in "${CONTAINER_ID[@]}"; do
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
208
          CONTAINER_IPS=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${matched_container}/json | jq -r '.NetworkSettings.Networks[].IPAddress'))
Open commit View diff
208 CONTAINER_IPS=($(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${matched_container}/json | jq -r '.NetworkSettings.Networks[].IPAddress'))
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
209
          for ip_match in "${CONTAINER_IPS[@]}"; do
Open commit View diff
209 for ip_match in "${CONTAINER_IPS[@]}"; do
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
210
            # grep will do nothing if one of these vars is empty
Open commit View diff
210 # grep will do nothing if one of these vars is empty
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
211
            [[ -z ${ip_match} ]] && continue
Open commit View diff
211 [[ -z ${ip_match} ]] && continue
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
212
            [[ -z ${IPV4_NETWORK} ]] && continue
Open commit View diff
212 [[ -z ${IPV4_NETWORK} ]] && continue
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
213
            # only return ips that are part of our network
Open commit View diff
213 # only return ips that are part of our network
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
214
            if ! grep -q ${IPV4_NETWORK} <(echo ${ip_match}); then
Open commit View diff
214 if ! grep -q ${IPV4_NETWORK} <(echo ${ip_match}); then
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
215
              continue
Open commit View diff
215 continue
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
216
            else
Open commit View diff
216 else
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
217
              CONTAINER_IP=${ip_match}
Open commit View diff
217 CONTAINER_IP=${ip_match}
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
218
              break
Open commit View diff
218 break
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
219
            fi
Open commit View diff
219 fi
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
220
          done
Open commit View diff
220 done
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
221
          [[ ! -z ${CONTAINER_IP} ]] && break
Open commit View diff
221 [[ ! -z ${CONTAINER_IP} ]] && break
André almost 8 years ago c9554ca

[Compose] Update watchdog image

Full commit hash
c9554ca02291e64e56a786217de8d4b34b25544d
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
222
        done
Open commit View diff
222 done
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
223
      fi
Open commit View diff
223 fi
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
224
    fi
Open commit View diff
224 fi
andryyy almost 9 years ago f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
225
    LOOP_C=$((LOOP_C + 1))
Open commit View diff
225 LOOP_C=$((LOOP_C + 1))
andryyy almost 9 years ago df5c79c

Fixes for watchdog!

Full commit hash
df5c79c3f11007f00fa0f3f35bf1a8515de78bdc
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
226
  done
Open commit View diff
226 done
andryyy almost 9 years ago f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
227
  [[ ${LOOP_C} -gt 5 ]] && echo 240.0.0.0 || echo ${CONTAINER_IP}
Open commit View diff
227 [[ ${LOOP_C} -gt 5 ]] && echo 240.0.0.0 || echo ${CONTAINER_IP}
andryyy almost 9 years ago df5c79c

Fixes for watchdog!

Full commit hash
df5c79c3f11007f00fa0f3f35bf1a8515de78bdc
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
228
}
Open commit View diff
228 }
same change df5c79c

Fixes for watchdog!

Full commit hash
df5c79c3f11007f00fa0f3f35bf1a8515de78bdc
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
229
Open commit View diff
229
andryyy over 6 years ago ced6867

[Watchdog] Fix ipv6 config check

Full commit hash
ced6867a4e2839953dcbbea10aaa9392ae5cded9
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
230
# One-time check
Open commit View diff
230 # One-time check
same change ced6867

[Watchdog] Fix ipv6 config check

Full commit hash
ced6867a4e2839953dcbbea10aaa9392ae5cded9
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
231
if grep -qi "$(echo ${IPV6_NETWORK} | cut -d: -f1-3)" <<< "$(ip a s)"; then
Open commit View diff
231 if grep -qi "$(echo ${IPV6_NETWORK} | cut -d: -f1-3)" <<< "$(ip a s)"; then
same change ced6867

[Watchdog] Fix ipv6 config check

Full commit hash
ced6867a4e2839953dcbbea10aaa9392ae5cded9
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
232
  if [[ -z "$(get_ipv6)" ]]; then
Open commit View diff
232 if [[ -z "$(get_ipv6)" ]]; then
Felix Kleinekathöfer over 3 years ago 5897b97

Renamed mail notification method for watchdog to be more general

Full commit hash
5897b97065cea3b40fc432450ca89dcf7f8f7611
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
233
    notify_error "ipv6-config" "enable_ipv6 is true in docker-compose.yml, but an IPv6 link could not be established. Please verify your IPv6 connection."
Open commit View diff
233 notify_error "ipv6-config" "enable_ipv6 is true in docker-compose.yml, but an IPv6 link could not be established. Please verify your IPv6 connection."
andryyy over 6 years ago ced6867

[Watchdog] Fix ipv6 config check

Full commit hash
ced6867a4e2839953dcbbea10aaa9392ae5cded9
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
234
  fi
Open commit View diff
234 fi
same change ced6867

[Watchdog] Fix ipv6 config check

Full commit hash
ced6867a4e2839953dcbbea10aaa9392ae5cded9
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
235
fi
Open commit View diff
235 fi
same change ced6867

[Watchdog] Fix ipv6 config check

Full commit hash
ced6867a4e2839953dcbbea10aaa9392ae5cded9
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
236
Open commit View diff
236
andryyy over 6 years ago f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
237
external_checks() {
Open commit View diff
237 external_checks() {
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
238
  err_count=0
Open commit View diff
238 err_count=0
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
239
  diff_c=0
Open commit View diff
239 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
240
  THRESHOLD=${EXTERNAL_CHECKS_THRESHOLD}
Open commit View diff
240 THRESHOLD=${EXTERNAL_CHECKS_THRESHOLD}
andryyy over 6 years ago f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
241
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
241 # Reduce error count by 2 after restarting an unhealthy container
DerLinkman over 1 year ago 2f93f1d

os: fixes for newer mariadb-client versions (especially on alpine 3.21)

Full commit hash
2f93f1d0c5b9642190c1358a03038be4c3f4bb43
Author
DerLinkman <[email protected]>
Date
over 1 year ago
Selected line
242
  GUID=$(mariadb --skip-ssl -u${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT version FROM versions WHERE application = 'GUID'" -BN)
Open commit View diff
242 GUID=$(mariadb --skip-ssl -u${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT version FROM versions WHERE application = 'GUID'" -BN)
andryyy over 6 years ago f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
243
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
243 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
244
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
244 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
245
    err_c_cur=${err_count}
Open commit View diff
245 err_c_cur=${err_count}
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
246
    CHECK_REPONSE="$(curl --connect-timeout 3 -m 10 -4 -s https://checks.mailcow.email -X POST -dguid=${GUID} 2> /dev/null)"
Open commit View diff
246 CHECK_REPONSE="$(curl --connect-timeout 3 -m 10 -4 -s https://checks.mailcow.email -X POST -dguid=${GUID} 2> /dev/null)"
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
247
    if [[ ! -z "${CHECK_REPONSE}" ]] && [[ "$(echo ${CHECK_REPONSE} | jq -r .response)" == "critical" ]]; then
Open commit View diff
247 if [[ ! -z "${CHECK_REPONSE}" ]] && [[ "$(echo ${CHECK_REPONSE} | jq -r .response)" == "critical" ]]; then
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
248
      echo ${CHECK_REPONSE} | jq -r .out > /tmp/external_checks
Open commit View diff
248 echo ${CHECK_REPONSE} | jq -r .out > /tmp/external_checks
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
249
      err_count=$(( ${err_count} + 1 ))
Open commit View diff
249 err_count=$(( ${err_count} + 1 ))
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
250
    fi
Open commit View diff
250 fi
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
251
    CHECK_REPONSE6="$(curl --connect-timeout 3 -m 10 -6 -s https://checks.mailcow.email -X POST -dguid=${GUID} 2> /dev/null)"
Open commit View diff
251 CHECK_REPONSE6="$(curl --connect-timeout 3 -m 10 -6 -s https://checks.mailcow.email -X POST -dguid=${GUID} 2> /dev/null)"
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
252
    if [[ ! -z "${CHECK_REPONSE6}" ]] && [[ "$(echo ${CHECK_REPONSE6} | jq -r .response)" == "critical" ]]; then
Open commit View diff
252 if [[ ! -z "${CHECK_REPONSE6}" ]] && [[ "$(echo ${CHECK_REPONSE6} | jq -r .response)" == "critical" ]]; then
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
253
      echo ${CHECK_REPONSE} | jq -r .out > /tmp/external_checks
Open commit View diff
253 echo ${CHECK_REPONSE} | jq -r .out > /tmp/external_checks
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
254
      err_count=$(( ${err_count} + 1 ))
Open commit View diff
254 err_count=$(( ${err_count} + 1 ))
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
255
    fi
Open commit View diff
255 fi
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
256
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
256 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
257
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
257 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
258
    progress "External checks" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
258 progress "External checks" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
259
    if [[ $? == 10 ]]; then
Open commit View diff
259 if [[ $? == 10 ]]; then
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
260
      diff_c=0
Open commit View diff
260 diff_c=0
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
261
      sleep 60
Open commit View diff
261 sleep 60
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
262
    else
Open commit View diff
262 else
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
263
      diff_c=0
Open commit View diff
263 diff_c=0
andryyy over 5 years ago c79aae2

[Watchdog] Longer sleep for open relay check

Full commit hash
c79aae2b1ebb66bed8a2ab5c2f28584ca578c59e
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
264
      sleep $(( ( RANDOM % 20 ) + 1800 ))
Open commit View diff
264 sleep $(( ( RANDOM % 20 ) + 1800 ))
andryyy over 6 years ago f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
265
    fi
Open commit View diff
265 fi
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
266
  done
Open commit View diff
266 done
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
267
  return 1
Open commit View diff
267 return 1
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
268
}
Open commit View diff
268 }
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
269
Open commit View diff
269
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
270
nginx_checks() {
Open commit View diff
270 nginx_checks() {
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
271
  err_count=0
Open commit View diff
271 err_count=0
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
272
  diff_c=0
Open commit View diff
272 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
273
  THRESHOLD=${NGINX_THRESHOLD}
Open commit View diff
273 THRESHOLD=${NGINX_THRESHOLD}
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
274
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
274 # Reduce error count by 2 after restarting an unhealthy container
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
275
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
275 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
276
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
276 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
277
    touch /tmp/nginx-mailcow; echo "$(tail -50 /tmp/nginx-mailcow)" > /tmp/nginx-mailcow
Open commit View diff
277 touch /tmp/nginx-mailcow; echo "$(tail -50 /tmp/nginx-mailcow)" > /tmp/nginx-mailcow
andryyy almost 9 years ago f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
278
    host_ip=$(get_container_ip nginx-mailcow)
Open commit View diff
278 host_ip=$(get_container_ip nginx-mailcow)
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
279
    err_c_cur=${err_count}
Open commit View diff
279 err_c_cur=${err_count}
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
280
    /usr/lib/nagios/plugins/check_http -4 -H ${host_ip} -u / -p 8081 2>> /tmp/nginx-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
280 /usr/lib/nagios/plugins/check_http -4 -H ${host_ip} -u / -p 8081 2>> /tmp/nginx-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
281
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
281 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
282
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
282 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
283
    progress "Nginx" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
283 progress "Nginx" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
284
    if [[ $? == 10 ]]; then
Open commit View diff
284 if [[ $? == 10 ]]; then
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
285
      diff_c=0
Open commit View diff
285 diff_c=0
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
286
      sleep 1
Open commit View diff
286 sleep 1
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
287
    else
Open commit View diff
287 else
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
288
      diff_c=0
Open commit View diff
288 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
289
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
289 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
290
    fi
Open commit View diff
290 fi
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
291
  done
Open commit View diff
291 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
292
  return 1
Open commit View diff
292 return 1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
293
}
Open commit View diff
293 }
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
294
Open commit View diff
294
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
295
unbound_checks() {
Open commit View diff
295 unbound_checks() {
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
296
  err_count=0
Open commit View diff
296 err_count=0
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
297
  diff_c=0
Open commit View diff
297 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
298
  THRESHOLD=${UNBOUND_THRESHOLD}
Open commit View diff
298 THRESHOLD=${UNBOUND_THRESHOLD}
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
299
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
299 # Reduce error count by 2 after restarting an unhealthy container
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
300
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
300 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
301
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
301 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
302
    touch /tmp/unbound-mailcow; echo "$(tail -50 /tmp/unbound-mailcow)" > /tmp/unbound-mailcow
Open commit View diff
302 touch /tmp/unbound-mailcow; echo "$(tail -50 /tmp/unbound-mailcow)" > /tmp/unbound-mailcow
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
303
    host_ip=$(get_container_ip unbound-mailcow)
Open commit View diff
303 host_ip=$(get_container_ip unbound-mailcow)
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
304
    err_c_cur=${err_count}
Open commit View diff
304 err_c_cur=${err_count}
maxi322 11 months ago 5e66ffa

watchdog: use dig instead of check_dns (#6685)

Full commit hash
5e66ffa36604e8c41bb23c7606ad951ed888b6b4
Author
maxi322 <[email protected]>
Date
11 months ago
Selected line
305
    /usr/lib/mailcow/check_dns.sh -s ${host_ip} -H stackoverflow.com 2>> /tmp/unbound-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
305 /usr/lib/mailcow/check_dns.sh -s ${host_ip} -H stackoverflow.com 2>> /tmp/unbound-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
306
    DNSSEC=$(dig com +dnssec | egrep 'flags:.+ad')
Open commit View diff
306 DNSSEC=$(dig com +dnssec | egrep 'flags:.+ad')
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
307
    if [[ -z ${DNSSEC} ]]; then
Open commit View diff
307 if [[ -z ${DNSSEC} ]]; then
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
308
      echo "DNSSEC failure" 2>> /tmp/unbound-mailcow 1>&2
Open commit View diff
308 echo "DNSSEC failure" 2>> /tmp/unbound-mailcow 1>&2
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
309
      err_count=$(( ${err_count} + 1))
Open commit View diff
309 err_count=$(( ${err_count} + 1))
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
310
    else
Open commit View diff
310 else
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
311
      echo "DNSSEC check succeeded" 2>> /tmp/unbound-mailcow 1>&2
Open commit View diff
311 echo "DNSSEC check succeeded" 2>> /tmp/unbound-mailcow 1>&2
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
312
    fi
Open commit View diff
312 fi
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
313
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
313 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
314
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
314 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
315
    progress "Unbound" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
315 progress "Unbound" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
316
    if [[ $? == 10 ]]; then
Open commit View diff
316 if [[ $? == 10 ]]; then
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
317
      diff_c=0
Open commit View diff
317 diff_c=0
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
318
      sleep 1
Open commit View diff
318 sleep 1
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
319
    else
Open commit View diff
319 else
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
320
      diff_c=0
Open commit View diff
320 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
321
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
321 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
322
    fi
Open commit View diff
322 fi
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
323
  done
Open commit View diff
323 done
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
324
  return 1
Open commit View diff
324 return 1
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
325
}
Open commit View diff
325 }
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
326
Open commit View diff
326
andryyy almost 7 years ago 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
327
redis_checks() {
Open commit View diff
327 redis_checks() {
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
328
  # A check for the local redis container
Open commit View diff
328 # A check for the local redis container
andryyy almost 7 years ago 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
329
  err_count=0
Open commit View diff
329 err_count=0
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
330
  diff_c=0
Open commit View diff
330 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
331
  THRESHOLD=${REDIS_THRESHOLD}
Open commit View diff
331 THRESHOLD=${REDIS_THRESHOLD}
andryyy almost 7 years ago 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
332
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
332 # Reduce error count by 2 after restarting an unhealthy container
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
333
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
333 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
334
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
334 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
335
    touch /tmp/redis-mailcow; echo "$(tail -50 /tmp/redis-mailcow)" > /tmp/redis-mailcow
Open commit View diff
335 touch /tmp/redis-mailcow; echo "$(tail -50 /tmp/redis-mailcow)" > /tmp/redis-mailcow
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
336
    host_ip=$(get_container_ip redis-mailcow)
Open commit View diff
336 host_ip=$(get_container_ip redis-mailcow)
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
337
    err_c_cur=${err_count}
Open commit View diff
337 err_c_cur=${err_count}
FreddleSpl0it over 1 year ago 89fb132

Enable password protection for Redis

Full commit hash
89fb1322c6f486a9883e6435a73537b13fbf3582
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
338
    /usr/lib/nagios/plugins/check_tcp -4 -H redis-mailcow -p 6379 -E -s "AUTH ${REDISPASS}\nPING\n" -q "QUIT" -e "PONG" 2>> /tmp/redis-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
338 /usr/lib/nagios/plugins/check_tcp -4 -H redis-mailcow -p 6379 -E -s "AUTH ${REDISPASS}\nPING\n" -q "QUIT" -e "PONG" 2>> /tmp/redis-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
andryyy almost 7 years ago 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
339
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
339 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
340
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
340 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
341
    progress "Redis" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
341 progress "Redis" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
342
    if [[ $? == 10 ]]; then
Open commit View diff
342 if [[ $? == 10 ]]; then
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
343
      diff_c=0
Open commit View diff
343 diff_c=0
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
344
      sleep 1
Open commit View diff
344 sleep 1
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
345
    else
Open commit View diff
345 else
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
346
      diff_c=0
Open commit View diff
346 diff_c=0
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
347
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
347 sleep $(( ( RANDOM % 60 ) + 20 ))
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
348
    fi
Open commit View diff
348 fi
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
349
  done
Open commit View diff
349 done
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
350
  return 1
Open commit View diff
350 return 1
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
351
}
Open commit View diff
351 }
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
352
Open commit View diff
352
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
353
mysql_checks() {
Open commit View diff
353 mysql_checks() {
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
354
  err_count=0
Open commit View diff
354 err_count=0
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
355
  diff_c=0
Open commit View diff
355 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
356
  THRESHOLD=${MYSQL_THRESHOLD}
Open commit View diff
356 THRESHOLD=${MYSQL_THRESHOLD}
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
357
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
357 # Reduce error count by 2 after restarting an unhealthy container
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
358
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
358 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
359
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
359 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
360
    touch /tmp/mysql-mailcow; echo "$(tail -50 /tmp/mysql-mailcow)" > /tmp/mysql-mailcow
Open commit View diff
360 touch /tmp/mysql-mailcow; echo "$(tail -50 /tmp/mysql-mailcow)" > /tmp/mysql-mailcow
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
361
    err_c_cur=${err_count}
Open commit View diff
361 err_c_cur=${err_count}
FreddleSpl0it 4 months ago 2e17633

[Watchdog] Fix Nagios MariaDB client SSL compatibility with Alpine 3.23

Full commit hash
2e176339baa8461bfdfd171c2918b47b4d2d4306
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
362
    /usr/lib/nagios/plugins/check_mysql -f /etc/my.cnf.d/client.cnf -s /var/run/mysqld/mysqld.sock -u ${DBUSER} -p ${DBPASS} -d ${DBNAME} 2>> /tmp/mysql-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
362 /usr/lib/nagios/plugins/check_mysql -f /etc/my.cnf.d/client.cnf -s /var/run/mysqld/mysqld.sock -u ${DBUSER} -p ${DBPASS} -d ${DBNAME} 2>> /tmp/mysql-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
same change 2e17633

[Watchdog] Fix Nagios MariaDB client SSL compatibility with Alpine 3.23

Full commit hash
2e176339baa8461bfdfd171c2918b47b4d2d4306
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
363
    /usr/lib/nagios/plugins/check_mysql_query -f /etc/my.cnf.d/client.cnf -s /var/run/mysqld/mysqld.sock -u ${DBUSER} -p ${DBPASS} -d ${DBNAME} -q "SELECT COUNT(*) FROM information_schema.tables" 2>> /tmp/mysql-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
363 /usr/lib/nagios/plugins/check_mysql_query -f /etc/my.cnf.d/client.cnf -s /var/run/mysqld/mysqld.sock -u ${DBUSER} -p ${DBPASS} -d ${DBNAME} -q "SELECT COUNT(*) FROM information_schema.tables" 2>> /tmp/mysql-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
364
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
364 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
365
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
365 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
366
    progress "MySQL/MariaDB" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
366 progress "MySQL/MariaDB" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
367
    if [[ $? == 10 ]]; then
Open commit View diff
367 if [[ $? == 10 ]]; then
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
368
      diff_c=0
Open commit View diff
368 diff_c=0
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
369
      sleep 1
Open commit View diff
369 sleep 1
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
370
    else
Open commit View diff
370 else
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
371
      diff_c=0
Open commit View diff
371 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
372
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
372 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
373
    fi
Open commit View diff
373 fi
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
374
  done
Open commit View diff
374 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
375
  return 1
Open commit View diff
375 return 1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
376
}
Open commit View diff
376 }
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
377
Open commit View diff
377
andryyy over 6 years ago 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
378
mysql_repl_checks() {
Open commit View diff
378 mysql_repl_checks() {
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
379
  err_count=0
Open commit View diff
379 err_count=0
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
380
  diff_c=0
Open commit View diff
380 diff_c=0
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
381
  THRESHOLD=${MYSQL_REPLICATION_THRESHOLD}
Open commit View diff
381 THRESHOLD=${MYSQL_REPLICATION_THRESHOLD}
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
382
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
382 # Reduce error count by 2 after restarting an unhealthy container
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
383
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
383 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
384
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
384 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
385
    touch /tmp/mysql_repl_checks; echo "$(tail -50 /tmp/mysql_repl_checks)" > /tmp/mysql_repl_checks
Open commit View diff
385 touch /tmp/mysql_repl_checks; echo "$(tail -50 /tmp/mysql_repl_checks)" > /tmp/mysql_repl_checks
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
386
    err_c_cur=${err_count}
Open commit View diff
386 err_c_cur=${err_count}
FreddleSpl0it 4 months ago 2e17633

[Watchdog] Fix Nagios MariaDB client SSL compatibility with Alpine 3.23

Full commit hash
2e176339baa8461bfdfd171c2918b47b4d2d4306
Author
FreddleSpl0it <[email protected]>
Date
4 months ago
Selected line
387
    /usr/lib/nagios/plugins/check_mysql_slavestatus.sh -o /etc/my.cnf.d/client.cnf -S /var/run/mysqld/mysqld.sock -u root -p ${DBROOT} 2>> /tmp/mysql_repl_checks 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
387 /usr/lib/nagios/plugins/check_mysql_slavestatus.sh -o /etc/my.cnf.d/client.cnf -S /var/run/mysqld/mysqld.sock -u root -p ${DBROOT} 2>> /tmp/mysql_repl_checks 1>&2; err_count=$(( ${err_count} + $? ))
andryyy over 6 years ago 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
388
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
388 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
389
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
389 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
390
    progress "MySQL/MariaDB replication" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
390 progress "MySQL/MariaDB replication" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
391
    if [[ $? == 10 ]]; then
Open commit View diff
391 if [[ $? == 10 ]]; then
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
392
      diff_c=0
Open commit View diff
392 diff_c=0
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
393
      sleep 60
Open commit View diff
393 sleep 60
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
394
    else
Open commit View diff
394 else
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
395
      diff_c=0
Open commit View diff
395 diff_c=0
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
396
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
396 sleep $(( ( RANDOM % 60 ) + 20 ))
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
397
    fi
Open commit View diff
397 fi
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
398
  done
Open commit View diff
398 done
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
399
  return 1
Open commit View diff
399 return 1
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
400
}
Open commit View diff
400 }
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
401
Open commit View diff
401
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
402
sogo_checks() {
Open commit View diff
402 sogo_checks() {
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
403
  err_count=0
Open commit View diff
403 err_count=0
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
404
  diff_c=0
Open commit View diff
404 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
405
  THRESHOLD=${SOGO_THRESHOLD}
Open commit View diff
405 THRESHOLD=${SOGO_THRESHOLD}
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
406
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
406 # Reduce error count by 2 after restarting an unhealthy container
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
407
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
407 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
408
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
408 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
409
    touch /tmp/sogo-mailcow; echo "$(tail -50 /tmp/sogo-mailcow)" > /tmp/sogo-mailcow
Open commit View diff
409 touch /tmp/sogo-mailcow; echo "$(tail -50 /tmp/sogo-mailcow)" > /tmp/sogo-mailcow
andryyy almost 9 years ago f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
410
    host_ip=$(get_container_ip sogo-mailcow)
Open commit View diff
410 host_ip=$(get_container_ip sogo-mailcow)
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
411
    err_c_cur=${err_count}
Open commit View diff
411 err_c_cur=${err_count}
andryyy almost 5 years ago 107c8ed

[Watchdog] Workarond for issue with content buffering in Alpine and Nagios plugins

Full commit hash
107c8ed22961993b9b0b7d961c362ece311ddd9f
Author
andryyy <[email protected]>
Date
almost 5 years ago
Selected line
412
    /usr/lib/nagios/plugins/check_http -4 -H ${host_ip} -u /SOGo.index/ -p 20000 2>> /tmp/sogo-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
412 /usr/lib/nagios/plugins/check_http -4 -H ${host_ip} -u /SOGo.index/ -p 20000 2>> /tmp/sogo-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
413
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
413 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
414
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
414 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
415
    progress "SOGo" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
415 progress "SOGo" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
416
    if [[ $? == 10 ]]; then
Open commit View diff
416 if [[ $? == 10 ]]; then
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
417
      diff_c=0
Open commit View diff
417 diff_c=0
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
418
      sleep 1
Open commit View diff
418 sleep 1
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
419
    else
Open commit View diff
419 else
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
420
      diff_c=0
Open commit View diff
420 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
421
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
421 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
422
    fi
Open commit View diff
422 fi
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
423
  done
Open commit View diff
423 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
424
  return 1
Open commit View diff
424 return 1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
425
}
Open commit View diff
425 }
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
426
Open commit View diff
426
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
427
postfix_checks() {
Open commit View diff
427 postfix_checks() {
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
428
  err_count=0
Open commit View diff
428 err_count=0
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
429
  diff_c=0
Open commit View diff
429 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
430
  THRESHOLD=${POSTFIX_THRESHOLD}
Open commit View diff
430 THRESHOLD=${POSTFIX_THRESHOLD}
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
431
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
431 # Reduce error count by 2 after restarting an unhealthy container
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
432
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
432 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
433
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
433 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
434
    touch /tmp/postfix-mailcow; echo "$(tail -50 /tmp/postfix-mailcow)" > /tmp/postfix-mailcow
Open commit View diff
434 touch /tmp/postfix-mailcow; echo "$(tail -50 /tmp/postfix-mailcow)" > /tmp/postfix-mailcow
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
435
    host_ip=$(get_container_ip postfix-mailcow)
Open commit View diff
435 host_ip=$(get_container_ip postfix-mailcow)
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
436
    err_c_cur=${err_count}
Open commit View diff
436 err_c_cur=${err_count}
andryyy almost 7 years ago 62068b2

[Watchdog] Add watchdog@invalid as rcpt for check

Full commit hash
62068b2209d6fb5b68e2d1ce3c7ad02383cd675c
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
437
    /usr/lib/nagios/plugins/check_smtp -4 -H ${host_ip} -p 589 -f "watchdog@invalid" -C "RCPT TO:watchdog@localhost" -C DATA -C . -R 250 2>> /tmp/postfix-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
437 /usr/lib/nagios/plugins/check_smtp -4 -H ${host_ip} -p 589 -f "watchdog@invalid" -C "RCPT TO:watchdog@localhost" -C DATA -C . -R 250 2>> /tmp/postfix-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
438
    /usr/lib/nagios/plugins/check_smtp -4 -H ${host_ip} -p 589 -S 2>> /tmp/postfix-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
438 /usr/lib/nagios/plugins/check_smtp -4 -H ${host_ip} -p 589 -S 2>> /tmp/postfix-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
439
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
439 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
440
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
440 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
441
    progress "Postfix" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
441 progress "Postfix" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
442
    if [[ $? == 10 ]]; then
Open commit View diff
442 if [[ $? == 10 ]]; then
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
443
      diff_c=0
Open commit View diff
443 diff_c=0
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
444
      sleep 1
Open commit View diff
444 sleep 1
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
445
    else
Open commit View diff
445 else
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
446
      diff_c=0
Open commit View diff
446 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
447
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
447 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
448
    fi
Open commit View diff
448 fi
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
449
  done
Open commit View diff
449 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
450
  return 1
Open commit View diff
450 return 1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
451
}
Open commit View diff
451 }
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
452
Open commit View diff
452
DerLinkman 11 months ago 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
453
postfix-tlspol_checks() {
Open commit View diff
453 postfix-tlspol_checks() {
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
454
  err_count=0
Open commit View diff
454 err_count=0
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
455
  diff_c=0
Open commit View diff
455 diff_c=0
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
456
  THRESHOLD=${POSTFIX_TLSPOL_THRESHOLD}
Open commit View diff
456 THRESHOLD=${POSTFIX_TLSPOL_THRESHOLD}
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
457
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
457 # Reduce error count by 2 after restarting an unhealthy container
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
458
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
458 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
459
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
459 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
460
    touch /tmp/postfix-tlspol-mailcow; echo "$(tail -50 /tmp/postfix-tlspol-mailcow)" > /tmp/postfix-tlspol-mailcow
Open commit View diff
460 touch /tmp/postfix-tlspol-mailcow; echo "$(tail -50 /tmp/postfix-tlspol-mailcow)" > /tmp/postfix-tlspol-mailcow
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
461
    host_ip=$(get_container_ip postfix-tlspol-mailcow)
Open commit View diff
461 host_ip=$(get_container_ip postfix-tlspol-mailcow)
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
462
    err_c_cur=${err_count}
Open commit View diff
462 err_c_cur=${err_count}
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
463
    /usr/lib/nagios/plugins/check_tcp -4 -H ${host_ip} -p 8642 2>> /tmp/postfix-tlspol-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
463 /usr/lib/nagios/plugins/check_tcp -4 -H ${host_ip} -p 8642 2>> /tmp/postfix-tlspol-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
464
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
464 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
465
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
465 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
466
    progress "Postfix TLS Policy companion" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
466 progress "Postfix TLS Policy companion" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
467
    if [[ $? == 10 ]]; then
Open commit View diff
467 if [[ $? == 10 ]]; then
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
468
      diff_c=0
Open commit View diff
468 diff_c=0
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
469
      sleep 1
Open commit View diff
469 sleep 1
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
470
    else
Open commit View diff
470 else
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
471
      diff_c=0
Open commit View diff
471 diff_c=0
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
472
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
472 sleep $(( ( RANDOM % 60 ) + 20 ))
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
473
    fi
Open commit View diff
473 fi
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
474
  done
Open commit View diff
474 done
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
475
  return 1
Open commit View diff
475 return 1
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
476
}
Open commit View diff
476 }
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
477
Open commit View diff
477
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
478
clamd_checks() {
Open commit View diff
478 clamd_checks() {
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
479
  err_count=0
Open commit View diff
479 err_count=0
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
480
  diff_c=0
Open commit View diff
480 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
481
  THRESHOLD=${CLAMD_THRESHOLD}
Open commit View diff
481 THRESHOLD=${CLAMD_THRESHOLD}
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
482
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
482 # Reduce error count by 2 after restarting an unhealthy container
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
483
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
483 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
484
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
484 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
485
    touch /tmp/clamd-mailcow; echo "$(tail -50 /tmp/clamd-mailcow)" > /tmp/clamd-mailcow
Open commit View diff
485 touch /tmp/clamd-mailcow; echo "$(tail -50 /tmp/clamd-mailcow)" > /tmp/clamd-mailcow
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
486
    host_ip=$(get_container_ip clamd-mailcow)
Open commit View diff
486 host_ip=$(get_container_ip clamd-mailcow)
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
487
    err_c_cur=${err_count}
Open commit View diff
487 err_c_cur=${err_count}
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
488
    /usr/lib/nagios/plugins/check_clamd -4 -H ${host_ip} 2>> /tmp/clamd-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
488 /usr/lib/nagios/plugins/check_clamd -4 -H ${host_ip} 2>> /tmp/clamd-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
489
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
489 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
490
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
490 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
491
    progress "Clamd" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
491 progress "Clamd" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
492
    if [[ $? == 10 ]]; then
Open commit View diff
492 if [[ $? == 10 ]]; then
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
493
      diff_c=0
Open commit View diff
493 diff_c=0
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
494
      sleep 1
Open commit View diff
494 sleep 1
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
495
    else
Open commit View diff
495 else
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
496
      diff_c=0
Open commit View diff
496 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
497
      sleep $(( ( RANDOM % 120 ) + 20 ))
Open commit View diff
497 sleep $(( ( RANDOM % 120 ) + 20 ))
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
498
    fi
Open commit View diff
498 fi
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
499
  done
Open commit View diff
499 done
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
500
  return 1
Open commit View diff
500 return 1
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
501
}
Open commit View diff
501 }
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
502
Open commit View diff
502
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
503
dovecot_checks() {
Open commit View diff
503 dovecot_checks() {
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
504
  err_count=0
Open commit View diff
504 err_count=0
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
505
  diff_c=0
Open commit View diff
505 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
506
  THRESHOLD=${DOVECOT_THRESHOLD}
Open commit View diff
506 THRESHOLD=${DOVECOT_THRESHOLD}
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
507
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
507 # Reduce error count by 2 after restarting an unhealthy container
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
508
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
508 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
509
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
509 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
510
    touch /tmp/dovecot-mailcow; echo "$(tail -50 /tmp/dovecot-mailcow)" > /tmp/dovecot-mailcow
Open commit View diff
510 touch /tmp/dovecot-mailcow; echo "$(tail -50 /tmp/dovecot-mailcow)" > /tmp/dovecot-mailcow
andryyy almost 9 years ago f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
511
    host_ip=$(get_container_ip dovecot-mailcow)
Open commit View diff
511 host_ip=$(get_container_ip dovecot-mailcow)
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
512
    err_c_cur=${err_count}
Open commit View diff
512 err_c_cur=${err_count}
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
513
    /usr/lib/nagios/plugins/check_smtp -4 -H ${host_ip} -p 24 -f "watchdog@invalid" -C "RCPT TO:<watchdog@invalid>" -L -R "User doesn't exist" 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
513 /usr/lib/nagios/plugins/check_smtp -4 -H ${host_ip} -p 24 -f "watchdog@invalid" -C "RCPT TO:<watchdog@invalid>" -L -R "User doesn't exist" 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
same change 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
514
    /usr/lib/nagios/plugins/check_imap -4 -H ${host_ip} -p 993 -S -e "OK " 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
514 /usr/lib/nagios/plugins/check_imap -4 -H ${host_ip} -p 993 -S -e "OK " 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
same change 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
515
    /usr/lib/nagios/plugins/check_imap -4 -H ${host_ip} -p 143 -e "OK " 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
515 /usr/lib/nagios/plugins/check_imap -4 -H ${host_ip} -p 143 -e "OK " 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
same change 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
516
    /usr/lib/nagios/plugins/check_tcp -4 -H ${host_ip} -p 10001 -e "VERSION" 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
516 /usr/lib/nagios/plugins/check_tcp -4 -H ${host_ip} -p 10001 -e "VERSION" 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
same change 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
517
    /usr/lib/nagios/plugins/check_tcp -4 -H ${host_ip} -p 4190 -e "Dovecot ready" 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
517 /usr/lib/nagios/plugins/check_tcp -4 -H ${host_ip} -p 4190 -e "Dovecot ready" 2>> /tmp/dovecot-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
518
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
518 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
519
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
519 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
520
    progress "Dovecot" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
520 progress "Dovecot" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
521
    if [[ $? == 10 ]]; then
Open commit View diff
521 if [[ $? == 10 ]]; then
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
522
      diff_c=0
Open commit View diff
522 diff_c=0
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
523
      sleep 1
Open commit View diff
523 sleep 1
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
524
    else
Open commit View diff
524 else
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
525
      diff_c=0
Open commit View diff
525 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
526
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
526 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
527
    fi
Open commit View diff
527 fi
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
528
  done
Open commit View diff
528 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
529
  return 1
Open commit View diff
529 return 1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
530
}
Open commit View diff
530 }
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
531
Open commit View diff
531
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
532
dovecot_repl_checks() {
Open commit View diff
532 dovecot_repl_checks() {
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
533
  err_count=0
Open commit View diff
533 err_count=0
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
534
  diff_c=0
Open commit View diff
534 diff_c=0
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
535
  THRESHOLD=${DOVECOT_REPL_THRESHOLD}
Open commit View diff
535 THRESHOLD=${DOVECOT_REPL_THRESHOLD}
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
536
  D_REPL_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning -r GET DOVECOT_REPL_HEALTH)
Open commit View diff
536 D_REPL_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning -r GET DOVECOT_REPL_HEALTH)
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
537
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
537 # Reduce error count by 2 after restarting an unhealthy container
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
538
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
538 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
539
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
539 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
540
    err_c_cur=${err_count}
Open commit View diff
540 err_c_cur=${err_count}
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
541
    D_REPL_STATUS=$(redis-cli --raw -h redis -a ${REDISPASS} --no-auth-warning GET DOVECOT_REPL_HEALTH)
Open commit View diff
541 D_REPL_STATUS=$(redis-cli --raw -h redis -a ${REDISPASS} --no-auth-warning GET DOVECOT_REPL_HEALTH)
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
542
    if [[ "${D_REPL_STATUS}" != "1" ]]; then
Open commit View diff
542 if [[ "${D_REPL_STATUS}" != "1" ]]; then
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
543
      err_count=$(( ${err_count} + 1 ))
Open commit View diff
543 err_count=$(( ${err_count} + 1 ))
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
544
    fi
Open commit View diff
544 fi
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
545
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
545 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
546
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
546 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
547
    progress "Dovecot replication" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
547 progress "Dovecot replication" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
548
    if [[ $? == 10 ]]; then
Open commit View diff
548 if [[ $? == 10 ]]; then
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
549
      diff_c=0
Open commit View diff
549 diff_c=0
andryyy about 6 years ago be538dd

[Watchdog] Minor change to Dovecot health check

Full commit hash
be538dd94efcd7070c3bdf3afbd83c598fb58b20
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
550
      sleep 60
Open commit View diff
550 sleep 60
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
551
    else
Open commit View diff
551 else
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
552
      diff_c=0
Open commit View diff
552 diff_c=0
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
553
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
553 sleep $(( ( RANDOM % 60 ) + 20 ))
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
554
    fi
Open commit View diff
554 fi
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
555
  done
Open commit View diff
555 done
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
556
  return 1
Open commit View diff
556 return 1
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
557
}
Open commit View diff
557 }
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
558
Open commit View diff
558
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
559
cert_checks() {
Open commit View diff
559 cert_checks() {
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
560
  err_count=0
Open commit View diff
560 err_count=0
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
561
  diff_c=0
Open commit View diff
561 diff_c=0
andryyy almost 6 years ago 172562f

[Watchdog] Increase threshold for cert check

Full commit hash
172562fc294e2d24f63840311f708199862c8833
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
562
  THRESHOLD=7
Open commit View diff
562 THRESHOLD=7
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
563
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
563 # Reduce error count by 2 after restarting an unhealthy container
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
564
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
564 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
565
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
565 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
566
    touch /tmp/certcheck; echo "$(tail -50 /tmp/certcheck)" > /tmp/certcheck
Open commit View diff
566 touch /tmp/certcheck; echo "$(tail -50 /tmp/certcheck)" > /tmp/certcheck
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
567
    host_ip_postfix=$(get_container_ip postfix)
Open commit View diff
567 host_ip_postfix=$(get_container_ip postfix)
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
568
    host_ip_dovecot=$(get_container_ip dovecot)
Open commit View diff
568 host_ip_dovecot=$(get_container_ip dovecot)
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
569
    err_c_cur=${err_count}
Open commit View diff
569 err_c_cur=${err_count}
andryyy almost 6 years ago 836ea15

[Postfix] Fix smtp last login on replicated setups

Full commit hash
836ea1508ef1e5e470a6e2acd292ea07c515682e
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
570
    /usr/lib/nagios/plugins/check_smtp -H ${host_ip_postfix} -p 589 -4 -S -D 7 2>> /tmp/certcheck 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
570 /usr/lib/nagios/plugins/check_smtp -H ${host_ip_postfix} -p 589 -4 -S -D 7 2>> /tmp/certcheck 1>&2; err_count=$(( ${err_count} + $? ))
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
571
    /usr/lib/nagios/plugins/check_imap -H ${host_ip_dovecot} -p 993 -4 -S -D 7 2>> /tmp/certcheck 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
571 /usr/lib/nagios/plugins/check_imap -H ${host_ip_dovecot} -p 993 -4 -S -D 7 2>> /tmp/certcheck 1>&2; err_count=$(( ${err_count} + $? ))
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
572
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
572 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
573
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
573 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
andryyy almost 6 years ago 836ea15

[Postfix] Fix smtp last login on replicated setups

Full commit hash
836ea1508ef1e5e470a6e2acd292ea07c515682e
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
574
    progress "Primary certificate expiry check" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
574 progress "Primary certificate expiry check" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
575
    # Always sleep 5 minutes, mail notifications are limited
Open commit View diff
575 # Always sleep 5 minutes, mail notifications are limited
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
576
    sleep 300
Open commit View diff
576 sleep 300
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
577
  done
Open commit View diff
577 done
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
578
  return 1
Open commit View diff
578 return 1
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
579
}
Open commit View diff
579 }
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
580
Open commit View diff
580
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
581
phpfpm_checks() {
Open commit View diff
581 phpfpm_checks() {
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
582
  err_count=0
Open commit View diff
582 err_count=0
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
583
  diff_c=0
Open commit View diff
583 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
584
  THRESHOLD=${PHPFPM_THRESHOLD}
Open commit View diff
584 THRESHOLD=${PHPFPM_THRESHOLD}
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
585
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
585 # Reduce error count by 2 after restarting an unhealthy container
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
586
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
586 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
587
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
587 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
588
    touch /tmp/php-fpm-mailcow; echo "$(tail -50 /tmp/php-fpm-mailcow)" > /tmp/php-fpm-mailcow
Open commit View diff
588 touch /tmp/php-fpm-mailcow; echo "$(tail -50 /tmp/php-fpm-mailcow)" > /tmp/php-fpm-mailcow
andryyy almost 9 years ago f511cb0

[Watchdog] More fixes and or changes

Full commit hash
f511cb0f6341cb7f402d615fc5645af3c9fb7fa2
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
589
    host_ip=$(get_container_ip php-fpm-mailcow)
Open commit View diff
589 host_ip=$(get_container_ip php-fpm-mailcow)
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
590
    err_c_cur=${err_count}
Open commit View diff
590 err_c_cur=${err_count}
André almost 8 years ago 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
591
    /usr/lib/nagios/plugins/check_tcp -H ${host_ip} -p 9001 2>> /tmp/php-fpm-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
591 /usr/lib/nagios/plugins/check_tcp -H ${host_ip} -p 9001 2>> /tmp/php-fpm-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
same change 86b92f6

[Watchdog] Remove cert check (wip)

Full commit hash
86b92f68cbb6039e70f02910d54fc97ef548acc1
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
592
    /usr/lib/nagios/plugins/check_tcp -H ${host_ip} -p 9002 2>> /tmp/php-fpm-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
592 /usr/lib/nagios/plugins/check_tcp -H ${host_ip} -p 9002 2>> /tmp/php-fpm-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
593
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
593 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
594
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
594 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
595
    progress "PHP-FPM" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
595 progress "PHP-FPM" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
596
    if [[ $? == 10 ]]; then
Open commit View diff
596 if [[ $? == 10 ]]; then
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
597
      diff_c=0
Open commit View diff
597 diff_c=0
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
598
      sleep 1
Open commit View diff
598 sleep 1
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
599
    else
Open commit View diff
599 else
same change 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
600
      diff_c=0
Open commit View diff
600 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
601
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
601 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
602
    fi
Open commit View diff
602 fi
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
603
  done
Open commit View diff
603 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
604
  return 1
Open commit View diff
604 return 1
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
605
}
Open commit View diff
605 }
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
606
Open commit View diff
606
andryyy over 7 years ago 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
607
ratelimit_checks() {
Open commit View diff
607 ratelimit_checks() {
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
608
  err_count=0
Open commit View diff
608 err_count=0
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
609
  diff_c=0
Open commit View diff
609 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
610
  THRESHOLD=${RATELIMIT_THRESHOLD}
Open commit View diff
610 THRESHOLD=${RATELIMIT_THRESHOLD}
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
611
  RL_LOG_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning LRANGE RL_LOG 0 0 | jq .qid)
Open commit View diff
611 RL_LOG_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning LRANGE RL_LOG 0 0 | jq .qid)
andryyy over 7 years ago 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
612
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
612 # Reduce error count by 2 after restarting an unhealthy container
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
613
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
613 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
614
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
614 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
615
    err_c_cur=${err_count}
Open commit View diff
615 err_c_cur=${err_count}
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
616
    RL_LOG_STATUS_PREV=${RL_LOG_STATUS}
Open commit View diff
616 RL_LOG_STATUS_PREV=${RL_LOG_STATUS}
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
617
    RL_LOG_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning LRANGE RL_LOG 0 0 | jq .qid)
Open commit View diff
617 RL_LOG_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning LRANGE RL_LOG 0 0 | jq .qid)
andryyy over 7 years ago 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
618
    if [[ ${RL_LOG_STATUS_PREV} != ${RL_LOG_STATUS} ]]; then
Open commit View diff
618 if [[ ${RL_LOG_STATUS_PREV} != ${RL_LOG_STATUS} ]]; then
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
619
      err_count=$(( ${err_count} + 1 ))
Open commit View diff
619 err_count=$(( ${err_count} + 1 ))
andryyy over 6 years ago ae79a66

[Watchdog] Send 10 last applied ratelimits in mail report

Full commit hash
ae79a663ababfc4d1b9df7569f7b4fb9932056bd
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
620
      echo 'Last 10 applied ratelimits (may overlap with previous reports).' > /tmp/ratelimit
Open commit View diff
620 echo 'Last 10 applied ratelimits (may overlap with previous reports).' > /tmp/ratelimit
same change ae79a66

[Watchdog] Send 10 last applied ratelimits in mail report

Full commit hash
ae79a663ababfc4d1b9df7569f7b4fb9932056bd
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
621
      echo 'Full ratelimit buckets can be emptied by deleting the ratelimit hash from within mailcow UI (see /debug -> Protocols -> Ratelimit):' >> /tmp/ratelimit
Open commit View diff
621 echo 'Full ratelimit buckets can be emptied by deleting the ratelimit hash from within mailcow UI (see /debug -> Protocols -> Ratelimit):' >> /tmp/ratelimit
same change ae79a66

[Watchdog] Send 10 last applied ratelimits in mail report

Full commit hash
ae79a663ababfc4d1b9df7569f7b4fb9932056bd
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
622
      echo >> /tmp/ratelimit
Open commit View diff
622 echo >> /tmp/ratelimit
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
623
      redis-cli --raw -h redis -a ${REDISPASS} --no-auth-warning LRANGE RL_LOG 0 10 | jq . >> /tmp/ratelimit
Open commit View diff
623 redis-cli --raw -h redis -a ${REDISPASS} --no-auth-warning LRANGE RL_LOG 0 10 | jq . >> /tmp/ratelimit
andryyy over 7 years ago 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
624
    fi
Open commit View diff
624 fi
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
625
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
625 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
626
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
626 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
627
    progress "Ratelimit" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
627 progress "Ratelimit" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
628
    if [[ $? == 10 ]]; then
Open commit View diff
628 if [[ $? == 10 ]]; then
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
629
      diff_c=0
Open commit View diff
629 diff_c=0
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
630
      sleep 1
Open commit View diff
630 sleep 1
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
631
    else
Open commit View diff
631 else
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
632
      diff_c=0
Open commit View diff
632 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
633
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
633 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
634
    fi
Open commit View diff
634 fi
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
635
  done
Open commit View diff
635 done
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
636
  return 1
Open commit View diff
636 return 1
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
637
}
Open commit View diff
637 }
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
638
Open commit View diff
638
andryyy about 6 years ago 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
639
mailq_checks() {
Open commit View diff
639 mailq_checks() {
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
640
  err_count=0
Open commit View diff
640 err_count=0
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
641
  diff_c=0
Open commit View diff
641 diff_c=0
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
642
  THRESHOLD=${MAILQ_THRESHOLD}
Open commit View diff
642 THRESHOLD=${MAILQ_THRESHOLD}
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
643
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
643 # Reduce error count by 2 after restarting an unhealthy container
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
644
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
644 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
645
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
645 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
646
    touch /tmp/mail_queue_status; echo "$(tail -50 /tmp/mail_queue_status)" > /tmp/mail_queue_status
Open commit View diff
646 touch /tmp/mail_queue_status; echo "$(tail -50 /tmp/mail_queue_status)" > /tmp/mail_queue_status
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
647
    MAILQ_LOG_STATUS=$(find /var/spool/postfix/deferred -type f | wc -l)
Open commit View diff
647 MAILQ_LOG_STATUS=$(find /var/spool/postfix/deferred -type f | wc -l)
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
648
    echo "Mail queue contains ${MAILQ_LOG_STATUS} items (critical limit is ${MAILQ_CRIT}) at $(date)" >> /tmp/mail_queue_status
Open commit View diff
648 echo "Mail queue contains ${MAILQ_LOG_STATUS} items (critical limit is ${MAILQ_CRIT}) at $(date)" >> /tmp/mail_queue_status
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
649
    err_c_cur=${err_count}
Open commit View diff
649 err_c_cur=${err_count}
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
650
    if [ ${MAILQ_LOG_STATUS} -ge ${MAILQ_CRIT} ]; then
Open commit View diff
650 if [ ${MAILQ_LOG_STATUS} -ge ${MAILQ_CRIT} ]; then
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
651
      err_count=$(( ${err_count} + 1 ))
Open commit View diff
651 err_count=$(( ${err_count} + 1 ))
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
652
      echo "Mail queue contains ${MAILQ_LOG_STATUS} items (critical limit is ${MAILQ_CRIT}) at $(date)" >> /tmp/mail_queue_status
Open commit View diff
652 echo "Mail queue contains ${MAILQ_LOG_STATUS} items (critical limit is ${MAILQ_CRIT}) at $(date)" >> /tmp/mail_queue_status
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
653
    fi
Open commit View diff
653 fi
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
654
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
654 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
655
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
655 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
656
    progress "Mail queue" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
656 progress "Mail queue" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
657
    if [[ $? == 10 ]]; then
Open commit View diff
657 if [[ $? == 10 ]]; then
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
658
      diff_c=0
Open commit View diff
658 diff_c=0
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
659
      sleep 60
Open commit View diff
659 sleep 60
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
660
    else
Open commit View diff
660 else
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
661
      diff_c=0
Open commit View diff
661 diff_c=0
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
662
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
662 sleep $(( ( RANDOM % 60 ) + 20 ))
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
663
    fi
Open commit View diff
663 fi
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
664
  done
Open commit View diff
664 done
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
665
  return 1
Open commit View diff
665 return 1
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
666
}
Open commit View diff
666 }
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
667
Open commit View diff
667
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
668
fail2ban_checks() {
Open commit View diff
668 fail2ban_checks() {
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
669
  err_count=0
Open commit View diff
669 err_count=0
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
670
  diff_c=0
Open commit View diff
670 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
671
  THRESHOLD=${FAIL2BAN_THRESHOLD}
Open commit View diff
671 THRESHOLD=${FAIL2BAN_THRESHOLD}
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
672
  F2B_LOG_STATUS=($(${REDIS_CMDLINE} --raw HKEYS F2B_ACTIVE_BANS))
Open commit View diff
672 F2B_LOG_STATUS=($(${REDIS_CMDLINE} --raw HKEYS F2B_ACTIVE_BANS))
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
673
  F2B_RES=
Open commit View diff
673 F2B_RES=
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
674
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
674 # Reduce error count by 2 after restarting an unhealthy container
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
675
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
675 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
676
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
676 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
677
    err_c_cur=${err_count}
Open commit View diff
677 err_c_cur=${err_count}
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
678
    F2B_LOG_STATUS_PREV=(${F2B_LOG_STATUS[@]})
Open commit View diff
678 F2B_LOG_STATUS_PREV=(${F2B_LOG_STATUS[@]})
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
679
    F2B_LOG_STATUS=($(${REDIS_CMDLINE} --raw HKEYS F2B_ACTIVE_BANS))
Open commit View diff
679 F2B_LOG_STATUS=($(${REDIS_CMDLINE} --raw HKEYS F2B_ACTIVE_BANS))
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
680
    array_diff F2B_RES F2B_LOG_STATUS F2B_LOG_STATUS_PREV
Open commit View diff
680 array_diff F2B_RES F2B_LOG_STATUS F2B_LOG_STATUS_PREV
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
681
    if [[ ! -z "${F2B_RES}" ]]; then
Open commit View diff
681 if [[ ! -z "${F2B_RES}" ]]; then
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
682
      err_count=$(( ${err_count} + 1 ))
Open commit View diff
682 err_count=$(( ${err_count} + 1 ))
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
683
      echo -n "${F2B_RES[@]}" | tr -cd "[a-fA-F0-9.:/] " | timeout 3s ${REDIS_CMDLINE} -x SET F2B_RES > /dev/null
Open commit View diff
683 echo -n "${F2B_RES[@]}" | tr -cd "[a-fA-F0-9.:/] " | timeout 3s ${REDIS_CMDLINE} -x SET F2B_RES > /dev/null
andryyy almost 7 years ago fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
684
      if [ $? -ne 0 ]; then
Open commit View diff
684 if [ $? -ne 0 ]; then
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
685
         ${REDIS_CMDLINE} -x DEL F2B_RES
Open commit View diff
685 ${REDIS_CMDLINE} -x DEL F2B_RES
andryyy almost 7 years ago fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
686
      fi
Open commit View diff
686 fi
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
687
    fi
Open commit View diff
687 fi
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
688
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
688 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
689
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
689 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
690
    progress "Fail2ban" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
690 progress "Fail2ban" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
691
    if [[ $? == 10 ]]; then
Open commit View diff
691 if [[ $? == 10 ]]; then
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
692
      diff_c=0
Open commit View diff
692 diff_c=0
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
693
      sleep 1
Open commit View diff
693 sleep 1
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
694
    else
Open commit View diff
694 else
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
695
      diff_c=0
Open commit View diff
695 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
696
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
696 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
697
    fi
Open commit View diff
697 fi
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
698
  done
Open commit View diff
698 done
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
699
  return 1
Open commit View diff
699 return 1
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
700
}
Open commit View diff
700 }
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
701
Open commit View diff
701
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
702
acme_checks() {
Open commit View diff
702 acme_checks() {
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
703
  err_count=0
Open commit View diff
703 err_count=0
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
704
  diff_c=0
Open commit View diff
704 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
705
  THRESHOLD=${ACME_THRESHOLD}
Open commit View diff
705 THRESHOLD=${ACME_THRESHOLD}
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
706
  ACME_LOG_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning GET ACME_FAIL_TIME)
Open commit View diff
706 ACME_LOG_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning GET ACME_FAIL_TIME)
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
707
  if [[ -z "${ACME_LOG_STATUS}" ]]; then
Open commit View diff
707 if [[ -z "${ACME_LOG_STATUS}" ]]; then
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
708
    ${REDIS_CMDLINE} SET ACME_FAIL_TIME 0
Open commit View diff
708 ${REDIS_CMDLINE} SET ACME_FAIL_TIME 0
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
709
    ACME_LOG_STATUS=0
Open commit View diff
709 ACME_LOG_STATUS=0
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
710
  fi
Open commit View diff
710 fi
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
711
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
711 # Reduce error count by 2 after restarting an unhealthy container
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
712
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
712 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
713
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
713 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
714
    err_c_cur=${err_count}
Open commit View diff
714 err_c_cur=${err_count}
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
715
    ACME_LOG_STATUS_PREV=${ACME_LOG_STATUS}
Open commit View diff
715 ACME_LOG_STATUS_PREV=${ACME_LOG_STATUS}
andryyy over 6 years ago 9e11ab1

[Watchdog] Retry to get current ACME log status, if empty (may fix watchdog mails on very busy servers - eg while running a backup)

Full commit hash
9e11ab1fd4a5d568181eeecb8efad4793d618e3e
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
716
    ACME_LC=0
Open commit View diff
716 ACME_LC=0
same change 9e11ab1

[Watchdog] Retry to get current ACME log status, if empty (may fix watchdog mails on very busy servers - eg while running a backup)

Full commit hash
9e11ab1fd4a5d568181eeecb8efad4793d618e3e
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
717
    until [[ ! -z ${ACME_LOG_STATUS} ]] || [ ${ACME_LC} -ge 3 ]; do
Open commit View diff
717 until [[ ! -z ${ACME_LOG_STATUS} ]] || [ ${ACME_LC} -ge 3 ]; do
FreddleSpl0it over 1 year ago 6831f94

[Redis] redis-cli suppress auth warning

Full commit hash
6831f94fdb209fb4a558f5f81fb7db340c856bd2
Author
FreddleSpl0it <[email protected]>
Date
over 1 year ago
Selected line
718
      ACME_LOG_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning GET ACME_FAIL_TIME 2> /dev/null)
Open commit View diff
718 ACME_LOG_STATUS=$(redis-cli -h redis -a ${REDISPASS} --no-auth-warning GET ACME_FAIL_TIME 2> /dev/null)
andryyy over 6 years ago dd91be5

[Watchdog] Wait 3 seconds before looping again

Full commit hash
dd91be5a39901641d5cf4ea8ba6697298de4c1fd
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
719
      sleep 3
Open commit View diff
719 sleep 3
andryyy over 6 years ago 9e11ab1

[Watchdog] Retry to get current ACME log status, if empty (may fix watchdog mails on very busy servers - eg while running a backup)

Full commit hash
9e11ab1fd4a5d568181eeecb8efad4793d618e3e
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
720
      ACME_LC=$((ACME_LC+1))
Open commit View diff
720 ACME_LC=$((ACME_LC+1))
same change 9e11ab1

[Watchdog] Retry to get current ACME log status, if empty (may fix watchdog mails on very busy servers - eg while running a backup)

Full commit hash
9e11ab1fd4a5d568181eeecb8efad4793d618e3e
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
721
    done
Open commit View diff
721 done
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
722
    if [[ ${ACME_LOG_STATUS_PREV} != ${ACME_LOG_STATUS} ]]; then
Open commit View diff
722 if [[ ${ACME_LOG_STATUS_PREV} != ${ACME_LOG_STATUS} ]]; then
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
723
      err_count=$(( ${err_count} + 1 ))
Open commit View diff
723 err_count=$(( ${err_count} + 1 ))
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
724
    fi
Open commit View diff
724 fi
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
725
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
725 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
726
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
726 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
727
    progress "ACME" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
727 progress "ACME" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
728
    if [[ $? == 10 ]]; then
Open commit View diff
728 if [[ $? == 10 ]]; then
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
729
      diff_c=0
Open commit View diff
729 diff_c=0
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
730
      sleep 1
Open commit View diff
730 sleep 1
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
731
    else
Open commit View diff
731 else
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
732
      diff_c=0
Open commit View diff
732 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
733
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
733 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
734
    fi
Open commit View diff
734 fi
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
735
  done
Open commit View diff
735 done
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
736
  return 1
Open commit View diff
736 return 1
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
737
}
Open commit View diff
737 }
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
738
Open commit View diff
738
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
739
rspamd_checks() {
Open commit View diff
739 rspamd_checks() {
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
740
  err_count=0
Open commit View diff
740 err_count=0
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
741
  diff_c=0
Open commit View diff
741 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
742
  THRESHOLD=${RSPAMD_THRESHOLD}
Open commit View diff
742 THRESHOLD=${RSPAMD_THRESHOLD}
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
743
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
743 # Reduce error count by 2 after restarting an unhealthy container
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
744
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
744 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
745
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
745 while [ ${err_count} -lt ${THRESHOLD} ]; do
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
746
    touch /tmp/rspamd-mailcow; echo "$(tail -50 /tmp/rspamd-mailcow)" > /tmp/rspamd-mailcow
Open commit View diff
746 touch /tmp/rspamd-mailcow; echo "$(tail -50 /tmp/rspamd-mailcow)" > /tmp/rspamd-mailcow
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
747
    host_ip=$(get_container_ip rspamd-mailcow)
Open commit View diff
747 host_ip=$(get_container_ip rspamd-mailcow)
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
748
    err_c_cur=${err_count}
Open commit View diff
748 err_c_cur=${err_count}
andryyy over 7 years ago d65f7a2

[Watchdog] Do not hammer API too much when running Ipv6 NAT check

Full commit hash
d65f7a2bd4523f73cb4837d281ad12652fb1f3a4
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
749
    SCORE=$(echo 'To: null@localhost
Open commit View diff
749 SCORE=$(echo 'To: null@localhost
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
750
From: watchdog@localhost
Open commit View diff
750 From: watchdog@localhost
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
751
Open commit View diff
751
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
752
Empty
Open commit View diff
752 Empty
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
753
' | usr/bin/curl --max-time 10 -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd.${COMPOSE_PROJECT_NAME}_mailcow-network/scan | jq -rc .default.required_score | sed 's/\..*//' )
Open commit View diff
753 ' | usr/bin/curl --max-time 10 -s --data-binary @- --unix-socket /var/lib/rspamd/rspamd.sock http://rspamd.${COMPOSE_PROJECT_NAME}_mailcow-network/scan | jq -rc .default.required_score | sed 's/\..*//' )
DerLinkman about 3 years ago accedf0

Updated mailcow Components to be ARM64 compatible

Full commit hash
accedf028003ad6f0511a41a8773562458038bed
Author
DerLinkman <[email protected]>
Date
about 3 years ago
Selected line
754
    if [[ ${SCORE} -ne 9999 ]]; then
Open commit View diff
754 if [[ ${SCORE} -ne 9999 ]]; then
andryyy over 5 years ago c8a72bf

[Watchdog] Return score with Rspamd check

Full commit hash
c8a72bf6424b87a89bfda913fd9aaf4448878e58
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
755
      echo "Rspamd settings check failed, score returned: ${SCORE}" 2>> /tmp/rspamd-mailcow 1>&2
Open commit View diff
755 echo "Rspamd settings check failed, score returned: ${SCORE}" 2>> /tmp/rspamd-mailcow 1>&2
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
756
      err_count=$(( ${err_count} + 1))
Open commit View diff
756 err_count=$(( ${err_count} + 1))
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
757
    else
Open commit View diff
757 else
andryyy over 5 years ago c8a72bf

[Watchdog] Return score with Rspamd check

Full commit hash
c8a72bf6424b87a89bfda913fd9aaf4448878e58
Author
andryyy <[email protected]>
Date
over 5 years ago
Selected line
758
      echo "Rspamd settings check succeeded, score returned: ${SCORE}" 2>> /tmp/rspamd-mailcow 1>&2
Open commit View diff
758 echo "Rspamd settings check succeeded, score returned: ${SCORE}" 2>> /tmp/rspamd-mailcow 1>&2
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
759
    fi
Open commit View diff
759 fi
andryyy almost 6 years ago 769c500

[Watchdog] Watch milter status with a dirty workaround, waiting for proxy ping pong event to implement a better check

Full commit hash
769c500cd008259471464065a68c54fe2352828f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
760
    # A dirty hack until a PING PONG event is implemented to worker proxy
Open commit View diff
760 # A dirty hack until a PING PONG event is implemented to worker proxy
same change 769c500

[Watchdog] Watch milter status with a dirty workaround, waiting for proxy ping pong event to implement a better check

Full commit hash
769c500cd008259471464065a68c54fe2352828f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
761
    # We expect an empty response, not a timeout
Open commit View diff
761 # We expect an empty response, not a timeout
same change 769c500

[Watchdog] Watch milter status with a dirty workaround, waiting for proxy ping pong event to implement a better check

Full commit hash
769c500cd008259471464065a68c54fe2352828f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
762
    if [ "$(curl -s --max-time 10 ${host_ip}:9900 2> /dev/null ; echo $?)" == "28" ]; then
Open commit View diff
762 if [ "$(curl -s --max-time 10 ${host_ip}:9900 2> /dev/null ; echo $?)" == "28" ]; then
same change 769c500

[Watchdog] Watch milter status with a dirty workaround, waiting for proxy ping pong event to implement a better check

Full commit hash
769c500cd008259471464065a68c54fe2352828f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
763
      echo "Milter check failed" 2>> /tmp/rspamd-mailcow 1>&2; err_count=$(( ${err_count} + 1 ));
Open commit View diff
763 echo "Milter check failed" 2>> /tmp/rspamd-mailcow 1>&2; err_count=$(( ${err_count} + 1 ));
same change 769c500

[Watchdog] Watch milter status with a dirty workaround, waiting for proxy ping pong event to implement a better check

Full commit hash
769c500cd008259471464065a68c54fe2352828f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
764
    else
Open commit View diff
764 else
same change 769c500

[Watchdog] Watch milter status with a dirty workaround, waiting for proxy ping pong event to implement a better check

Full commit hash
769c500cd008259471464065a68c54fe2352828f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
765
      echo "Milter check succeeded" 2>> /tmp/rspamd-mailcow 1>&2
Open commit View diff
765 echo "Milter check succeeded" 2>> /tmp/rspamd-mailcow 1>&2
same change 769c500

[Watchdog] Watch milter status with a dirty workaround, waiting for proxy ping pong event to implement a better check

Full commit hash
769c500cd008259471464065a68c54fe2352828f
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
766
    fi
Open commit View diff
766 fi
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
767
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
767 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
768
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
768 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
769
    progress "Rspamd" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
769 progress "Rspamd" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
770
    if [[ $? == 10 ]]; then
Open commit View diff
770 if [[ $? == 10 ]]; then
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
771
      diff_c=0
Open commit View diff
771 diff_c=0
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
772
      sleep 1
Open commit View diff
772 sleep 1
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
773
    else
Open commit View diff
773 else
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
774
      diff_c=0
Open commit View diff
774 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
775
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
775 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
776
    fi
Open commit View diff
776 fi
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
777
  done
Open commit View diff
777 done
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
778
  return 1
Open commit View diff
778 return 1
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
779
}
Open commit View diff
779 }
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
780
Open commit View diff
780
andryyy about 7 years ago 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
781
olefy_checks() {
Open commit View diff
781 olefy_checks() {
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
782
  err_count=0
Open commit View diff
782 err_count=0
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
783
  diff_c=0
Open commit View diff
783 diff_c=0
andryyy over 6 years ago 55151b1

[Watchdog] Define thresholds in docker-compose(.override) file

Full commit hash
55151b1313c52aaba970da75c93fd8c625a08a47
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
784
  THRESHOLD=${OLEFY_THRESHOLD}
Open commit View diff
784 THRESHOLD=${OLEFY_THRESHOLD}
andryyy about 7 years ago 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
785
  # Reduce error count by 2 after restarting an unhealthy container
Open commit View diff
785 # Reduce error count by 2 after restarting an unhealthy container
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
786
  trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
Open commit View diff
786 trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
787
  while [ ${err_count} -lt ${THRESHOLD} ]; do
Open commit View diff
787 while [ ${err_count} -lt ${THRESHOLD} ]; do
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
788
    touch /tmp/olefy-mailcow; echo "$(tail -50 /tmp/olefy-mailcow)" > /tmp/olefy-mailcow
Open commit View diff
788 touch /tmp/olefy-mailcow; echo "$(tail -50 /tmp/olefy-mailcow)" > /tmp/olefy-mailcow
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
789
    host_ip=$(get_container_ip olefy-mailcow)
Open commit View diff
789 host_ip=$(get_container_ip olefy-mailcow)
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
790
    err_c_cur=${err_count}
Open commit View diff
790 err_c_cur=${err_count}
andryyy almost 7 years ago a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
791
    /usr/lib/nagios/plugins/check_tcp -4 -H ${host_ip} -p 10055 -s "PING\n" 2>> /tmp/olefy-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
Open commit View diff
791 /usr/lib/nagios/plugins/check_tcp -4 -H ${host_ip} -p 10055 -s "PING\n" 2>> /tmp/olefy-mailcow 1>&2; err_count=$(( ${err_count} + $? ))
andryyy about 7 years ago 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
792
    [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
Open commit View diff
792 [ ${err_c_cur} -eq ${err_count} ] && [ ! $((${err_count} - 1)) -lt 0 ] && err_count=$((${err_count} - 1)) diff_c=1
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
793
    [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
Open commit View diff
793 [ ${err_c_cur} -ne ${err_count} ] && diff_c=$(( ${err_c_cur} - ${err_count} ))
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
794
    progress "Olefy" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
Open commit View diff
794 progress "Olefy" ${THRESHOLD} $(( ${THRESHOLD} - ${err_count} )) ${diff_c}
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
795
    if [[ $? == 10 ]]; then
Open commit View diff
795 if [[ $? == 10 ]]; then
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
796
      diff_c=0
Open commit View diff
796 diff_c=0
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
797
      sleep 1
Open commit View diff
797 sleep 1
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
798
    else
Open commit View diff
798 else
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
799
      diff_c=0
Open commit View diff
799 diff_c=0
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
800
      sleep $(( ( RANDOM % 60 ) + 20 ))
Open commit View diff
800 sleep $(( ( RANDOM % 60 ) + 20 ))
andryyy about 7 years ago 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
801
    fi
Open commit View diff
801 fi
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
802
  done
Open commit View diff
802 done
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
803
  return 1
Open commit View diff
803 return 1
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
804
}
Open commit View diff
804 }
same change 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
805
Open commit View diff
805
andryyy over 7 years ago 5be4885

[Watchdog] Send mail when starting

Full commit hash
5be4885c159a4a6633faa5040edc736275b80bab
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
806
# Notify about start
Open commit View diff
806 # Notify about start
Patrick Schult over 2 years ago 96a5891

Merge branch 'staging' into watchdog-no-notify-on-startup

Full commit hash
96a5891ce75d8055bd2315a7166d1de7364b1620
Author
Patrick Schult <[email protected]>
Date
over 2 years ago
Selected line
807
if [[ ${WATCHDOG_NOTIFY_START} =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
807 if [[ ${WATCHDOG_NOTIFY_START} =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change 96a5891

Merge branch 'staging' into watchdog-no-notify-on-startup

Full commit hash
96a5891ce75d8055bd2315a7166d1de7364b1620
Author
Patrick Schult <[email protected]>
Date
over 2 years ago
Selected line
808
  notify_error "watchdog-mailcow" "Watchdog started monitoring mailcow."
Open commit View diff
808 notify_error "watchdog-mailcow" "Watchdog started monitoring mailcow."
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
809
fi
Open commit View diff
809 fi
andryyy over 7 years ago 5be4885

[Watchdog] Send mail when starting

Full commit hash
5be4885c159a4a6633faa5040edc736275b80bab
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
810
Open commit View diff
810
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
811
# Create watchdog agents
Open commit View diff
811 # Create watchdog agents
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
812
Open commit View diff
812
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
813
(
Open commit View diff
813 (
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
814
while true; do
Open commit View diff
814 while true; do
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
815
  if ! nginx_checks; then
Open commit View diff
815 if ! nginx_checks; then
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
816
    log_msg "Nginx hit error limit"
Open commit View diff
816 log_msg "Nginx hit error limit"
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
817
    echo nginx-mailcow > /tmp/com_pipe
Open commit View diff
817 echo nginx-mailcow > /tmp/com_pipe
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
818
  fi
Open commit View diff
818 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
819
done
Open commit View diff
819 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
820
) &
Open commit View diff
820 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
821
PID=$!
Open commit View diff
821 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
822
echo "Spawned nginx_checks with PID ${PID}"
Open commit View diff
822 echo "Spawned nginx_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
823
BACKGROUND_TASKS+=(${PID})
Open commit View diff
823 BACKGROUND_TASKS+=(${PID})
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
824
Open commit View diff
824
andryyy over 6 years ago f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
825
if [[ ${WATCHDOG_EXTERNAL_CHECKS} =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
825 if [[ ${WATCHDOG_EXTERNAL_CHECKS} =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
826
(
Open commit View diff
826 (
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
827
while true; do
Open commit View diff
827 while true; do
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
828
  if ! external_checks; then
Open commit View diff
828 if ! external_checks; then
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
829
    log_msg "External checks hit error limit"
Open commit View diff
829 log_msg "External checks hit error limit"
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
830
    echo external_checks > /tmp/com_pipe
Open commit View diff
830 echo external_checks > /tmp/com_pipe
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
831
  fi
Open commit View diff
831 fi
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
832
done
Open commit View diff
832 done
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
833
) &
Open commit View diff
833 ) &
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
834
PID=$!
Open commit View diff
834 PID=$!
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
835
echo "Spawned external_checks with PID ${PID}"
Open commit View diff
835 echo "Spawned external_checks with PID ${PID}"
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
836
BACKGROUND_TASKS+=(${PID})
Open commit View diff
836 BACKGROUND_TASKS+=(${PID})
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
837
fi
Open commit View diff
837 fi
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
838
Open commit View diff
838
andryyy over 6 years ago 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
839
if [[ ${WATCHDOG_MYSQL_REPLICATION_CHECKS} =~ ^([yY][eE][sS]|[yY])+$ ]]; then
Open commit View diff
839 if [[ ${WATCHDOG_MYSQL_REPLICATION_CHECKS} =~ ^([yY][eE][sS]|[yY])+$ ]]; then
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
840
(
Open commit View diff
840 (
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
841
while true; do
Open commit View diff
841 while true; do
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
842
  if ! mysql_repl_checks; then
Open commit View diff
842 if ! mysql_repl_checks; then
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
843
    log_msg "MySQL replication check hit error limit"
Open commit View diff
843 log_msg "MySQL replication check hit error limit"
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
844
    echo mysql_repl_checks > /tmp/com_pipe
Open commit View diff
844 echo mysql_repl_checks > /tmp/com_pipe
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
845
  fi
Open commit View diff
845 fi
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
846
done
Open commit View diff
846 done
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
847
) &
Open commit View diff
847 ) &
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
848
PID=$!
Open commit View diff
848 PID=$!
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
849
echo "Spawned mysql_repl_checks with PID ${PID}"
Open commit View diff
849 echo "Spawned mysql_repl_checks with PID ${PID}"
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
850
BACKGROUND_TASKS+=(${PID})
Open commit View diff
850 BACKGROUND_TASKS+=(${PID})
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
851
fi
Open commit View diff
851 fi
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
852
Open commit View diff
852
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
853
(
Open commit View diff
853 (
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
854
while true; do
Open commit View diff
854 while true; do
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
855
  if ! mysql_checks; then
Open commit View diff
855 if ! mysql_checks; then
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
856
    log_msg "MySQL hit error limit"
Open commit View diff
856 log_msg "MySQL hit error limit"
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
857
    echo mysql-mailcow > /tmp/com_pipe
Open commit View diff
857 echo mysql-mailcow > /tmp/com_pipe
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
858
  fi
Open commit View diff
858 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
859
done
Open commit View diff
859 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
860
) &
Open commit View diff
860 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
861
PID=$!
Open commit View diff
861 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
862
echo "Spawned mysql_checks with PID ${PID}"
Open commit View diff
862 echo "Spawned mysql_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
863
BACKGROUND_TASKS+=(${PID})
Open commit View diff
863 BACKGROUND_TASKS+=(${PID})
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
864
Open commit View diff
864
andryyy almost 7 years ago 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
865
(
Open commit View diff
865 (
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
866
while true; do
Open commit View diff
866 while true; do
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
867
  if ! redis_checks; then
Open commit View diff
867 if ! redis_checks; then
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
868
    log_msg "Local Redis hit error limit"
Open commit View diff
868 log_msg "Local Redis hit error limit"
andryyy almost 7 years ago 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
869
    echo redis-mailcow > /tmp/com_pipe
Open commit View diff
869 echo redis-mailcow > /tmp/com_pipe
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
870
  fi
Open commit View diff
870 fi
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
871
done
Open commit View diff
871 done
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
872
) &
Open commit View diff
872 ) &
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
873
PID=$!
Open commit View diff
873 PID=$!
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
874
echo "Spawned redis_checks with PID ${PID}"
Open commit View diff
874 echo "Spawned redis_checks with PID ${PID}"
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
875
BACKGROUND_TASKS+=(${PID})
Open commit View diff
875 BACKGROUND_TASKS+=(${PID})
same change 6a7cc9e

[Watchdog] Monitor Redis

Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
876
Open commit View diff
876
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
877
(
Open commit View diff
877 (
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
878
while true; do
Open commit View diff
878 while true; do
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
879
  if ! phpfpm_checks; then
Open commit View diff
879 if ! phpfpm_checks; then
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
880
    log_msg "PHP-FPM hit error limit"
Open commit View diff
880 log_msg "PHP-FPM hit error limit"
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
881
    echo php-fpm-mailcow > /tmp/com_pipe
Open commit View diff
881 echo php-fpm-mailcow > /tmp/com_pipe
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
882
  fi
Open commit View diff
882 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
883
done
Open commit View diff
883 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
884
) &
Open commit View diff
884 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
885
PID=$!
Open commit View diff
885 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
886
echo "Spawned phpfpm_checks with PID ${PID}"
Open commit View diff
886 echo "Spawned phpfpm_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
887
BACKGROUND_TASKS+=(${PID})
Open commit View diff
887 BACKGROUND_TASKS+=(${PID})
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
888
Open commit View diff
888
andryyy about 6 years ago d392257

[Web] Some changes

Full commit hash
d3922572892bf857027bbd41b22daa6f8d164fc5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
889
if [[ "${SKIP_SOGO}" =~ ^([nN][oO]|[nN])+$ ]]; then
Open commit View diff
889 if [[ "${SKIP_SOGO}" =~ ^([nN][oO]|[nN])+$ ]]; then
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
890
(
Open commit View diff
890 (
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
891
while true; do
Open commit View diff
891 while true; do
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
892
  if ! sogo_checks; then
Open commit View diff
892 if ! sogo_checks; then
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
893
    log_msg "SOGo hit error limit"
Open commit View diff
893 log_msg "SOGo hit error limit"
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
894
    echo sogo-mailcow > /tmp/com_pipe
Open commit View diff
894 echo sogo-mailcow > /tmp/com_pipe
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
895
  fi
Open commit View diff
895 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
896
done
Open commit View diff
896 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
897
) &
Open commit View diff
897 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
898
PID=$!
Open commit View diff
898 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
899
echo "Spawned sogo_checks with PID ${PID}"
Open commit View diff
899 echo "Spawned sogo_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
900
BACKGROUND_TASKS+=(${PID})
Open commit View diff
900 BACKGROUND_TASKS+=(${PID})
andryyy about 6 years ago d392257

[Web] Some changes

Full commit hash
d3922572892bf857027bbd41b22daa6f8d164fc5
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
901
fi
Open commit View diff
901 fi
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
902
Open commit View diff
902
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
903
if [ ${CHECK_UNBOUND} -eq 1 ]; then
Open commit View diff
903 if [ ${CHECK_UNBOUND} -eq 1 ]; then
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
904
(
Open commit View diff
904 (
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
905
while true; do
Open commit View diff
905 while true; do
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
906
  if ! unbound_checks; then
Open commit View diff
906 if ! unbound_checks; then
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
907
    log_msg "Unbound hit error limit"
Open commit View diff
907 log_msg "Unbound hit error limit"
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
908
    echo unbound-mailcow > /tmp/com_pipe
Open commit View diff
908 echo unbound-mailcow > /tmp/com_pipe
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
909
  fi
Open commit View diff
909 fi
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
910
done
Open commit View diff
910 done
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
911
) &
Open commit View diff
911 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
912
PID=$!
Open commit View diff
912 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
913
echo "Spawned unbound_checks with PID ${PID}"
Open commit View diff
913 echo "Spawned unbound_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
914
BACKGROUND_TASKS+=(${PID})
Open commit View diff
914 BACKGROUND_TASKS+=(${PID})
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
915
fi
Open commit View diff
915 fi
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
916
Open commit View diff
916
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
917
if [[ "${SKIP_CLAMD}" =~ ^([nN][oO]|[nN])+$ ]]; then
Open commit View diff
917 if [[ "${SKIP_CLAMD}" =~ ^([nN][oO]|[nN])+$ ]]; then
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
918
(
Open commit View diff
918 (
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
919
while true; do
Open commit View diff
919 while true; do
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
920
  if ! clamd_checks; then
Open commit View diff
920 if ! clamd_checks; then
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
921
    log_msg "Clamd hit error limit"
Open commit View diff
921 log_msg "Clamd hit error limit"
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
922
    echo clamd-mailcow > /tmp/com_pipe
Open commit View diff
922 echo clamd-mailcow > /tmp/com_pipe
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
923
  fi
Open commit View diff
923 fi
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
924
done
Open commit View diff
924 done
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
925
) &
Open commit View diff
925 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
926
PID=$!
Open commit View diff
926 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
927
echo "Spawned clamd_checks with PID ${PID}"
Open commit View diff
927 echo "Spawned clamd_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
928
BACKGROUND_TASKS+=(${PID})
Open commit View diff
928 BACKGROUND_TASKS+=(${PID})
André almost 8 years ago 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
929
fi
Open commit View diff
929 fi
same change 2da228a

[Watchdog] Remove some check_ping checks

Full commit hash
2da228a21ebd2f37806c54784a430d20d764ee16
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
930
Open commit View diff
930
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
931
(
Open commit View diff
931 (
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
932
while true; do
Open commit View diff
932 while true; do
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
933
  if ! postfix_checks; then
Open commit View diff
933 if ! postfix_checks; then
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
934
    log_msg "Postfix hit error limit"
Open commit View diff
934 log_msg "Postfix hit error limit"
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
935
    echo postfix-mailcow > /tmp/com_pipe
Open commit View diff
935 echo postfix-mailcow > /tmp/com_pipe
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
936
  fi
Open commit View diff
936 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
937
done
Open commit View diff
937 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
938
) &
Open commit View diff
938 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
939
PID=$!
Open commit View diff
939 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
940
echo "Spawned postfix_checks with PID ${PID}"
Open commit View diff
940 echo "Spawned postfix_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
941
BACKGROUND_TASKS+=(${PID})
Open commit View diff
941 BACKGROUND_TASKS+=(${PID})
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
942
Open commit View diff
942
andryyy about 6 years ago 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
943
(
Open commit View diff
943 (
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
944
while true; do
Open commit View diff
944 while true; do
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
945
  if ! mailq_checks; then
Open commit View diff
945 if ! mailq_checks; then
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
946
    log_msg "Mail queue hit error limit"
Open commit View diff
946 log_msg "Mail queue hit error limit"
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
947
    echo mail_queue_status > /tmp/com_pipe
Open commit View diff
947 echo mail_queue_status > /tmp/com_pipe
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
948
  fi
Open commit View diff
948 fi
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
949
done
Open commit View diff
949 done
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
950
) &
Open commit View diff
950 ) &
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
951
PID=$!
Open commit View diff
951 PID=$!
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
952
echo "Spawned mailq_checks with PID ${PID}"
Open commit View diff
952 echo "Spawned mailq_checks with PID ${PID}"
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
953
BACKGROUND_TASKS+=(${PID})
Open commit View diff
953 BACKGROUND_TASKS+=(${PID})
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
954
Open commit View diff
954
DerLinkman 11 months ago 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
955
(
Open commit View diff
955 (
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
956
while true; do
Open commit View diff
956 while true; do
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
957
  if ! postfix-tlspol_checks; then
Open commit View diff
957 if ! postfix-tlspol_checks; then
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
958
    log_msg "Postfix TLS Policy hit error limit"
Open commit View diff
958 log_msg "Postfix TLS Policy hit error limit"
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
959
    echo postfix-tlspol-mailcow > /tmp/com_pipe
Open commit View diff
959 echo postfix-tlspol-mailcow > /tmp/com_pipe
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
960
  fi
Open commit View diff
960 fi
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
961
done
Open commit View diff
961 done
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
962
) &
Open commit View diff
962 ) &
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
963
PID=$!
Open commit View diff
963 PID=$!
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
964
echo "Spawned postfix-tlspol_checks with PID ${PID}"
Open commit View diff
964 echo "Spawned postfix-tlspol_checks with PID ${PID}"
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
965
BACKGROUND_TASKS+=(${PID})
Open commit View diff
965 BACKGROUND_TASKS+=(${PID})
same change 34877ec

watchdog: added postfix-tlspol check (#6691)

Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68
Author
DerLinkman <[email protected]>
Date
11 months ago
Selected line
966
Open commit View diff
966
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
967
(
Open commit View diff
967 (
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
968
while true; do
Open commit View diff
968 while true; do
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
969
  if ! dovecot_checks; then
Open commit View diff
969 if ! dovecot_checks; then
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
970
    log_msg "Dovecot hit error limit"
Open commit View diff
970 log_msg "Dovecot hit error limit"
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
971
    echo dovecot-mailcow > /tmp/com_pipe
Open commit View diff
971 echo dovecot-mailcow > /tmp/com_pipe
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
972
  fi
Open commit View diff
972 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
973
done
Open commit View diff
973 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
974
) &
Open commit View diff
974 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
975
PID=$!
Open commit View diff
975 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
976
echo "Spawned dovecot_checks with PID ${PID}"
Open commit View diff
976 echo "Spawned dovecot_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
977
BACKGROUND_TASKS+=(${PID})
Open commit View diff
977 BACKGROUND_TASKS+=(${PID})
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
978
Open commit View diff
978
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
979
(
Open commit View diff
979 (
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
980
while true; do
Open commit View diff
980 while true; do
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
981
  if ! dovecot_repl_checks; then
Open commit View diff
981 if ! dovecot_repl_checks; then
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
982
    log_msg "Dovecot hit error limit"
Open commit View diff
982 log_msg "Dovecot hit error limit"
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
983
    echo dovecot_repl_checks > /tmp/com_pipe
Open commit View diff
983 echo dovecot_repl_checks > /tmp/com_pipe
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
984
  fi
Open commit View diff
984 fi
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
985
done
Open commit View diff
985 done
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
986
) &
Open commit View diff
986 ) &
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
987
PID=$!
Open commit View diff
987 PID=$!
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
988
echo "Spawned dovecot_repl_checks with PID ${PID}"
Open commit View diff
988 echo "Spawned dovecot_repl_checks with PID ${PID}"
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
989
BACKGROUND_TASKS+=(${PID})
Open commit View diff
989 BACKGROUND_TASKS+=(${PID})
same change 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
990
Open commit View diff
990
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
991
(
Open commit View diff
991 (
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
992
while true; do
Open commit View diff
992 while true; do
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
993
  if ! rspamd_checks; then
Open commit View diff
993 if ! rspamd_checks; then
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
994
    log_msg "Rspamd hit error limit"
Open commit View diff
994 log_msg "Rspamd hit error limit"
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
995
    echo rspamd-mailcow > /tmp/com_pipe
Open commit View diff
995 echo rspamd-mailcow > /tmp/com_pipe
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
996
  fi
Open commit View diff
996 fi
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
997
done
Open commit View diff
997 done
same change 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
998
) &
Open commit View diff
998 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
999
PID=$!
Open commit View diff
999 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1000
echo "Spawned rspamd_checks with PID ${PID}"
Open commit View diff
1000 echo "Spawned rspamd_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1001
BACKGROUND_TASKS+=(${PID})
Open commit View diff
1001 BACKGROUND_TASKS+=(${PID})
andryyy almost 9 years ago 6252415

[ACME] Add timestamps, check if acme account key is valid

Full commit hash
62524150d280954ba8a214ae89c4a11175dde27e
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1002
Open commit View diff
1002
andryyy over 7 years ago 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1003
(
Open commit View diff
1003 (
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1004
while true; do
Open commit View diff
1004 while true; do
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1005
  if ! ratelimit_checks; then
Open commit View diff
1005 if ! ratelimit_checks; then
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1006
    log_msg "Ratelimit hit error limit"
Open commit View diff
1006 log_msg "Ratelimit hit error limit"
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1007
    echo ratelimit > /tmp/com_pipe
Open commit View diff
1007 echo ratelimit > /tmp/com_pipe
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1008
  fi
Open commit View diff
1008 fi
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1009
done
Open commit View diff
1009 done
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1010
) &
Open commit View diff
1010 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1011
PID=$!
Open commit View diff
1011 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1012
echo "Spawned ratelimit_checks with PID ${PID}"
Open commit View diff
1012 echo "Spawned ratelimit_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1013
BACKGROUND_TASKS+=(${PID})
Open commit View diff
1013 BACKGROUND_TASKS+=(${PID})
andryyy over 7 years ago 424bc99

[Watchdog] Add check for IPv6 NAT: Make sure IPv6 NAT container was started at least 30s after other containers

Full commit hash
424bc997ad98fb28fcc72793a6c6a8480fa90b46
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1014
Open commit View diff
1014
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1015
(
Open commit View diff
1015 (
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1016
while true; do
Open commit View diff
1016 while true; do
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1017
  if ! fail2ban_checks; then
Open commit View diff
1017 if ! fail2ban_checks; then
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1018
    log_msg "Fail2ban hit error limit"
Open commit View diff
1018 log_msg "Fail2ban hit error limit"
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1019
    echo fail2ban > /tmp/com_pipe
Open commit View diff
1019 echo fail2ban > /tmp/com_pipe
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1020
  fi
Open commit View diff
1020 fi
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1021
done
Open commit View diff
1021 done
same change dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1022
) &
Open commit View diff
1022 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1023
PID=$!
Open commit View diff
1023 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1024
echo "Spawned fail2ban_checks with PID ${PID}"
Open commit View diff
1024 echo "Spawned fail2ban_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1025
BACKGROUND_TASKS+=(${PID})
Open commit View diff
1025 BACKGROUND_TASKS+=(${PID})
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1026
Open commit View diff
1026
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1027
(
Open commit View diff
1027 (
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1028
while true; do
Open commit View diff
1028 while true; do
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1029
  if ! cert_checks; then
Open commit View diff
1029 if ! cert_checks; then
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1030
    log_msg "Cert check hit error limit"
Open commit View diff
1030 log_msg "Cert check hit error limit"
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1031
    echo certcheck > /tmp/com_pipe
Open commit View diff
1031 echo certcheck > /tmp/com_pipe
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1032
  fi
Open commit View diff
1032 fi
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1033
done
Open commit View diff
1033 done
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1034
) &
Open commit View diff
1034 ) &
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1035
PID=$!
Open commit View diff
1035 PID=$!
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1036
echo "Spawned cert_checks with PID ${PID}"
Open commit View diff
1036 echo "Spawned cert_checks with PID ${PID}"
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1037
BACKGROUND_TASKS+=(${PID})
Open commit View diff
1037 BACKGROUND_TASKS+=(${PID})
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1038
Open commit View diff
1038
Marvin A. Ruder over 1 year ago cd3b1ab

Allow disabling Olefy

Full commit hash
cd3b1ab828bdaacacbffebfd755c0fa919610f1c
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
1039
if [[ "${SKIP_OLEFY}" =~ ^([nN][oO]|[nN])+$ ]]; then
Open commit View diff
1039 if [[ "${SKIP_OLEFY}" =~ ^([nN][oO]|[nN])+$ ]]; then
andryyy almost 7 years ago a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1040
(
Open commit View diff
1040 (
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1041
while true; do
Open commit View diff
1041 while true; do
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1042
  if ! olefy_checks; then
Open commit View diff
1042 if ! olefy_checks; then
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1043
    log_msg "Olefy hit error limit"
Open commit View diff
1043 log_msg "Olefy hit error limit"
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1044
    echo olefy-mailcow > /tmp/com_pipe
Open commit View diff
1044 echo olefy-mailcow > /tmp/com_pipe
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1045
  fi
Open commit View diff
1045 fi
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1046
done
Open commit View diff
1046 done
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1047
) &
Open commit View diff
1047 ) &
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1048
PID=$!
Open commit View diff
1048 PID=$!
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1049
echo "Spawned olefy_checks with PID ${PID}"
Open commit View diff
1049 echo "Spawned olefy_checks with PID ${PID}"
same change a95a3f6

[Watchdog] Watch olefy

Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1050
BACKGROUND_TASKS+=(${PID})
Open commit View diff
1050 BACKGROUND_TASKS+=(${PID})
Marvin A. Ruder over 1 year ago cd3b1ab

Allow disabling Olefy

Full commit hash
cd3b1ab828bdaacacbffebfd755c0fa919610f1c
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
1051
fi
Open commit View diff
1051 fi
andryyy about 7 years ago 4b9f022

[Watchdog] Watch olefy, thanks to @ntimo

Full commit hash
4b9f0228900246a1c4773d98477ec9ae07701b65
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1052
Open commit View diff
1052
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1053
(
Open commit View diff
1053 (
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1054
while true; do
Open commit View diff
1054 while true; do
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1055
  if ! acme_checks; then
Open commit View diff
1055 if ! acme_checks; then
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1056
    log_msg "ACME client hit error limit"
Open commit View diff
1056 log_msg "ACME client hit error limit"
andryyy about 7 years ago 03f0bac

[Watchdog] Change error message for acme-mailcow

Full commit hash
03f0bac9164662ea945133e42fb26adb1112bd4b
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1057
    echo acme-mailcow > /tmp/com_pipe
Open commit View diff
1057 echo acme-mailcow > /tmp/com_pipe
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1058
  fi
Open commit View diff
1058 fi
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1059
done
Open commit View diff
1059 done
same change e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1060
) &
Open commit View diff
1060 ) &
andryyy almost 7 years ago 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1061
PID=$!
Open commit View diff
1061 PID=$!
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1062
echo "Spawned acme_checks with PID ${PID}"
Open commit View diff
1062 echo "Spawned acme_checks with PID ${PID}"
same change 5f9644e

[Watchdog] Minor changes and PID logging for workers, disabling olefy check

Full commit hash
5f9644e8bd961c58f7735f6c454f0289a511e885
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1063
BACKGROUND_TASKS+=(${PID})
Open commit View diff
1063 BACKGROUND_TASKS+=(${PID})
andryyy over 7 years ago e7d17ad

[Watchdog] Check for ACME failures

Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1064
Open commit View diff
1064
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1065
# Monitor watchdog agents, stop script when agents fails and wait for respawn by Docker (restart:always:n)
Open commit View diff
1065 # Monitor watchdog agents, stop script when agents fails and wait for respawn by Docker (restart:always:n)
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1066
(
Open commit View diff
1066 (
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1067
while true; do
Open commit View diff
1067 while true; do
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1068
  for bg_task in ${BACKGROUND_TASKS[*]}; do
Open commit View diff
1068 for bg_task in ${BACKGROUND_TASKS[*]}; do
André almost 9 years ago ac41305

[Watchdog] Fix kill -0 check, use tini and send kill request to tini instead of parent pid, sleep longer

Full commit hash
ac413058c127fb47332eb8695034aca71d0105a7
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
1069
    if ! kill -0 ${bg_task} 1>&2; then
Open commit View diff
1069 if ! kill -0 ${bg_task} 1>&2; then
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1070
      log_msg "Worker ${bg_task} died, stopping watchdog and waiting for respawn..."
Open commit View diff
1070 log_msg "Worker ${bg_task} died, stopping watchdog and waiting for respawn..."
André almost 9 years ago ac41305

[Watchdog] Fix kill -0 check, use tini and send kill request to tini instead of parent pid, sleep longer

Full commit hash
ac413058c127fb47332eb8695034aca71d0105a7
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
1071
      kill -TERM 1
Open commit View diff
1071 kill -TERM 1
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1072
    fi
Open commit View diff
1072 fi
André almost 9 years ago ac41305

[Watchdog] Fix kill -0 check, use tini and send kill request to tini instead of parent pid, sleep longer

Full commit hash
ac413058c127fb47332eb8695034aca71d0105a7
Author
André <[email protected]>
Date
almost 9 years ago
Selected line
1073
    sleep 10
Open commit View diff
1073 sleep 10
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1074
  done
Open commit View diff
1074 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1075
done
Open commit View diff
1075 done
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1076
) &
Open commit View diff
1076 ) &
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1077
Open commit View diff
1077
André over 8 years ago 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1078
# Monitor dockerapi
Open commit View diff
1078 # Monitor dockerapi
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1079
(
Open commit View diff
1079 (
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1080
while true; do
Open commit View diff
1080 while true; do
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1081
  while nc -z dockerapi 443; do
Open commit View diff
1081 while nc -z dockerapi 443; do
André over 8 years ago 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1082
    sleep 3
Open commit View diff
1082 sleep 3
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1083
  done
Open commit View diff
1083 done
André over 8 years ago 84a7a1a

[Compose] New images, Nginx checks for SOGo before bootstrapping

Full commit hash
84a7a1a2e7e0015018f23f2e10a7fc1c89711dca
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1084
  log_msg "Cannot find dockerapi-mailcow, waiting to recover..."
Open commit View diff
1084 log_msg "Cannot find dockerapi-mailcow, waiting to recover..."
André over 8 years ago 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1085
  kill -STOP ${BACKGROUND_TASKS[*]}
Open commit View diff
1085 kill -STOP ${BACKGROUND_TASKS[*]}
André almost 8 years ago 0fb43f4

[Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)

Full commit hash
0fb43f49161554dbe0e66cd6170ad00166efc8b3
Author
André <[email protected]>
Date
almost 8 years ago
Selected line
1086
  until nc -z dockerapi 443; do
Open commit View diff
1086 until nc -z dockerapi 443; do
André over 8 years ago 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1087
    sleep 3
Open commit View diff
1087 sleep 3
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1088
  done
Open commit View diff
1088 done
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1089
  kill -CONT ${BACKGROUND_TASKS[*]}
Open commit View diff
1089 kill -CONT ${BACKGROUND_TASKS[*]}
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1090
  kill -USR1 ${BACKGROUND_TASKS[*]}
Open commit View diff
1090 kill -USR1 ${BACKGROUND_TASKS[*]}
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1091
done
Open commit View diff
1091 done
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1092
) &
Open commit View diff
1092 ) &
same change 1e9bc49

[Rspamd] Echo dummy for fowardingshosts map; Use higher map reading interval;

Full commit hash
1e9bc49f2cbd6f4cd077701e279b30445b4370ff
Author
André <[email protected]>
Date
over 8 years ago
Selected line
1093
Open commit View diff
1093
andryyy about 7 years ago 7145c38

[Watchdog] Minor text changes and send whois report of banned IP

Full commit hash
7145c380b0bcd60741ca4c6ef93503f0e1f4c56d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1094
# Actions when threshold limit is reached
Open commit View diff
1094 # Actions when threshold limit is reached
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1095
while true; do
Open commit View diff
1095 while true; do
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1096
  CONTAINER_ID=
Open commit View diff
1096 CONTAINER_ID=
andryyy over 7 years ago 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1097
  HAS_INITDB=
Open commit View diff
1097 HAS_INITDB=
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1098
  read com_pipe_answer </tmp/com_pipe
Open commit View diff
1098 read com_pipe_answer </tmp/com_pipe
andryyy over 7 years ago 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1099
  if [ -s "/tmp/${com_pipe_answer}" ]; then
Open commit View diff
1099 if [ -s "/tmp/${com_pipe_answer}" ]; then
same change 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1100
    cat "/tmp/${com_pipe_answer}"
Open commit View diff
1100 cat "/tmp/${com_pipe_answer}"
same change 5bc8289

[Watchdog] Minor fixes, print last log lines on error

Full commit hash
5bc8289d32b3cc7ea85541f9a7325a250fb51baf
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1101
  fi
Open commit View diff
1101 fi
andryyy over 7 years ago 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1102
  if [[ ${com_pipe_answer} == "ratelimit" ]]; then
Open commit View diff
1102 if [[ ${com_pipe_answer} == "ratelimit" ]]; then
same change 6f1ec5a

[Watchdog] Alert when ratelimit log changed (does NOT send one mail per triggered ratelimit)

Full commit hash
6f1ec5acbf0a2dd19fdaf2c4749b3e0932b74469
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1103
    log_msg "At least one ratelimit was applied"
Open commit View diff
1103 log_msg "At least one ratelimit was applied"
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1104
    notify_error "${com_pipe_answer}"
Open commit View diff
1104 notify_error "${com_pipe_answer}"
andryyy about 6 years ago 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
1105
  elif [[ ${com_pipe_answer} == "mail_queue_status" ]]; then
Open commit View diff
1105 elif [[ ${com_pipe_answer} == "mail_queue_status" ]]; then
same change 063337b

[Watchdog] Watch mail queue (added inexpensive check via "find" instead of adding an API endpoint to dockerapi-mailcow)

Full commit hash
063337b58dd0428e3b9b687b20fffd2f737d5248
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
1106
    log_msg "Mail queue status is critical"
Open commit View diff
1106 log_msg "Mail queue status is critical"
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1107
    notify_error "${com_pipe_answer}"
Open commit View diff
1107 notify_error "${com_pipe_answer}"
andryyy over 6 years ago f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1108
  elif [[ ${com_pipe_answer} == "external_checks" ]]; then
Open commit View diff
1108 elif [[ ${com_pipe_answer} == "external_checks" ]]; then
same change f1aa306

[Watchdog] Add external check for open relay, requires SAL

Full commit hash
f1aa306ff2b399ae3fb3e638e5ced3eaf9961359
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1109
    log_msg "Your mailcow is an open relay!"
Open commit View diff
1109 log_msg "Your mailcow is an open relay!"
andryyy about 6 years ago be538dd

[Watchdog] Minor change to Dovecot health check

Full commit hash
be538dd94efcd7070c3bdf3afbd83c598fb58b20
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
1110
    # Define $2 to override message text, else print service was restarted at ...
Open commit View diff
1110 # Define $2 to override message text, else print service was restarted at ...
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1111
    notify_error "${com_pipe_answer}" "Please stop mailcow now and check your network configuration!"
Open commit View diff
1111 notify_error "${com_pipe_answer}" "Please stop mailcow now and check your network configuration!"
andryyy over 6 years ago 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1112
  elif [[ ${com_pipe_answer} == "mysql_repl_checks" ]]; then
Open commit View diff
1112 elif [[ ${com_pipe_answer} == "mysql_repl_checks" ]]; then
same change 20c29f8

[Watchdog] Add WATCHDOG_MYSQL_REPLICATION_CHECKS, minor fix

Full commit hash
20c29f8204078136bc677d52dd68e5afeb812218
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1113
    log_msg "MySQL replication is not working properly"
Open commit View diff
1113 log_msg "MySQL replication is not working properly"
andryyy about 6 years ago be538dd

[Watchdog] Minor change to Dovecot health check

Full commit hash
be538dd94efcd7070c3bdf3afbd83c598fb58b20
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
1114
    # Define $2 to override message text, else print service was restarted at ...
Open commit View diff
1114 # Define $2 to override message text, else print service was restarted at ...
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1115
    # Once mail per 10 minutes
Open commit View diff
1115 # Once mail per 10 minutes
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1116
    notify_error "${com_pipe_answer}" "Please check the SQL replication status" 600
Open commit View diff
1116 notify_error "${com_pipe_answer}" "Please check the SQL replication status" 600
andryyy over 6 years ago 5944595

[Watchdog] Watch replication, if any (unsupported)

Full commit hash
5944595be35b76fbdd5d06d741231239b3a06243
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1117
  elif [[ ${com_pipe_answer} == "dovecot_repl_checks" ]]; then
Open commit View diff
1117 elif [[ ${com_pipe_answer} == "dovecot_repl_checks" ]]; then
andryyy about 6 years ago be538dd

[Watchdog] Minor change to Dovecot health check

Full commit hash
be538dd94efcd7070c3bdf3afbd83c598fb58b20
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
1118
    log_msg "Dovecot replication is not working properly"
Open commit View diff
1118 log_msg "Dovecot replication is not working properly"
same change be538dd

[Watchdog] Minor change to Dovecot health check

Full commit hash
be538dd94efcd7070c3bdf3afbd83c598fb58b20
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
1119
    # Define $2 to override message text, else print service was restarted at ...
Open commit View diff
1119 # Define $2 to override message text, else print service was restarted at ...
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1120
    # Once mail per 10 minutes
Open commit View diff
1120 # Once mail per 10 minutes
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1121
    notify_error "${com_pipe_answer}" "Please check the Dovecot replicator status" 600
Open commit View diff
1121 notify_error "${com_pipe_answer}" "Please check the Dovecot replicator status" 600
andryyy almost 6 years ago bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1122
  elif [[ ${com_pipe_answer} == "certcheck" ]]; then
Open commit View diff
1122 elif [[ ${com_pipe_answer} == "certcheck" ]]; then
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1123
    log_msg "Certificates are about to expire"
Open commit View diff
1123 log_msg "Certificates are about to expire"
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1124
    # Define $2 to override message text, else print service was restarted at ...
Open commit View diff
1124 # Define $2 to override message text, else print service was restarted at ...
same change bcad1af

[Watchdog] Add certificate check for primary certificate; Add mail delay

Full commit hash
bcad1af121d036082ba3a80e3b6801b31bf95cf5
Author
andryyy <[email protected]>
Date
almost 6 years ago
Selected line
1125
    # Only mail once a day
Open commit View diff
1125 # Only mail once a day
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1126
    notify_error "${com_pipe_answer}" "Please renew your certificate" 86400
Open commit View diff
1126 notify_error "${com_pipe_answer}" "Please renew your certificate" 86400
andryyy about 7 years ago 03f0bac

[Watchdog] Change error message for acme-mailcow

Full commit hash
03f0bac9164662ea945133e42fb26adb1112bd4b
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1127
  elif [[ ${com_pipe_answer} == "acme-mailcow" ]]; then
Open commit View diff
1127 elif [[ ${com_pipe_answer} == "acme-mailcow" ]]; then
same change 03f0bac

[Watchdog] Change error message for acme-mailcow

Full commit hash
03f0bac9164662ea945133e42fb26adb1112bd4b
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1128
    log_msg "acme-mailcow did not complete successfully"
Open commit View diff
1128 log_msg "acme-mailcow did not complete successfully"
andryyy about 6 years ago be538dd

[Watchdog] Minor change to Dovecot health check

Full commit hash
be538dd94efcd7070c3bdf3afbd83c598fb58b20
Author
andryyy <[email protected]>
Date
about 6 years ago
Selected line
1129
    # Define $2 to override message text, else print service was restarted at ...
Open commit View diff
1129 # Define $2 to override message text, else print service was restarted at ...
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1130
    notify_error "${com_pipe_answer}" "Please check acme-mailcow for further information."
Open commit View diff
1130 notify_error "${com_pipe_answer}" "Please check acme-mailcow for further information."
andryyy about 7 years ago dcd0bfc

[Watchdog] Send mail when IP was banned

Full commit hash
dcd0bfc13ef1a7e9d4b716fe806b09c5332ef278
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1131
  elif [[ ${com_pipe_answer} == "fail2ban" ]]; then
Open commit View diff
1131 elif [[ ${com_pipe_answer} == "fail2ban" ]]; then
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1132
    F2B_RES=($(timeout 4s ${REDIS_CMDLINE} --raw GET F2B_RES 2> /dev/null))
Open commit View diff
1132 F2B_RES=($(timeout 4s ${REDIS_CMDLINE} --raw GET F2B_RES 2> /dev/null))
andryyy almost 7 years ago fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1133
    if [[ ! -z "${F2B_RES}" ]]; then
Open commit View diff
1133 if [[ ! -z "${F2B_RES}" ]]; then
andryyy over 6 years ago 1ad469a

[Watchdog] Use Redis master for write operations

Full commit hash
1ad469a24a461b19352767af3e90d780a327aec4
Author
andryyy <[email protected]>
Date
over 6 years ago
Selected line
1134
      ${REDIS_CMDLINE} DEL F2B_RES > /dev/null
Open commit View diff
1134 ${REDIS_CMDLINE} DEL F2B_RES > /dev/null
andryyy almost 7 years ago fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1135
      host=
Open commit View diff
1135 host=
same change fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1136
      for host in "${F2B_RES[@]}"; do
Open commit View diff
1136 for host in "${F2B_RES[@]}"; do
same change fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1137
        log_msg "Banned ${host}"
Open commit View diff
1137 log_msg "Banned ${host}"
same change fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1138
        rm /tmp/fail2ban 2> /dev/null
Open commit View diff
1138 rm /tmp/fail2ban 2> /dev/null
andryyy almost 7 years ago f00b563

[Watchdog] More fixes for watchdog...

Full commit hash
f00b563d9cdadc8adec4bfd8ee007c30043b35a3
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1139
        timeout 2s whois "${host}" > /tmp/fail2ban
Open commit View diff
1139 timeout 2s whois "${host}" > /tmp/fail2ban
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1140
        [[ ${WATCHDOG_NOTIFY_BAN} =~ ^([yY][eE][sS]|[yY])+$ ]] && notify_error "${com_pipe_answer}" "IP ban: ${host}"
Open commit View diff
1140 [[ ${WATCHDOG_NOTIFY_BAN} =~ ^([yY][eE][sS]|[yY])+$ ]] && notify_error "${com_pipe_answer}" "IP ban: ${host}"
andryyy almost 7 years ago fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1141
      done
Open commit View diff
1141 done
same change fc1e547

[Watchdog] Minor changes and better error detection; Increased ClamAV threshold

Full commit hash
fc1e547e5328d68bde4c6dbca1b8fa873ea16dda
Author
andryyy <[email protected]>
Date
almost 7 years ago
Selected line
1142
    fi
Open commit View diff
1142 fi
andryyy about 7 years ago 7145c38

[Watchdog] Minor text changes and send whois report of banned IP

Full commit hash
7145c380b0bcd60741ca4c6ef93503f0e1f4c56d
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1143
  elif [[ ${com_pipe_answer} =~ .+-mailcow ]]; then
Open commit View diff
1143 elif [[ ${com_pipe_answer} =~ .+-mailcow ]]; then
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1144
    kill -STOP ${BACKGROUND_TASKS[*]}
Open commit View diff
1144 kill -STOP ${BACKGROUND_TASKS[*]}
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1145
    sleep 10
Open commit View diff
1145 sleep 10
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
1146
    CONTAINER_ID=$(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring | contains(\"${com_pipe_answer}\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id")
Open commit View diff
1146 CONTAINER_ID=$(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/json | jq -r ".[] | {name: .Config.Labels[\"com.docker.compose.service\"], project: .Config.Labels[\"com.docker.compose.project\"], id: .Id}" | jq -rc "select( .name | tostring | contains(\"${com_pipe_answer}\")) | select( .project | tostring | contains(\"${COMPOSE_PROJECT_NAME,,}\")) | .id")
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1147
    if [[ ! -z ${CONTAINER_ID} ]]; then
Open commit View diff
1147 if [[ ! -z ${CONTAINER_ID} ]]; then
andryyy over 7 years ago 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1148
      if [[ "${com_pipe_answer}" == "php-fpm-mailcow" ]]; then
Open commit View diff
1148 if [[ "${com_pipe_answer}" == "php-fpm-mailcow" ]]; then
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
1149
        HAS_INITDB=$(curl --silent --insecure -XPOST https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/top | jq '.msg.Processes[] | contains(["php -c /usr/local/etc/php -f /web/inc/init_db.inc.php"])' | grep true)
Open commit View diff
1149 HAS_INITDB=$(curl --silent --insecure -XPOST https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/top | jq '.msg.Processes[] | contains(["php -c /usr/local/etc/php -f /web/inc/init_db.inc.php"])' | grep true)
andryyy over 7 years ago 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1150
      fi
Open commit View diff
1150 fi
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
1151
      S_RUNNING=$(($(date +%s) - $(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/json | jq .State.StartedAt | xargs -n1 date +%s -d)))
Open commit View diff
1151 S_RUNNING=$(($(date +%s) - $(curl --silent --insecure https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/json | jq .State.StartedAt | xargs -n1 date +%s -d)))
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1152
      if [ ${S_RUNNING} -lt 360 ]; then
Open commit View diff
1152 if [ ${S_RUNNING} -lt 360 ]; then
same change 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1153
        log_msg "Container is running for less than 360 seconds, skipping action..."
Open commit View diff
1153 log_msg "Container is running for less than 360 seconds, skipping action..."
andryyy over 7 years ago 2bd1b1c

[Watchdog] Skip container restart if running for less than 120 seconds

Full commit hash
2bd1b1c9609b32e5427338b62eacc2382f893142
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1154
      elif [[ ! -z ${HAS_INITDB} ]]; then
Open commit View diff
1154 elif [[ ! -z ${HAS_INITDB} ]]; then
andryyy over 7 years ago 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1155
        log_msg "Database is being initialized by php-fpm-mailcow, not restarting but delaying checks for a minute..."
Open commit View diff
1155 log_msg "Database is being initialized by php-fpm-mailcow, not restarting but delaying checks for a minute..."
same change 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1156
        sleep 60
Open commit View diff
1156 sleep 60
same change 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1157
      else
Open commit View diff
1157 else
same change 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1158
        log_msg "Sending restart command to ${CONTAINER_ID}..."
Open commit View diff
1158 log_msg "Sending restart command to ${CONTAINER_ID}..."
DerLinkman almost 2 years ago b56291f

adapt scheme to affected curl containers (dirty way... but workaround)

Full commit hash
b56291f62b07df92ebff1b119379c0007bfe9d47
Author
DerLinkman <[email protected]>
Date
almost 2 years ago
Selected line
1159
        curl --silent --insecure -XPOST https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/restart
Open commit View diff
1159 curl --silent --insecure -XPOST https://dockerapi.${COMPOSE_PROJECT_NAME}_mailcow-network/containers/${CONTAINER_ID}/restart
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1160
        notify_error "${com_pipe_answer}"
Open commit View diff
1160 notify_error "${com_pipe_answer}"
andryyy over 7 years ago 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1161
        log_msg "Wait for restarted container to settle and continue watching..."
Open commit View diff
1161 log_msg "Wait for restarted container to settle and continue watching..."
andryyy over 7 years ago 424bc99

[Watchdog] Add check for IPv6 NAT: Make sure IPv6 NAT container was started at least 30s after other containers

Full commit hash
424bc997ad98fb28fcc72793a6c6a8480fa90b46
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1162
        sleep 35
Open commit View diff
1162 sleep 35
andryyy over 7 years ago 4e2b8db

[Watchdog] Check if initdb is running and if true skip killing php-fpm-mailcow

Full commit hash
4e2b8dbd90d7801724058c0c6ec6a39659865376
Author
andryyy <[email protected]>
Date
over 7 years ago
Selected line
1163
      fi
Open commit View diff
1163 fi
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1164
    fi
Open commit View diff
1164 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1165
    kill -CONT ${BACKGROUND_TASKS[*]}
Open commit View diff
1165 kill -CONT ${BACKGROUND_TASKS[*]}
andryyy about 7 years ago 7d72c80

[Watchdog] Some changes like running checks less often, lower thresholds and a whois command fix

Full commit hash
7d72c8088a217e476f7d403bbe5cb5163c18c7cb
Author
andryyy <[email protected]>
Date
about 7 years ago
Selected line
1166
    sleep 1
Open commit View diff
1166 sleep 1
andryyy almost 9 years ago a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1167
    kill -USR1 ${BACKGROUND_TASKS[*]}
Open commit View diff
1167 kill -USR1 ${BACKGROUND_TASKS[*]}
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1168
  fi
Open commit View diff
1168 fi
same change a8fb1d3

Add experimental watchdog

Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162
Author
andryyy <[email protected]>
Date
almost 9 years ago
Selected line
1169
done
Open commit View diff
1169 done
Felix Kleinekathöfer over 3 years ago 9ef14a2

Centralized checking of enabled notifications

Full commit hash
9ef14a20d17ebdeaa49249e66068699827040fb7
Author
Felix Kleinekathöfer <[email protected]>
Date
over 3 years ago
Selected line
1170
Open commit View diff
1170