NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

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

Trace

data/Dockerfiles/watchdog/check_mysql_slavestatus.sh

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

check_mysql_slavestatus.sh on main
Author Date Commit Line Code
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
1
#!/bin/bash
Open commit View diff
1 #!/bin/bash
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
2
#########################################################################
Open commit View diff
2 #########################################################################
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
3
# Script:       check_mysql_slavestatus.sh                              #
Open commit View diff
3 # Script: check_mysql_slavestatus.sh #
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
4
# Author:       Claudio Kuenzler www.claudiokuenzler.com                #
Open commit View diff
4 # Author: Claudio Kuenzler www.claudiokuenzler.com #
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
5
# Purpose:      Monitor MySQL Replication status with Nagios            #
Open commit View diff
5 # Purpose: Monitor MySQL Replication status with Nagios #
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
6
# Description:  Connects to given MySQL hosts and checks for running    #
Open commit View diff
6 # Description: Connects to given MySQL hosts and checks for running #
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
7
#               SLAVE state and delivers additional info                #
Open commit View diff
7 # SLAVE state and delivers additional info #
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
8
# Original:     This script is a modified version of                    #
Open commit View diff
8 # Original: This script is a modified version of #
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
9
#               check mysql slave sql running written by dhirajt        #
Open commit View diff
9 # check mysql slave sql running written by dhirajt #
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
10
# Thanks to:    Victor Balada Diaz for his ideas added on 20080930      #
Open commit View diff
10 # Thanks to: Victor Balada Diaz for his ideas added on 20080930 #
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
11
#               Soren Klintrup for stuff added on 20081015              #
Open commit View diff
11 # Soren Klintrup for stuff added on 20081015 #
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
12
#               Marc Feret for Slave_IO_Running check 20111227          #
Open commit View diff
12 # Marc Feret for Slave_IO_Running check 20111227 #
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
13
#               Peter Lecki for his mods added on 20120803              #
Open commit View diff
13 # Peter Lecki for his mods added on 20120803 #
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
14
#               Serge Victor for his mods added on 20131223             #
Open commit View diff
14 # Serge Victor for his mods added on 20131223 #
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
15
#               Omri Bahumi for his fix added on 20131230               #
Open commit View diff
15 # Omri Bahumi for his fix added on 20131230 #
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
16
#               Marc Falzon for his option mods added on 20190822       #
Open commit View diff
16 # Marc Falzon for his option mods added on 20190822 #
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
17
#               Andreas Pfeiffer for adding socket option on 20190822   #
Open commit View diff
17 # Andreas Pfeiffer for adding socket option on 20190822 #
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
18
# History:                                                              #
Open commit View diff
18 # History: #
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
19
# 2008041700 Original Script modified                                   #
Open commit View diff
19 # 2008041700 Original Script modified #
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
20
# 2008041701 Added additional info if status OK                         #
Open commit View diff
20 # 2008041701 Added additional info if status OK #
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
21
# 2008041702 Added usage of script with params -H -u -p                 #
Open commit View diff
21 # 2008041702 Added usage of script with params -H -u -p #
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
22
# 2008041703 Added bindir variable for multiple platforms               #
Open commit View diff
22 # 2008041703 Added bindir variable for multiple platforms #
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
23
# 2008041704 Added help because mankind needs help                      #
Open commit View diff
23 # 2008041704 Added help because mankind needs help #
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
24
# 2008093000 Using /bin/sh instead of /bin/bash                         #
Open commit View diff
24 # 2008093000 Using /bin/sh instead of /bin/bash #
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
25
# 2008093001 Added port for MySQL server                                #
Open commit View diff
25 # 2008093001 Added port for MySQL server #
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
26
# 2008093002 Added mysqldir if mysql binary is elsewhere                #
Open commit View diff
26 # 2008093002 Added mysqldir if mysql binary is elsewhere #
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
27
# 2008101501 Changed bindir/mysqldir to use PATH                        #
Open commit View diff
27 # 2008101501 Changed bindir/mysqldir to use PATH #
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
28
# 2008101501 Use $() instead of `` to avoid forks                       #
Open commit View diff
28 # 2008101501 Use $() instead of `` to avoid forks #
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
29
# 2008101501 Use ${} for variables to prevent problems                  #
Open commit View diff
29 # 2008101501 Use ${} for variables to prevent problems #
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
30
# 2008101501 Check if required commands exist                           #
Open commit View diff
30 # 2008101501 Check if required commands exist #
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
31
# 2008101501 Check if mysql connection works                            #
Open commit View diff
31 # 2008101501 Check if mysql connection works #
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
32
# 2008101501 Exit with unknown status at script end                     #
Open commit View diff
32 # 2008101501 Exit with unknown status at script end #
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
33
# 2008101501 Also display help if no option is given                    #
Open commit View diff
33 # 2008101501 Also display help if no option is given #
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
34
# 2008101501 Add warning/critical check to delay                        #
Open commit View diff
34 # 2008101501 Add warning/critical check to delay #
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
35
# 2011062200 Add perfdata                                               #
Open commit View diff
35 # 2011062200 Add perfdata #
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
36
# 2011122700 Checking Slave_IO_Running                                  #
Open commit View diff
36 # 2011122700 Checking Slave_IO_Running #
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
37
# 2012080300 Changed to use only one mysql query                        #
Open commit View diff
37 # 2012080300 Changed to use only one mysql query #
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
38
# 2012080301 Added warn and crit delay as optional args                 #
Open commit View diff
38 # 2012080301 Added warn and crit delay as optional args #
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
39
# 2012080302 Added standard -h option for syntax help                   #
Open commit View diff
39 # 2012080302 Added standard -h option for syntax help #
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
40
# 2012080303 Added check for mandatory options passed in                #
Open commit View diff
40 # 2012080303 Added check for mandatory options passed in #
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
41
# 2012080304 Added error output from mysql                              #
Open commit View diff
41 # 2012080304 Added error output from mysql #
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
42
# 2012080305 Changed from 'cut' to 'awk' (eliminate ws)                 #
Open commit View diff
42 # 2012080305 Changed from 'cut' to 'awk' (eliminate ws) #
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
43
# 2012111600 Do not show password in error output                       #
Open commit View diff
43 # 2012111600 Do not show password in error output #
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
44
# 2013042800 Changed PATH to use existing PATH, too                     #
Open commit View diff
44 # 2013042800 Changed PATH to use existing PATH, too #
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
45
# 2013050800 Bugfix in PATH export                                      #
Open commit View diff
45 # 2013050800 Bugfix in PATH export #
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
46
# 2013092700 Bugfix in PATH export                                      #
Open commit View diff
46 # 2013092700 Bugfix in PATH export #
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
47
# 2013092701 Bugfix in getopts                                          #
Open commit View diff
47 # 2013092701 Bugfix in getopts #
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
48
# 2013101600 Rewrite of threshold logic and handling                    #
Open commit View diff
48 # 2013101600 Rewrite of threshold logic and handling #
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
49
# 2013101601 Optical clean up                                           #
Open commit View diff
49 # 2013101601 Optical clean up #
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
50
# 2013101602 Rewrite help output                                        #
Open commit View diff
50 # 2013101602 Rewrite help output #
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
51
# 2013101700 Handle Slave IO in 'Connecting' state                      #
Open commit View diff
51 # 2013101700 Handle Slave IO in 'Connecting' state #
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
52
# 2013101701 Minor changes in output, handling UNKNOWN situations now   #
Open commit View diff
52 # 2013101701 Minor changes in output, handling UNKNOWN situations now #
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
53
# 2013101702 Exit CRITICAL when Slave IO in Connecting state            #
Open commit View diff
53 # 2013101702 Exit CRITICAL when Slave IO in Connecting state #
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
54
# 2013123000 Slave_SQL_Running also matched Slave_SQL_Running_State     #
Open commit View diff
54 # 2013123000 Slave_SQL_Running also matched Slave_SQL_Running_State #
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
55
# 2015011600 Added 'moving' check to catch possible connection issues   #
Open commit View diff
55 # 2015011600 Added 'moving' check to catch possible connection issues #
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
56
# 2015011900 Use its own threshold for replication moving check         #
Open commit View diff
56 # 2015011900 Use its own threshold for replication moving check #
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
57
# 2019082200 Add support for mysql option file                          #
Open commit View diff
57 # 2019082200 Add support for mysql option file #
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
58
# 2019082201 Improve password security (remove from mysql cli)          #
Open commit View diff
58 # 2019082201 Improve password security (remove from mysql cli) #
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
59
# 2019082202 Added socket parameter (-S)                                #
Open commit View diff
59 # 2019082202 Added socket parameter (-S) #
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
60
# 2019082203 Use default port 3306, makes -P optional                   #
Open commit View diff
60 # 2019082203 Use default port 3306, makes -P optional #
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
61
# 2019082204 Fix moving subcheck, improve documentation                 #
Open commit View diff
61 # 2019082204 Fix moving subcheck, improve documentation #
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
62
#########################################################################
Open commit View diff
62 #########################################################################
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
63
# Usage: ./check_mysql_slavestatus.sh (-o file|(-H dbhost [-P port]|-S socket) -u dbuser -p dbpass) [-s connection] [-w integer] [-c integer] [-m integer]
Open commit View diff
63 # Usage: ./check_mysql_slavestatus.sh (-o file|(-H dbhost [-P port]|-S socket) -u dbuser -p dbpass) [-s connection] [-w integer] [-c integer] [-m integer]
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
64
#########################################################################
Open commit View diff
64 #########################################################################
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
65
help="\ncheck_mysql_slavestatus.sh (c) 2008-2019 GNU GPLv2 licence
Open commit View diff
65 help="\ncheck_mysql_slavestatus.sh (c) 2008-2019 GNU GPLv2 licence
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
66
Usage: $0 (-o file|(-H dbhost [-P port]|-S socket) -u username -p password) [-s connection] [-w integer] [-c integer] [-m]\n
Open commit View diff
66 Usage: $0 (-o file|(-H dbhost [-P port]|-S socket) -u username -p password) [-s connection] [-w integer] [-c integer] [-m]\n
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
67
Options:\n-o Path to option file containing connection settings (e.g. /home/nagios/.my.cnf). Note: If this option is used, -H, -u, -p parameters will become optional\n-H Hostname or IP of slave server\n-P MySQL Port of slave server (optional, defaults to 3306)\n-u Username of DB-user\n-p Password of DB-user\n-S database socket\n-s Connection name (optional, with multi-source replication)\n-w Replication delay in seconds for Warning status (optional)\n-c Replication delay in seconds for Critical status (optional)\n-m Threshold in seconds since when replication did not move (compares the slaves log position)\n
Open commit View diff
67 Options:\n-o Path to option file containing connection settings (e.g. /home/nagios/.my.cnf). Note: If this option is used, -H, -u, -p parameters will become optional\n-H Hostname or IP of slave server\n-P MySQL Port of slave server (optional, defaults to 3306)\n-u Username of DB-user\n-p Password of DB-user\n-S database socket\n-s Connection name (optional, with multi-source replication)\n-w Replication delay in seconds for Warning status (optional)\n-c Replication delay in seconds for Critical status (optional)\n-m Threshold in seconds since when replication did not move (compares the slaves log position)\n
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
68
Attention: The DB-user you type in must have CLIENT REPLICATION rights on the DB-server. Example:\n\tGRANT REPLICATION CLIENT on *.* TO 'nagios'@'%' IDENTIFIED BY 'secret';"
Open commit View diff
68 Attention: The DB-user you type in must have CLIENT REPLICATION rights on the DB-server. Example:\n\tGRANT REPLICATION CLIENT on *.* TO 'nagios'@'%' IDENTIFIED BY 'secret';"
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
69
Open commit View diff
69
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
70
STATE_OK=0              # define the exit code if status is OK
Open commit View diff
70 STATE_OK=0 # define the exit code if status is OK
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
71
STATE_WARNING=1         # define the exit code if status is Warning (not really used)
Open commit View diff
71 STATE_WARNING=1 # define the exit code if status is Warning (not really used)
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
72
STATE_CRITICAL=2        # define the exit code if status is Critical
Open commit View diff
72 STATE_CRITICAL=2 # define the exit code if status is Critical
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
73
STATE_UNKNOWN=3         # define the exit code if status is Unknown
Open commit View diff
73 STATE_UNKNOWN=3 # define the exit code if status is Unknown
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
74
export PATH=$PATH:/usr/local/bin:/usr/bin:/bin # Set path
Open commit View diff
74 export PATH=$PATH:/usr/local/bin:/usr/bin:/bin # Set path
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
75
crit="No"               # what is the answer of MySQL Slave_SQL_Running for a Critical status?
Open commit View diff
75 crit="No" # what is the answer of MySQL Slave_SQL_Running for a Critical status?
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
76
ok="Yes"                # what is the answer of MySQL Slave_SQL_Running for an OK status?
Open commit View diff
76 ok="Yes" # what is the answer of MySQL Slave_SQL_Running for an OK status?
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
77
port="-P 3306"          # on which tcp port is the target MySQL slave listening?
Open commit View diff
77 port="-P 3306" # on which tcp port is the target MySQL slave listening?
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
78
Open commit View diff
78
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
79
for cmd in mysql awk grep expr [
Open commit View diff
79 for cmd in mysql awk grep expr [
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
80
do
Open commit View diff
80 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
81
 if ! `which ${cmd} &>/dev/null`
Open commit View diff
81 if ! `which ${cmd} &>/dev/null`
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
82
 then
Open commit View diff
82 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
83
  echo "UNKNOWN: This script requires the command '${cmd}' but it does not exist; please check if command exists and PATH is correct"
Open commit View diff
83 echo "UNKNOWN: This script requires the command '${cmd}' but it does not exist; please check if command exists and PATH is correct"
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
84
  exit ${STATE_UNKNOWN}
Open commit View diff
84 exit ${STATE_UNKNOWN}
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
85
 fi
Open commit View diff
85 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
86
done
Open commit View diff
86 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
87
Open commit View diff
87
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
88
# Check for people who need help
Open commit View diff
88 # Check for people who need help
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
89
#########################################################################
Open commit View diff
89 #########################################################################
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
90
if [ "${1}" = "--help" -o "${#}" = "0" ];
Open commit View diff
90 if [ "${1}" = "--help" -o "${#}" = "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
91
        then
Open commit View diff
91 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
92
        echo -e "${help}";
Open commit View diff
92 echo -e "${help}";
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
93
        exit 1;
Open commit View diff
93 exit 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
94
fi
Open commit View diff
94 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
95
Open commit View diff
95
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
96
# Important given variables for the DB-Connect
Open commit View diff
96 # Important given variables for the DB-Connect
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
97
#########################################################################
Open commit View diff
97 #########################################################################
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
98
while getopts "H:P:u:p:S:s:w:c:o:m:h" Input;
Open commit View diff
98 while getopts "H:P:u:p:S:s:w:c:o:m:h" Input;
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
99
do
Open commit View diff
99 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
100
        case ${Input} in
Open commit View diff
100 case ${Input} in
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
101
        H)      host="-h ${OPTARG}";slavetarget=${OPTARG};;
Open commit View diff
101 H) host="-h ${OPTARG}";slavetarget=${OPTARG};;
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
102
        P)      port="-P ${OPTARG}";;
Open commit View diff
102 P) port="-P ${OPTARG}";;
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
103
        u)      user="-u ${OPTARG}";;
Open commit View diff
103 u) user="-u ${OPTARG}";;
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
104
        p)      password="${OPTARG}"; export MYSQL_PWD="${OPTARG}";;
Open commit View diff
104 p) password="${OPTARG}"; export MYSQL_PWD="${OPTARG}";;
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
105
        S)      socket="-S ${OPTARG}";;
Open commit View diff
105 S) socket="-S ${OPTARG}";;
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
106
        s)      connection=\"${OPTARG}\";;
Open commit View diff
106 s) connection=\"${OPTARG}\";;
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
107
        w)      warn_delay=${OPTARG};;
Open commit View diff
107 w) warn_delay=${OPTARG};;
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
108
        c)      crit_delay=${OPTARG};;
Open commit View diff
108 c) crit_delay=${OPTARG};;
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
109
        o)      optfile="--defaults-extra-file=${OPTARG}";;
Open commit View diff
109 o) optfile="--defaults-extra-file=${OPTARG}";;
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
110
        m)      moving=${OPTARG};;
Open commit View diff
110 m) moving=${OPTARG};;
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
111
        h)      echo -e "${help}"; exit 1;;
Open commit View diff
111 h) echo -e "${help}"; exit 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
112
        \?)     echo "Wrong option given. Check help (-h, --help) for usage."
Open commit View diff
112 \?) echo "Wrong option given. Check help (-h, --help) for usage."
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
113
                exit 1
Open commit View diff
113 exit 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
114
                ;;
Open commit View diff
114 ;;
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
115
        esac
Open commit View diff
115 esac
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
116
done
Open commit View diff
116 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
117
Open commit View diff
117
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
118
# Check if we can write to tmp
Open commit View diff
118 # Check if we can write to tmp
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
119
#########################################################################
Open commit View diff
119 #########################################################################
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
120
test -w /tmp && tmpfile="/tmp/mysql_slave_${slavetarget}_pos.txt"
Open commit View diff
120 test -w /tmp && tmpfile="/tmp/mysql_slave_${slavetarget}_pos.txt"
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
121
Open commit View diff
121
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
122
# Connect to the DB server and check for informations
Open commit View diff
122 # Connect to the DB server and check for informations
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
123
#########################################################################
Open commit View diff
123 #########################################################################
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
124
# Check whether all required arguments were passed in (either option file or full connection settings)
Open commit View diff
124 # Check whether all required arguments were passed in (either option file or full connection settings)
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
125
if [[ -z "${optfile}" && -z "${host}" && -z "${socket}" ]]; then
Open commit View diff
125 if [[ -z "${optfile}" && -z "${host}" && -z "${socket}" ]]; 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
126
  echo -e "Missing required parameter(s)"; exit ${STATE_UNKNOWN}
Open commit View diff
126 echo -e "Missing required parameter(s)"; exit ${STATE_UNKNOWN}
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
127
elif [[ -n "${host}" && (-z "${user}" || -z "${password}") ]]; then
Open commit View diff
127 elif [[ -n "${host}" && (-z "${user}" || -z "${password}") ]]; 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
128
  echo -e "Missing required parameter(s)"; exit ${STATE_UNKNOWN}
Open commit View diff
128 echo -e "Missing required parameter(s)"; exit ${STATE_UNKNOWN}
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
129
elif [[ -n "${socket}" && (-z "${user}" || -z "${password}") ]]; then
Open commit View diff
129 elif [[ -n "${socket}" && (-z "${user}" || -z "${password}") ]]; 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
130
  echo -e "Missing required parameter(s)"; exit ${STATE_UNKNOWN}
Open commit View diff
130 echo -e "Missing required parameter(s)"; exit ${STATE_UNKNOWN}
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
131
fi
Open commit View diff
131 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
132
Open commit View diff
132
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
133
# Connect to the DB server and store output in vars
Open commit View diff
133 # Connect to the DB server and store output in vars
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
134
if [[ -n $socket ]]; then
Open commit View diff
134 if [[ -n $socket ]]; then
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
135
  ConnectionResult=$(mariadb --skip-ssl ${optfile} ${socket} ${user} -e "show slave ${connection} status\G" 2>&1)
Open commit View diff
135 ConnectionResult=$(mariadb --skip-ssl ${optfile} ${socket} ${user} -e "show slave ${connection} status\G" 2>&1)
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
136
else
Open commit View diff
136 else
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
137
  ConnectionResult=$(mariadb --skip-ssl ${optfile} ${host} ${port} ${user} -e "show slave ${connection} status\G" 2>&1)
Open commit View diff
137 ConnectionResult=$(mariadb --skip-ssl ${optfile} ${host} ${port} ${user} -e "show slave ${connection} status\G" 2>&1)
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
138
fi
Open commit View diff
138 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
139
Open commit View diff
139
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
140
if [ -z "`echo "${ConnectionResult}" |grep Slave_IO_State`" ]; then
Open commit View diff
140 if [ -z "`echo "${ConnectionResult}" |grep Slave_IO_State`" ]; 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
141
        echo -e "CRITICAL: Unable to connect to server"
Open commit View diff
141 echo -e "CRITICAL: Unable to connect to server"
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
142
        exit ${STATE_CRITICAL}
Open commit View diff
142 exit ${STATE_CRITICAL}
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
143
fi
Open commit View diff
143 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
144
check=`echo "${ConnectionResult}" |grep Slave_SQL_Running: | awk '{print $2}'`
Open commit View diff
144 check=`echo "${ConnectionResult}" |grep Slave_SQL_Running: | awk '{print $2}'`
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
145
checkio=`echo "${ConnectionResult}" |grep Slave_IO_Running: | awk '{print $2}'`
Open commit View diff
145 checkio=`echo "${ConnectionResult}" |grep Slave_IO_Running: | awk '{print $2}'`
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
146
masterinfo=`echo "${ConnectionResult}" |grep  Master_Host: | awk '{print $2}'`
Open commit View diff
146 masterinfo=`echo "${ConnectionResult}" |grep Master_Host: | awk '{print $2}'`
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
147
delayinfo=`echo "${ConnectionResult}" |grep Seconds_Behind_Master: | awk '{print $2}'`
Open commit View diff
147 delayinfo=`echo "${ConnectionResult}" |grep Seconds_Behind_Master: | awk '{print $2}'`
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
148
readpos=`echo "${ConnectionResult}" |grep Read_Master_Log_Pos: | awk '{print $2}'`
Open commit View diff
148 readpos=`echo "${ConnectionResult}" |grep Read_Master_Log_Pos: | awk '{print $2}'`
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
149
execpos=`echo "${ConnectionResult}" |grep Exec_Master_Log_Pos: | awk '{print $2}'`
Open commit View diff
149 execpos=`echo "${ConnectionResult}" |grep Exec_Master_Log_Pos: | awk '{print $2}'`
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
150
Open commit View diff
150
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
151
# Output of different exit states
Open commit View diff
151 # Output of different exit states
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
152
#########################################################################
Open commit View diff
152 #########################################################################
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
153
if [ ${check} = "NULL" ]; then
Open commit View diff
153 if [ ${check} = "NULL" ]; 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
154
echo "CRITICAL: Slave_SQL_Running is answering NULL"; exit ${STATE_CRITICAL};
Open commit View diff
154 echo "CRITICAL: Slave_SQL_Running is answering NULL"; exit ${STATE_CRITICAL};
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
155
fi
Open commit View diff
155 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
156
Open commit View diff
156
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
157
if [ ${check} = ${crit} ]; then
Open commit View diff
157 if [ ${check} = ${crit} ]; 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
158
echo "CRITICAL: ${host}:${port} Slave_SQL_Running: ${check}"; exit ${STATE_CRITICAL};
Open commit View diff
158 echo "CRITICAL: ${host}:${port} Slave_SQL_Running: ${check}"; exit ${STATE_CRITICAL};
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
159
fi
Open commit View diff
159 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
160
Open commit View diff
160
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
161
if [ ${checkio} = ${crit} ]; then
Open commit View diff
161 if [ ${checkio} = ${crit} ]; 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
162
echo "CRITICAL: ${host} Slave_IO_Running: ${checkio}"; exit ${STATE_CRITICAL};
Open commit View diff
162 echo "CRITICAL: ${host} Slave_IO_Running: ${checkio}"; exit ${STATE_CRITICAL};
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
163
fi
Open commit View diff
163 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
164
Open commit View diff
164
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
165
if [ ${checkio} = "Connecting" ]; then
Open commit View diff
165 if [ ${checkio} = "Connecting" ]; 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
166
echo "CRITICAL: ${host} Slave_IO_Running: ${checkio}"; exit ${STATE_CRITICAL};
Open commit View diff
166 echo "CRITICAL: ${host} Slave_IO_Running: ${checkio}"; exit ${STATE_CRITICAL};
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
167
fi
Open commit View diff
167 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
168
Open commit View diff
168
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
169
if [ ${check} = ${ok} ] && [ ${checkio} = ${ok} ]; then
Open commit View diff
169 if [ ${check} = ${ok} ] && [ ${checkio} = ${ok} ]; 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
170
 # Delay thresholds are set
Open commit View diff
170 # Delay thresholds are set
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
171
 if [[ -n ${warn_delay} ]] && [[ -n ${crit_delay} ]]; then
Open commit View diff
171 if [[ -n ${warn_delay} ]] && [[ -n ${crit_delay} ]]; 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
172
  if ! [[ ${warn_delay} -gt 0 ]]; then echo "Warning threshold must be a valid integer greater than 0"; exit $STATE_UNKNOWN; fi
Open commit View diff
172 if ! [[ ${warn_delay} -gt 0 ]]; then echo "Warning threshold must be a valid integer greater than 0"; exit $STATE_UNKNOWN; 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
173
  if ! [[ ${crit_delay} -gt 0 ]]; then echo "Warning threshold must be a valid integer greater than 0"; exit $STATE_UNKNOWN; fi
Open commit View diff
173 if ! [[ ${crit_delay} -gt 0 ]]; then echo "Warning threshold must be a valid integer greater than 0"; exit $STATE_UNKNOWN; 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
174
  if [[ -z ${warn_delay} ]] || [[ -z ${crit_delay} ]]; then echo "Both warning and critical thresholds must be set"; exit $STATE_UNKNOWN; fi
Open commit View diff
174 if [[ -z ${warn_delay} ]] || [[ -z ${crit_delay} ]]; then echo "Both warning and critical thresholds must be set"; exit $STATE_UNKNOWN; 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
175
  if [[ ${warn_delay} -gt ${crit_delay} ]]; then echo "Warning threshold cannot be greater than critical"; exit $STATE_UNKNOWN; fi
Open commit View diff
175 if [[ ${warn_delay} -gt ${crit_delay} ]]; then echo "Warning threshold cannot be greater than critical"; exit $STATE_UNKNOWN; 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
176
Open commit View diff
176
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
177
  if [[ ${delayinfo} -ge ${crit_delay} ]]
Open commit View diff
177 if [[ ${delayinfo} -ge ${crit_delay} ]]
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
178
  then echo "CRITICAL: Slave is ${delayinfo} seconds behind Master | delay=${delayinfo}s"; exit ${STATE_CRITICAL}
Open commit View diff
178 then echo "CRITICAL: Slave is ${delayinfo} seconds behind Master | delay=${delayinfo}s"; exit ${STATE_CRITICAL}
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
179
  elif [[ ${delayinfo} -ge ${warn_delay} ]]
Open commit View diff
179 elif [[ ${delayinfo} -ge ${warn_delay} ]]
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
180
  then echo "WARNING: Slave is ${delayinfo} seconds behind Master | delay=${delayinfo}s"; exit ${STATE_WARNING}
Open commit View diff
180 then echo "WARNING: Slave is ${delayinfo} seconds behind Master | delay=${delayinfo}s"; exit ${STATE_WARNING}
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
181
  else
Open commit View diff
181 else
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
182
    # Everything looks OK here but now let us check if the replication is moving
Open commit View diff
182 # Everything looks OK here but now let us check if the replication is moving
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
183
    if [[ -n ${moving} ]] && [[ -n ${tmpfile} ]] && [[ $readpos -eq $execpos ]]
Open commit View diff
183 if [[ -n ${moving} ]] && [[ -n ${tmpfile} ]] && [[ $readpos -eq $execpos ]]
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
184
    then
Open commit View diff
184 then
same change 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
185
      #echo "Debug: Read pos is $readpos - Exec pos is $execpos"
Open commit View diff
185 #echo "Debug: Read pos is $readpos - Exec pos is $execpos"
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
186
      # Check if tmp file exists
Open commit View diff
186 # Check if tmp file exists
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
187
      curtime=`date +%s`
Open commit View diff
187 curtime=`date +%s`
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
188
      if [[ -w $tmpfile ]]
Open commit View diff
188 if [[ -w $tmpfile ]]
same change 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
189
      then
Open commit View diff
189 then
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
190
        tmpfiletime=`date +%s -r $tmpfile`
Open commit View diff
190 tmpfiletime=`date +%s -r $tmpfile`
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
191
        if [[ `expr $curtime - $tmpfiletime` -gt ${moving} ]]
Open commit View diff
191 if [[ `expr $curtime - $tmpfiletime` -gt ${moving} ]]
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
192
        then
Open commit View diff
192 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
193
          exectmp=`cat $tmpfile`
Open commit View diff
193 exectmp=`cat $tmpfile`
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
194
          #echo "Debug: Exec pos in tmpfile is $exectmp"
Open commit View diff
194 #echo "Debug: Exec pos in tmpfile is $exectmp"
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
195
          if [[ $exectmp -eq $execpos ]]
Open commit View diff
195 if [[ $exectmp -eq $execpos ]]
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
196
          then
Open commit View diff
196 then
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
197
            # The value read from the tmp file and from db are the same. Replication hasnt moved!
Open commit View diff
197 # The value read from the tmp file and from db are the same. Replication hasnt moved!
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
198
            echo "WARNING: Slave replication has not moved in ${moving} seconds. Manual check required."; exit ${STATE_WARNING}
Open commit View diff
198 echo "WARNING: Slave replication has not moved in ${moving} seconds. Manual check required."; exit ${STATE_WARNING}
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
199
          else
Open commit View diff
199 else
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
200
            # Replication has moved since the tmp file was written. Delete tmp file and output OK.
Open commit View diff
200 # Replication has moved since the tmp file was written. Delete tmp file and output OK.
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
201
            rm $tmpfile
Open commit View diff
201 rm $tmpfile
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
202
            echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"; exit ${STATE_OK};
Open commit View diff
202 echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"; exit ${STATE_OK};
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
203
          fi
Open commit View diff
203 fi
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
204
        else
Open commit View diff
204 else
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
205
          echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"; exit ${STATE_OK};
Open commit View diff
205 echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"; exit ${STATE_OK};
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
206
        fi
Open commit View diff
206 fi
Marvin A. Ruder over 1 year ago 05fc4f7

fix(ui): Swap translations for oversized dropdown

Full commit hash
05fc4f7aba5bfb9e2db596d11d6beab00ae70320
Author
Marvin A. Ruder <[email protected]>
Date
over 1 year ago
Selected line
207
      else
Open commit View diff
207 else
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
208
        echo "$execpos" > $tmpfile
Open commit View diff
208 echo "$execpos" > $tmpfile
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
209
        echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"; exit ${STATE_OK};
Open commit View diff
209 echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"; exit ${STATE_OK};
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
210
      fi
Open commit View diff
210 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
211
    else # Everything OK (no additional moving check)
Open commit View diff
211 else # Everything OK (no additional moving check)
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
212
      echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"; exit ${STATE_OK};
Open commit View diff
212 echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"; exit ${STATE_OK};
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
213
    fi
Open commit View diff
213 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
214
  fi
Open commit View diff
214 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
215
 else
Open commit View diff
215 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
216
 # Without delay thresholds
Open commit View diff
216 # Without delay thresholds
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
217
 echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"
Open commit View diff
217 echo "OK: Slave SQL running: ${check} Slave IO running: ${checkio} / master: ${masterinfo} / slave is ${delayinfo} seconds behind master | delay=${delayinfo}s"
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
218
 exit ${STATE_OK};
Open commit View diff
218 exit ${STATE_OK};
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
219
 fi
Open commit View diff
219 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
220
fi
Open commit View diff
220 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
221
Open commit View diff
221
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
222
echo "UNKNOWN: should never reach this part (Slave_SQL_Running is ${check}, Slave_IO_Running is ${checkio})"
Open commit View diff
222 echo "UNKNOWN: should never reach this part (Slave_SQL_Running is ${check}, Slave_IO_Running is ${checkio})"
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
223
exit ${STATE_UNKNOWN}
Open commit View diff
223 exit ${STATE_UNKNOWN}