public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
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
#!/bin/bash
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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
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"
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
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
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
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
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
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
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 11
# Prepare
# 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=()
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..."
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
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}"
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
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
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
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
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..."
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
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")
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
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
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
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"
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"
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
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
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=""
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=""
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
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
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
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
# 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
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
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
fi
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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
# 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
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..."
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
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
done
same change
6a7cc9e
[Watchdog] Monitor Redis
- Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 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
# 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
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"
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
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"
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
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
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
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..."
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
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
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
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
${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
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
# 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(){
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=
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=
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=
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"
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"
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
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\}$")
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
[[ ! -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))
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
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}
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
}
}
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
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() {
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
# 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[@]}\"\)
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[@]}\"\)
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'
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))
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
}
}
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
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() {
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}
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}
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}
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}
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
[[ -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
[[ -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
[[ ${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
[[ ${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} ))
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
${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
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
# 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
[ ${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
}
}
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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() {
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
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}" | \
${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
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
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}")
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
}
}
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
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() {
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
# 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
[[ -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=
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
[[ -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
# 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}"
[[ -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
# 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}
[[ ! -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
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)"
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
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
# 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}
${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
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..."
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
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
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
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|"$||')
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
# 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
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}"
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."
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
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}"
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
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
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
# 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
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}"
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
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=
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=
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'})
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)
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
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..."
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
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
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}"
[ -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 \
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}" \
"${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 \
--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}" \
--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}" \
--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" \
--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} \
--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}" \
--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} \
--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
--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
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}"
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
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
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."
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
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}."
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
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
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
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
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
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
# 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
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
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..."
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
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
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
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)
# 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')
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')
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
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
# 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")
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
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
# 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}
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
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"
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
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
}
}
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
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() {
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
# ${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=()
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=()
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=
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
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
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
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)
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
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
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
# 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"))
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
# 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))
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
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
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'))
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
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
# 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
[[ -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
[[ -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
# 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
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
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
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}
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
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
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
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
[[ ! -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
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
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
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))
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
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}
[[ ${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
}
}
same change
df5c79c
Fixes for watchdog!
- Full commit hash
df5c79c3f11007f00fa0f3f35bf1a8515de78bdc- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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
# 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
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
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."
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
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
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
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() {
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
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
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}
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
# 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)
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
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
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}
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)"
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
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
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 ))
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
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)"
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
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
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 ))
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
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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
return 1
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 293
}
}
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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')
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
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
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))
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
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
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
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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
# 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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
fi
same change
6a7cc9e
[Watchdog] Monitor Redis
- Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 349
done
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
return 1
same change
6a7cc9e
[Watchdog] Monitor Redis
- Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 351
}
}
same change
6a7cc9e
[Watchdog] Monitor Redis
- Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 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() {
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
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
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}
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
# 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
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
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
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}
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} + $? ))
/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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
return 1
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 376
}
}
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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() {
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
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
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}
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
# 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
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
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
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}
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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
return 1
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 425
}
}
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
return 1
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 451
}
}
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
same change
34877ec
watchdog: added postfix-tlspol check (#6691)
- Full commit hash
34877ecf9c976f52ccff73311a1424021d4b2e68- Author
- DerLinkman <[email protected]>
- Date
- 11 months ago
- Selected line
- 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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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} + $? ))
/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} + $? ))
/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} + $? ))
/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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
return 1
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 530
}
}
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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() {
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
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
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}
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)
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
# 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
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
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}
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)
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
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 ))
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
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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
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
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
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
# 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
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
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
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)
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)
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}
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} + $? ))
/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} + $? ))
/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
[ ${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} ))
[ ${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}
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
# 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
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
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
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
}
}
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
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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
return 1
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 605
}
}
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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() {
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
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
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}
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)
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
# 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
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
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}
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}
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)
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
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 ))
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
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
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
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
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
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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
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
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}
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
# 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
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
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
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)
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
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}
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
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 ))
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
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
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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
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
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}
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))
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=
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
# 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
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
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}
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[@]})
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))
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
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
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 ))
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
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
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
${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
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
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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
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
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}
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)
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
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
${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
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
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
# 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
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
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}
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}
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
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
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)
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
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))
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
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
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 ))
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
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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
same change
e7d17ad
[Watchdog] Check for ACME failures
- Full commit hash
e7d17ad1acc9254052524eca5cc672e095f7c288- Author
- andryyy <[email protected]>
- Date
- over 7 years ago
- Selected line
- 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() {
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
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
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}
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
# 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
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
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
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)
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}
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
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
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
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
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/\..*//' )
' | 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
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
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))
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
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
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
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
# 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
# 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
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 ));
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
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
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
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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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() {
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
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
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}
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
# 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
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
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
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)
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}
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} + $? ))
/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
[ ${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} ))
[ ${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}
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
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
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
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
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
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 ))
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
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
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
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
}
}
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
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
# 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
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."
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
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
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
# 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
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
(
(
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
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
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"
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
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
fi
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 819
done
done
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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=$!
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}"
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})
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
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
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
(
(
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
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
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"
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
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
fi
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 859
done
done
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
fi
same change
6a7cc9e
[Watchdog] Monitor Redis
- Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 871
done
done
same change
6a7cc9e
[Watchdog] Monitor Redis
- Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 872
) &
) &
same change
6a7cc9e
[Watchdog] Monitor Redis
- Full commit hash
6a7cc9ec8013973314532ec6eda6a1309bf57a3f- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 873
PID=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
fi
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 883
done
done
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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=$!
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}"
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})
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
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
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
(
(
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
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
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"
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
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
fi
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 896
done
done
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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=$!
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}"
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})
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
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
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
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
(
(
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
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
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"
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
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
fi
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 937
done
done
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
fi
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 973
done
done
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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
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
(
(
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
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
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"
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
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
fi
same change
a95a3f6
[Watchdog] Watch olefy
- Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 1046
done
done
same change
a95a3f6
[Watchdog] Watch olefy
- Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 1047
) &
) &
same change
a95a3f6
[Watchdog] Watch olefy
- Full commit hash
a95a3f6145383cd0d23c46569c0a99d5cd35cb01- Author
- andryyy <[email protected]>
- Date
- almost 7 years ago
- Selected line
- 1048
PID=$!
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}"
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})
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
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
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
(
(
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
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
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"
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
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
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
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
) &
) &
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=$!
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}"
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})
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
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)
# 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
(
(
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
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
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
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..."
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
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
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
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
done
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 1075
done
done
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 1076
) &
) &
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 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
# 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
(
(
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
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
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
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
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..."
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[*]}
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
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
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
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[*]}
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[*]}
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
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
) &
) &
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
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
# 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
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=
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=
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
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
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}"
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
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
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"
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}"
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
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"
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}"
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
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!"
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 ...
# 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!"
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
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"
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 ...
# 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
# 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
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
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"
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 ...
# 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
# 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
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
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"
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 ...
# 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
# 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
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
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"
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 ...
# 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."
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
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))
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
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
${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=
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
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}"
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
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
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}"
[[ ${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
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
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
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[*]}
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
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")
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
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
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)
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
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)))
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
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..."
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
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..."
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
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
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}..."
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
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}"
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..."
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
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
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
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[*]}
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
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[*]}
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
fi
same change
a8fb1d3
Add experimental watchdog
- Full commit hash
a8fb1d3f4fe88a136bc8e4dbc410af64c09a1162- Author
- andryyy <[email protected]>
- Date
- almost 9 years ago
- Selected line
- 1169
done
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