Arif Ali
ab9f68b8e5
* Add script to check innodb status * Add check_mongo for when juju controllers are not working * Add script to fix group replication * Add script that fixes logrotate on nova-compute units * Fine tuning other scripts
18 lines
363 B
Bash
Executable File
18 lines
363 B
Bash
Executable File
#!/bin/bash
|
|
|
|
check_controller()
|
|
{
|
|
controller=$1
|
|
model="cpe-focal"
|
|
|
|
juju status -m "${controller}":${model} --color | grep ^Unit -A 999999 | grep -E -v "started.*focal|started.*bionic|active.*idle"
|
|
|
|
}
|
|
|
|
if [[ -z "$1" ]] ; then
|
|
check_controller "$(juju controllers --format json | jq -r .\"current-controller\")"
|
|
else
|
|
check_controller "${1}"
|
|
fi
|
|
|