summaryrefslogtreecommitdiffstats
path: root/adei/check_adei_source.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-12-11 21:14:03 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-12-11 21:14:03 +0100
commit2760dba480083977d179f095f47f28ec1913b9ec (patch)
tree569481702d6fa58845fc5e4c04f72993520f9492 /adei/check_adei_source.sh
parent2df6c231a41cae525f77a46e98ddf805f667ce5b (diff)
downloadconky-2760dba480083977d179f095f47f28ec1913b9ec.tar.gz
conky-2760dba480083977d179f095f47f28ec1913b9ec.tar.bz2
conky-2760dba480083977d179f095f47f28ec1913b9ec.tar.xz
conky-2760dba480083977d179f095f47f28ec1913b9ec.zip
Properly detect MySQL/slave desynchronization
Diffstat (limited to 'adei/check_adei_source.sh')
-rwxr-xr-xadei/check_adei_source.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/adei/check_adei_source.sh b/adei/check_adei_source.sh
index 04b7257..b194ae5 100755
--- a/adei/check_adei_source.sh
+++ b/adei/check_adei_source.sh
@@ -20,9 +20,9 @@ cur=`date -u +%s`
group_mode=0
#groups=`curl -s -m 3 --proxy "" "$adei_url/services/list.php?target=groups&info=1&setup=$2&db_server=$3&db_name=$db_name" | xmllint --format - | grep "Value" | sed -e "s/^.*db_group=\"\([^\"]*\)\".*$/\\1/" | sed -e "s/ /::space::/"`
-groups=$(adei_value_query "list.php?target=groups&info=1" 12); err=$?
+groups=$(adei_value_query "list.php?target=groups&info=1" master 12); err=$?
if [ $err -ge 1 -a $err -le 3 ]; then
- groups=$(adei_value_query "list.php?target=groups" 5); err=$?
+ groups=$(adei_value_query "list.php?target=groups" master 5); err=$?
adei_process_error $err "$groups" "GroupList"
echo "Data queries are too slow, check database indexes"